evinik Posted November 2, 2017 Share Posted November 2, 2017 Hello, Does anybody know which one is the correct remarketing tag for Prestashop 1.7? I tried this one bur I get "Missing commas in between key-value element pairs." and "Attribute key contains space or non-ASCII characters.". {literal} <!-- Google Code for Remarketing Tag --> <!-------------------------------------------------- Remarketing tags may not be associated with personally identifiable information or placed on pages related to sensitive categories. See more information and instructions on how to setup the tag on: http://google.com/ads/remarketingsetup ---------------------------------------------------> <SCRIPT type='text/javascript'> var google_tag_params = { {if $page_name == 'index'} ecomm_pagetype: 'home' {elseif $page_name == 'order'} ecomm_prodid: [{foreach from=$products item=product name=prodid}'{$product.id_product}'{if $smarty.foreach.prodid.last}{else},{/if}{/foreach}], ecomm_pagetype: 'cart', ecomm_totalvalue: {$cart->getOrderTotal(true)} {elseif $page_name == 'cart'} ecomm_prodid: [{foreach from=$products item=product name=prodid}'{$product.id_product}'{if $smarty.foreach.prodid.last}{else},{/if}{/foreach}], ecomm_pagetype: 'cart', ecomm_totalvalue: {$cart->getOrderTotal(true)} {elseif $page_name == 'product'} ecomm_prodid: {$product->id}, ecomm_pagetype: 'product', ecomm_totalvalue: {$product->getPrice(true, $smarty.const.NULL, $priceDisplayPrecision)} {elseif $page_name == 'category'} ecomm_pagetype: 'category' {elseif $page_name == 'order-opc'} ecomm_prodid: [{foreach from=$products item=product name=prodid}'{$product.id_product}'{if $smarty.foreach.prodid.last}{else},{/if}{/foreach}], ecomm_pagetype: 'cart', ecomm_totalvalue: {$cart->getOrderTotal(true)} {elseif $page_name == 'order-confirmation'} ecomm_prodid: [{foreach from=$products item=product name=prodid}'{$product.id_product}'{if $smarty.foreach.prodid.last}{else},{/if}{/foreach}], ecomm_pagetype: 'purchase', ecomm_totalvalue: {$cart->getOrderTotal(true)} {else} ecomm_pagetype: 'other' {/if} }; </SCRIPT> <script type="text/javascript"> /* <![CDATA[ */ var google_conversion_id = xxxxxx; var google_custom_params = window.google_tag_params; var google_remarketing_only = true; /* ]]> */ </script> <script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js"> </script> <noscript> <div style="display:inline;"> <img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/xxxxxx/?guid=ON&script=0"/> </div> </noscript> {/literal} Can anyone help me? Thank you in advance. Link to comment Share on other sites More sharing options...
kaferklaus Posted March 28, 2019 Share Posted March 28, 2019 Hi Evinik, did you solve with the code? it works? I also have the same problem. thanks! K Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now