Jump to content

Perfect Audience Tag for Prestashop


Recommended Posts

Hello,

 

I have problem with PerfectAudience.com tag code.

 

I use Prestashop 1.5.6.2. and try 3 variables Prestashop product ID in tag, but none work good.

 

This is a tag code:

 

<script type="text/javascript">
(function() {
window._pa = window._pa || {};
// _pa.orderId = "myOrderId"; // OPTIONAL: attach unique conversion identifier to conversions
// _pa.revenue = "19.99"; // OPTIONAL: attach dynamic purchase values to conversions
// _pa.productId = "myProductId"; // OPTIONAL: Include product ID for use with dynamic ads
var pa = document.createElement('script'); pa.type = 'text/javascript'; pa.async = true;
pa.src = ('https:' == document.location.protocol ? 'https:' : 'http:') + "//tag.perfectaudience.com/serve/534b9ba24748cd4a51000046.js";
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(pa, s);
})();
</script>
 
For good work I must put "myProductId". At the moment I try 3 variables (but nothing work):
 
$product.id_product
{$product.id_product}
{$product->id|intval}
 
Anybody have idea what variable I must use?
Link to comment
Share on other sites

  • 9 months later...
  • 3 weeks later...

I need to add this script in a multi-store as well so am keen to see the best way to get it working.

 

My theme allows me to add JS scripts for each shop which is a start as each shop has a different Code ID.

 

So have to work out how to set the JS variables. 

Link to comment
Share on other sites

×
×
  • Create New...