| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Facebook Pixel Code for X-Cart 5 | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Facebook Pixel Code for X-Cart 5
i try to place the Facebook Pixel Code following in xcart 5:
but he page show "Internal error. Contact the site administrator." can someone help , thanks! Quote:
__________________
ivan lau Last edited by seyfin : 03-18-2016 at 09:03 AM. |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Bing conversion code
You should adjust your code and add a space character after each { character.
Besides, for X-Cart 5, you do not need to use {literal} and {/literal} tags. So, for X-Cart 5, your code should look like this: Code:
==== You can use the "Custom Skin" module, in order implement your custom code in X-Cart templates: 1) If your tracking code needs to be added in the <head> section of X-Cart pages, you should implement the code in a copy of the default template file: skins/default/en/header/body.tpl template file => skins/custom_skin/default/en/header/body.tpl 2) If your tracking code needs to be added before the closing </body> tag, you should implement the code in a copy of the default template file: skins/default/en/body.tpl template file => skins/custom_skin/default/en/body.tpl Alternatively, custom template modifications can be implemented using the Webmaster mode feature and Theme tweaker module (Using Webmaster Mode in X-Cart 5). See also: * http://kb.x-cart.com/display/XDD/Developer+docs
__________________
Sincerely yours, Sergey Fomin X-Cart team Chief support group engineer === Check this out. Totally revamped X-Cart hosting http://www.x-cart.com/hosting.html Follow us: https://twitter.com/x_cart / https://www.facebook.com/xcart / https://www.instagram.com/xcart Last edited by seyfin : 03-18-2016 at 09:02 AM. |
|||||||||
#3
|
|||||||
|
|||||||
Re: Bing conversion code
Thanks for your reply.
May I know how to add following code in the product page 's header? fbq('track', 'ViewContent', { content_ids: ['1234'], content_type: 'product', value: 0.50, currency: 'USD' }); how to check it is product page?? sth like this {if $main eq "product"} ???
__________________
ivan lau |
|||||||
#4
|
|||||||||
|
|||||||||
Re: Bing conversion code
Quote:
Check this article: * How to add Facebook Pixel Сode to X-Cart pages See also: * Facebook Pixel Setup
__________________
Sincerely yours, Sergey Fomin X-Cart team Chief support group engineer === Check this out. Totally revamped X-Cart hosting http://www.x-cart.com/hosting.html Follow us: https://twitter.com/x_cart / https://www.facebook.com/xcart / https://www.instagram.com/xcart |
|||||||||
#5
|
|||||||
|
|||||||
Re: Facebook Pixel Code following in xcart 5
My client's SEO people want him to place is Facebook Pixel Code along with the following "Standard Events"
Where do I place these events? Standard Events Add standard events to your code to track specific types of actions on your website. Copy the code for the type of event you want to measure, and paste it below the pixel code on the relevant page within a <script> tag. Keep in mind standard event codes are case-sensitive. Learn more about conversion tracking. // 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');
__________________
X-Cart 4.3 Joomla Among other things |
|||||||
#6
|
|||||||||
|
|||||||||
Re: Facebook Pixel Code following in xcart 5
Would you like to implement the code for X-Cart 4 or for X-Cart 5?
__________________
Sincerely yours, Sergey Fomin X-Cart team Chief support group engineer === Check this out. Totally revamped X-Cart hosting http://www.x-cart.com/hosting.html Follow us: https://twitter.com/x_cart / https://www.facebook.com/xcart / https://www.instagram.com/xcart |
|||||||||
#7
|
|||||||
|
|||||||
Re: Facebook Pixel Code following in xcart 5
This is for Xcart 5
__________________
X-Cart 4.3 Joomla Among other things |
|||||||
#8
|
|||||||||
|
|||||||||
Re: Facebook Pixel Code following in xcart 5
Please check this article in our Knowledge Base:
* How to add Facebook Pixel Сode to X-Cart pages You can find examples there, how to implement the code to track some of the events: - 'ViewContent' - 'InitiateCheckout' - 'Purchase' - 'Search' If you need to track other events (like 'AddToCart', 'AddToWishlist', 'AddPaymentInfo', 'Lead', 'CompleteRegistration'), then more complex custom modification of the X-Cart 5 code is needed.
__________________
Sincerely yours, Sergey Fomin X-Cart team Chief support group engineer === Check this out. Totally revamped X-Cart hosting http://www.x-cart.com/hosting.html Follow us: https://twitter.com/x_cart / https://www.facebook.com/xcart / https://www.instagram.com/xcart |
|||||||||
#9
|
|||||||
|
|||||||
Re: Facebook Pixel Code following in xcart 5
Hi Sergey, Will these instructions work for Xcart version 4.0.19? I want to put the FB pixel code into the <head> of my checkout page.
Right now, the only place I know where to put info into the <head> is under customer/home.tpl. Thanks. Risa
__________________
Risa X-Cart ver. 4.0.19 GOLD |
|||||||
#10
|
|||||||||
|
|||||||||
Re: Facebook Pixel Code following in xcart 5
Hi Risa,
Unfortunately, the instructions won't work in X-Cart 4. These are for X-Cart 5 only. Here is another user asking for the same: https://forum.x-cart.com/showthread.php?t=73804 In X-Cart 4 you have to edit template files to get the code injected into pages.
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions Last edited by qualiteam : 04-04-2016 at 08:47 PM. |
|||||||||
|
|||
X-Cart forums © 2001-2020
|