AAldo Posted June 14, 2019 Share Posted June 14, 2019 Hi, i want to know how to add conversion codes in some pages of prestashop 1.7, i have a paid theme and in some pages (maybe all) there is no <head> </head> tags to embed the codes. The only place i could embed the code was in the head.tpl file for the Global Site Tag. I have to add the following code in the contact page (contact.tpl) and the instructions are to paste it on the head tags but in the code of the page there is no head tags. <!-- Event snippet for Contacto conversion pageIn your html page, add the snippet and call gtag_report_conversion when someone clicks on the chosen link or button. --><script>function gtag_report_conversion(url) {var callback = function () {if (typeof(url) != 'undefined') {window.location = url;}};gtag('event', 'conversion', {'send_to': 'AW-XXXXXXXXX/_gkcCJeKiqIBEJ6D4OcC','event_callback': callback});return false;}</script> I even used the {literal} thing and it doesn't work. Anyone know how to embed those codes without using any module? Thanks. Link to comment Share on other sites More sharing options...
SchmidtSon Posted December 27, 2023 Share Posted December 27, 2023 Hey u find a solution for it? If not u have to got to \themes\uretheme\templates\_partials\head.tpl and add ure Code write it between {literal} {/literal} tags. Bests 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