X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   General questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=66)
-   -   Facebook Pixel Tracking Revenue (https://forum.x-cart.com/showthread.php?t=76325)

nivek 06-13-2018 06:45 AM

Facebook Pixel Tracking Revenue
 
We have the Facebook pixel all set up through Google Tag Manager and is working well to track add to carts, checkout initiations, and purchase counts. However, it isn't reporting revenue from the transactions.

Here's what we have for it...

Code:

<script>
fbq('track', 'Purchase', {
value: dataLayer[0]['order']['total'],
currency: dataLayer[0]['order']['currency']
});
</script>


Like I said, it's tracking the purchase count and the product that's being purchased, but it's not pulling in the revenue. Any ideas? First post on here so thanks in advance.


All times are GMT -8. The time now is 08:46 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.