View Single Post
Old 07-10-2016, 01:36 PM
magicant magicant is offline

Advanced Member
Join Date: Jan 2004
Location: Manchester UK
Posts: 62

Default Re: Facebook Pixel Code for X-Cart 4

The only thing I can see in my pixel account is the following code for my pixel.. but i'm guessing the x-cart values and such must need custom code adding into the below code to make it work correctly.

I have found documentation from x-cart for version 5 for conversion but nothing anywhere for version 4.

Many thanks

// ViewContent
// Track key page views (ex: product page, landing page or article)
fbq('track', 'ViewContent');

// Search
// Track searches on your website (ex. product searches)
fbq('track', 'Search');

// AddToCart
// Track when items are added to a shopping cart (ex. click/landing page on Add to Cart button)
fbq('track', 'AddToCart');

// AddToWishlist
// Track when items are added to a wishlist (ex. click/landing page on Add to Wishlist button)
fbq('track', 'AddToWishlist');

// InitiateCheckout
// Track when people enter the checkout flow (ex. click/landing page on checkout button)
fbq('track', 'InitiateCheckout');

// AddPaymentInfo
// Track when payment information is added in the checkout flow (ex. click/landing page on billing info)
fbq('track', 'AddPaymentInfo');

// Purchase
// Track purchases or checkout flow completions (ex. landing on "Thank You" or confirmation page)
fbq('track', 'Purchase', {value: '1.00', currency: 'USD'});

// Lead
// Track when a user expresses interest in your offering (ex. form submission, sign up for trial, landing on pricing page)
fbq('track', 'Lead');

// CompleteRegistration
// Track when a registration form is completed (ex. complete subscription, sign up for a service)
fbq('track', 'CompleteRegistration');

// Other
fbq('track', 'Other');
X-Cart Version: 4.7.6
PHP 5.3.29
MySQL server 5.6.29
MySQL client 5.6.29
Reply With Quote