oklok Posted June 18, 2020 Share Posted June 18, 2020 So I am supposed to put the Facebook Pixel code in the Prestashop header file, just above the </head> tag (themes\classic\templates\_partials) Realized there is no header tag at all in the file. Anyone knows how to apply in this case? Link to comment Share on other sites More sharing options...
luisleitaoaudio Posted June 18, 2020 Share Posted June 18, 2020 (edited) On prestashop 1.7 you have 2 files header and head . when. you open head file you are inside the TAG head, anyway you can see <head> tag on file layout-both-columns.tpl inside layout folder where is <head> tag on prestashop please see my video : Where is prestashop head tag on prestashop 1.7 ? solve the problem ? Edited June 19, 2020 by luisleitaoaudio (see edit history) 1 Link to comment Share on other sites More sharing options...
oklok Posted June 19, 2020 Author Share Posted June 19, 2020 You are the best!🥰 Took me forever to find the header. Have not tested it yet,but should work now by simple put code below <head> tag: <head> <!-- Facebook Pixel Code --> <script> blablabla</noscript> <!-- End Facebook Pixel Code --> {block name='head'} {include file='_partials/head.tpl'} {/block} </head> Link to comment Share on other sites More sharing options...
luisleitaoaudio Posted June 19, 2020 Share Posted June 19, 2020 you should put inside literal <head> {literal} <!-- Facebook Pixel Code --> <script> blablabla</noscript> <!-- End Facebook Pixel Code --> {/literal} {block name='head'} {include file='_partials/head.tpl'} {/block} </head> 2 1 Link to comment Share on other sites More sharing options...
oklok Posted June 19, 2020 Author Share Posted June 19, 2020 😄 OK,tried now, got no activity, must be because I have not setup the payment process correct yet. However above should be correct... Link to comment Share on other sites More sharing options...
tmaragelis Posted January 10, 2021 Share Posted January 10, 2021 Hi can someone help me install fb pixel to a 1.6 prestashop e-shop... Link to comment Share on other sites More sharing options...
alexiskaze Posted February 9, 2021 Share Posted February 9, 2021 Hello I would like to integrate the pixel code into my site. How to open the head file to reach the TAG header Thank you very much for your help. Sincerely Link to comment Share on other sites More sharing options...
Nico Posted March 20 Share Posted March 20 On 19/6/2020 at 1:54 AM, luisleitaoaudio dice: On prestashop 1.7 you have 2 files header and head . when. you open head file you are inside the TAG head, anyway you can see <head> tag on file layout-both-columns.tpl inside layout folder where is <head> tag on prestashop please see my video : Where is prestashop head tag on prestashop 1.7 ? solve the problem ? Ciao @luisleitaoaudio, on prestashop version 1.7.8 I can't find the _partials folder.... where can I find the head.tpl files in this version? Thank you Link to comment Share on other sites More sharing options...
Andrei H Posted March 20 Share Posted March 20 Hi @Nico, Are you using a custom theme? For the classic one, the location should be the same as highlighted in the video. You can also check the official repository: https://github.com/PrestaShop/PrestaShop/tree/1.7.8.x/themes/classic/templates/_partials Link to comment Share on other sites More sharing options...
Nico Posted March 20 Share Posted March 20 3 minuti fa, Andrei H dice: Hi @Nico, Are you using a custom theme? For the classic one, the location should be the same as highlighted in the video. You can also check the official repository: https://github.com/PrestaShop/PrestaShop/tree/1.7.8.x/themes/classic/templates/_partials Thanks.... solved... and inserted pixel code is working 😉 Now, I also insert the analytics code Thank you guys! 1 Link to comment Share on other sites More sharing options...
1008254_1508428368 Posted November 20 Share Posted November 20 If you solved it can you share how didi you do it? The same way other people saved you time and effort is the less you can do to do the same… Link to comment Share on other sites More sharing options...
Nico Posted December 13 Share Posted December 13 On 20/11/2024 at 9:32 AM, 1008254_1508428368 dice: If you solved it can you share how didi you do it? The same way other people saved you time and effort is the less you can do to do the same… 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