I want to add the script in the head.phtml but i need the product's id, SKU. So i only want it to work when is on the product Detail page.
1 Answer
I have found the solution:
$_product = Mage::registry("current_product")
if ($_product && $_product->getId()) :
//google tag code here
endif;