closeupman Posted January 28, 2014 Share Posted January 28, 2014 Where to put the code for the conversion pixel for facebook tracking? I can't find an add to cart or checkout page where it has html so I can put it between in head area. Thanks. Link to comment Share on other sites More sharing options...
vekia Posted January 28, 2014 Share Posted January 28, 2014 i wrote guide about fb conversion pixel - you can read here how to add it with html box pro module, it will replace dynamic variables like value of order or currency Link to comment Share on other sites More sharing options...
closeupman Posted January 29, 2014 Author Share Posted January 29, 2014 Hi Vekia, Not sure that would solve it. Could try your module, but not sure right now. code: <!-- Facebook Conversion Code for Siti Nuriati Studio --><script type="text/javascript">var fb_param = {};fb_param.pixel_id = '6014311035316';fb_param.value = '0.00';fb_param.currency = 'USD';(function(){ var fpw = document.createElement('script'); fpw.async = true; fpw.src = '//connect.facebook.net/en_US/fp.js'; var ref = document.getElementsByTagName('script')[0]; ref.parentNode.insertBefore(fpw, ref);})();</script><noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/offsite_event.php?id=6014311035316&value=0¤cy=USD" /></noscript> Link to comment Share on other sites More sharing options...
vekia Posted January 29, 2014 Share Posted January 29, 2014 read topic that i pasted above. you've got there detailed guide about variables you have to use.... and where you have to paste code with variables. you have to use these variables because you have to provide order value, currency etc. So all of this are more than necessary. Link to comment Share on other sites More sharing options...
closeupman Posted January 29, 2014 Author Share Posted January 29, 2014 Hi Vekia, Yes, I read it. I'm just not understanding it. Do I paste the above code in order-confirmation.tpl and the need to add some varibles in the controller file. ALso my variables are different. It's just going a bit over my head right now. If I paste my order confirmation and orderconfirmationcontroller file here would you be able to help me out? Seems like something Prestashop should build into 1.6 Link to comment Share on other sites More sharing options...
sirvova Posted March 1, 2014 Share Posted March 1, 2014 (edited) I found the easiest solution. It works for me so hopefuly will work for others. I added custom pages so when smbd. buys smth. on my site after checkout they are redirecting to either success page (if payment successfuly went through) or failure page (if payment wasn't successful) See here how to create custom pages http://www.prestashop.com/forums/topic/52650-how-to-add-a-custom-page/page-1 Once you have your success page created just paste the FB CONVERSION TRACKING code into this page's tpl file. That's it Hope this helps Edited March 1, 2014 by sirvova (see edit history) Link to comment Share on other sites More sharing options...
Denver Prophit Jr. Posted March 5, 2016 Share Posted March 5, 2016 I think the theme modules and templates might be a good place to start for adding the various types of tracking statuses. Link to comment Share on other sites More sharing options...
tiendatutorial Posted May 21, 2017 Share Posted May 21, 2017 Hi, this tutorial is in Spanish but i very easy 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