Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

How To Setup Conversion Value For Facebook Pixel Rate Topic   - - - - -

 
  • idslamyou
  • Member
  • Members
  • Join Date: 06-Apr 07
  • 148 posts

Posted 18 February 2016 - 07:42 PM #1

I am trying to setup our facebook pixel to accurately track the order values. Is it possible to input a dynamic variable for the "value" that represents the order value?

fbq('track', 'Purchase', {value: '0.00', currency:'USD'});

Currently we have the generic facebook tracking pixel in the <head> on all pages. Would I add the additional code above on the order landing page only or would we amend it to the generic tracking pixel that is included in the head already?

 

 

Here is what I found for a shopify website - http://www.ppcwins.c...rsion-tracking/



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 20910 posts

Posted 19 February 2016 - 07:40 AM #2

For order confirmation page you can use My changes module and the following file:

 

design/themes/YOUR_THEME/templates/addons/my_changes/hooks/checkout/order_confirmation.post.tpl

 

Please use the following code to replace 0.00 value with the order total:

fbq('track', 'Purchase', {
    value: '{$order_info.total}', currency:'USD'
});

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • thelight
  • Junior Member
  • Members
  • Join Date: 31-Mar 10
  • 58 posts

Posted 19 February 2016 - 12:30 PM #3

Very nice, thank you!