google trusted stores - Getting one product information from category page in Magento -


¡hola,

i'm trying set darn google trusted stores script on magento website. seems google wants me add below javascript every page , call 1 product each page. that's okay product page i'm having trouble on other pages category pages. suppose somehow add script template/catalog/product/list.phtml anyway, wondering if add first product listing on each category page php google javascript?

has have figured out how add script google wants magento or there tutorial somewhere?

here's google javascript:

<!-- begin: google trusted stores --> <script type="text/javascript">   var gts = gts || [];   gts.push(["id", "xxxxxx"]);   gts.push(["google_base_offer_id", "<?php echo $this->htmlescape($_product->getsku()) ?>"]);   gts.push(["google_base_subaccount_id", "xxxxxxxx"]);   gts.push(["google_base_country", "us"]);   gts.push(["google_base_language", "en"]);   (function() {     var scheme = (("https:" == document.location.protocol) ? "https://" : "http://");     var gts = document.createelement("script");     gts.type = "text/javascript";     gts.async = true;     gts.src = scheme + "www.googlecommerce.com/trustedstores/gtmp_compiled.js";     var s = document.getelementsbytagname("script")[0];     s.parentnode.insertbefore(gts, s);   })(); </script> <!-- end: google trusted stores --> 

thanks

i'm such dummy code in google trusted stores module. :)


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -