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

Google Conversion Tracking Codes
 
Reply
   X-Cart forums > X-Cart 5 > Modifying the design and features (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 10-27-2016, 06:57 AM
 
Brandenphughes Brandenphughes is offline
 

Newbie
  
Join Date: Oct 2016
Posts: 6
 

Default Google Conversion Tracking Codes

Where do I place my Google Conversion Tracking Code to track a Adwords Campaign? I am seeing in the help menu that I need to place it here:

customer/main/order_message.tpl - the confirmation screen for checkout. Where you would place tracking conversion codes (Google AdWords, Yahoo, etc)

BUT, I am not seeing the <body> </body> tags to place it in.

Also, the "customer/main/order_message.tpl" file isn't placed in the "Ideal Comfort" template that we are using for our store.

Please advise. Thank you.
__________________
X-cart V.4
Reply With Quote
  #2  
Old 10-31-2016, 04:34 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Google Conversion Tracking Codes

First of all, you should not edit X-Cart 5 files directly. Use Theme Tweaker module instead or create a custom module that overrides the template that you need.

Also, what is your X-Cart version? Is it 5.2.x? If so, there is an article on adding the code there: http://devs.x-cart.com/en/how-to_articles/how_to_add_google_adwords_conversion_tracking_code _to_thank_yo...rder_page.html
__________________
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
Reply With Quote
  #3  
Old 08-30-2017, 01:17 PM
 
scadmin scadmin is offline
    
Join Date: Aug 2017
Posts: 1
 

Default Re: Google Conversion Tracking Codes

can you update the instructions for version 5.3
these are outdated:
http://devs.x-cart.com/en/how-to_articles/how_to_add_google_adwords_conversion_tracking_code _to_thank_yo...rder_page.html
__________________
-scadmin
Reply With Quote
  #4  
Old 08-30-2017, 11:16 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Google Conversion Tracking Codes

You can use this online tool to convert the .tpl template into the new Twig format:
http://xcart.github.io/flexy-to-twig/

Also, the template should have a different extension and must placed into a different location:
skins/theme_tweaker/customer/body/js/google_ads_coversion_tracking.twig

This should help.
__________________
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
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Modifying the design and features (X-Cart 5)


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 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 03:18 PM.

   

 
X-Cart forums © 2001-2018