X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Google Conversion Tracking Codes (https://forum.x-cart.com/showthread.php?t=74589)

Brandenphughes 10-27-2016 06:57 AM

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.

qualiteam 10-31-2016 04:34 AM

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

scadmin 08-30-2017 01:17 PM

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

qualiteam 08-30-2017 11:16 PM

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.


All times are GMT -8. The time now is 04:20 AM.

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