Jump to content

how to add google remarketing tag in prestashop default theme


Recommended Posts


I'm new in prestashop. I have an ecommerce with the default theme of prestashop and I want to insert the google remarketing tag. I know that I have to put it in the footer.tpl, before the tag </body>. I can't find the footer.tpl file. Where is it? It is not in the main directory, not in the themes directory and not in the default-bootstrap directory. Can anyone help me please?


Link to comment
Share on other sites

  • 3 months later...

Hi All ,

I'm trying to put the remarking code insite footer.tpl of my template. 

I follow a lot of way but every time without success, every time the same problem: no HTTP response detected.


I follow this instruction, and other that I found. 


I put te codes between literal tags {literal} {/literal} and without them. 


What I saw in the website page code is really strange. 

Prestashop put the second part of script :


<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">

<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/XXXX/?value=0&guid=ON&script=0"/>
in the right place, but split  the first part of it  the end of the page in the last lines , before </body>
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = XXXXXXX;
var google_custom_params = window.google_tag_params;
var google_remarketing_only = true;
/* ]]> */
I suppose that this is the problem.
I made a lot of change but without good result. 
I tried to cut /* <![CDATA[ */ and its closure (only to see if Presta change the line disposal) , but nothing change. 
I tried to put with all variant also in header.tpl and category.tpl but nothing change.
I tried also to put "literal" tag dedicated for each script.
Someone already find this problem and got a solution ? :)
Many Thanks in advance.
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...