Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Setting up Facebook conversion Tracking in Checkout??

 
Closed Thread
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 11-23-2013, 03:11 PM
 
zebu zebu is offline
 

eXpert
  
Join Date: Oct 2006
Posts: 310
 

Default Setting up Facebook conversion Tracking in Checkout??

I dont seem to have much luck getting Facepook conversion tracking working.

I have used the Chrome Facebook Power editor to create the pixel code.

I have placed it in customer/main/order_message.tpl

Done some test orders, viewed source to insure code is on page (which it is)

Bit the pixel still shows as unverified in Facebook.

Facebook instructions says it has to go in between the <head> tags. Which placing in the above file does not do. Perhaps that is my problem.

So how do you get the pixel code into the header tags on the order confirmation page?

Thanks
__________________
Version 4.7.7
  #2  
Old 11-24-2013, 06:23 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Setting up Facebook conversion Tracking in Checkout??

Try using this if statement in your home.tpl:
Code:
{if $main eq "order_message"} Facebook Pixel Here {/if}
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.

The following user thanks totaltec for this useful post:
qualiteam (11-27-2013)
  #3  
Old 11-24-2013, 01:14 PM
 
zebu zebu is offline
 

eXpert
  
Join Date: Oct 2006
Posts: 310
 

Default Re: Setting up Facebook conversion Tracking in Checkout??

Hi Mike,

Awesome thank you! That seems to have put the code in the right place.

Appreciate you taking the time to help!

Cheers Zane
__________________
Version 4.7.7
  #4  
Old 11-24-2013, 07:35 PM
 
alexenberg alexenberg is offline
 

Newbie
  
Join Date: Sep 2011
Posts: 5
 

Default Re: Setting up Facebook conversion Tracking in Checkout??

This is helpful, I see the Facebook code in the source but the {} is erased. The code should say var fb_param = {}; and instead shows this var fb_param = ;

Can you please let me know how to enable the {}

Thank you, Ari
__________________
alexenberg
shevajewelry.com
x-cart gold 4.4.3
CDSEO pro
  #5  
Old 11-24-2013, 10:11 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,197
 

Default Re: Setting up Facebook conversion Tracking in Checkout??

You have to escape any code that smarty should not touch

{literal}
your js code here
{/literal}

{literal} tag tells smarty to leave the code in it as is and not try to interpret it
__________________
Steve Stoyanov
CFLSystems.com
Web Development

The following user thanks cflsystems for this useful post:
qualiteam (11-27-2013)
  #6  
Old 11-25-2013, 08:28 AM
 
alexenberg alexenberg is offline
 

Newbie
  
Join Date: Sep 2011
Posts: 5
 

Default Re: Setting up Facebook conversion Tracking in Checkout??

Awesome, thank you!
__________________
alexenberg
shevajewelry.com
x-cart gold 4.4.3
CDSEO pro
  #7  
Old 09-17-2014, 01:39 PM
 
Sean Stacey Sean Stacey is offline
 

Newbie
  
Join Date: Sep 2014
Posts: 1
 

Default Re: Setting up Facebook conversion Tracking in Checkout??

I have used this thread in the past, and it works, but what about setting up converaion tracking in x-cart 5?
__________________
X-Cart 5 Business
Closed Thread
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:25 AM.

   

 
X-Cart forums © 2001-2020