Jump to content

FB conversion tracking pixel


Recommended Posts

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&currency=USD" /></noscript>

Link to comment
Share on other sites

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

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 :P

Link to comment
Share on other sites

  • 1 month later...

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 by sirvova (see edit history)
Link to comment
Share on other sites

  • 2 years later...
  • 1 year later...

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...