prestautente Posted May 21, 2015 Share Posted May 21, 2015 Hello, I'm new in prestashop. I have an ecommerce with the default theme of prestashop 1.6.0.9 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? Thanks. Link to comment Share on other sites More sharing options...
selectshop.at Posted May 21, 2015 Share Posted May 21, 2015 (edited) Add the remarketing tag code to your footer.tpl just AFTER the line {include file="$tpl_dir./global.tpl"} But before you should activate allow iframes on TAB Preferences -> general -> Allow iframes in HTML code=YES Edited May 31, 2015 by selectshop.at (see edit history) Link to comment Share on other sites More sharing options...
prestautente Posted May 22, 2015 Author Share Posted May 22, 2015 hi selectshop and thanks for answer. One of my problem is that I can't find the footer.tpl file. Is it a file? Or is it a piece of code in another file? I can't find a file with the name "footer.tpl". Can you help me to find it? Thanks. Link to comment Share on other sites More sharing options...
selectshop.at Posted May 23, 2015 Share Posted May 23, 2015 It is a file. You will find it on your FTP /themes/yourtheme/footer.tpl. Download, open it with notepad++ for ex. Edit the file accordingly, save it and upload to you FTP to the exact place again. Link to comment Share on other sites More sharing options...
prestautente Posted May 26, 2015 Author Share Posted May 26, 2015 (edited) Thanks Edited May 26, 2015 by prestautente (see edit history) Link to comment Share on other sites More sharing options...
LorenzoM Posted September 3, 2015 Share Posted September 3, 2015 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"> </script> <noscript> <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"/> </div> </noscript> 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; /* ]]> */ </script> 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 More sharing options...
selectshop.at Posted September 5, 2015 Share Posted September 5, 2015 (edited) Seems you are using the non-native theme? In this case you should ask the developer of your theme where to add the code. BTW the code is for Prestshop 1.5 and 1.6. you are using one of that versions ? Edited September 5, 2015 by selectshop.at (see edit history) Link to comment Share on other sites More sharing options...
LorenzoM Posted September 7, 2015 Share Posted September 7, 2015 Hi thanks for the answer and sorry for my missing data. Prestashop Version : 1.0.0.6 Theme: Default-bootstrap 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