| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Let's Talk AdWords: How to Install the AdWords Conversion Tracking Code in X-Cart | ||||
|
|
Thread Tools | Search this Thread |
#51
|
|||||||||
|
|||||||||
Re: Let's Talk AdWords: How to Install the AdWords Conversion Tracking Code in X-Cart
We are pretty positive we have come up with a solution that will work with x-cart v4.5.x (we are on v4.5.5)
For using Adwords Conversions: First create your Conversion in Adwords Conversion Tracking. Make it a purchase/sale and set the conversion value to "Each conversion has a different value. If there's no value, use 1" and make sure to track All Conversions. We have signed up to use Google Tag Manager since it is very easy to have all of your analytics in one program. We also use "Google Tag Assistant" extension in google chrome, so we can verify all of our code is working. Sign up for Google Tag Manager, and create a Tag for Adwords Conversion Tracking (see attached photo). Then create a Macro that will allow you to track the total price (see second attached photo). In order for the macro (and your google tag manager) to work, we implemented the following code. In the "/common_files/customer/home.tpl" file directly after the opening <body> tag: Code:
This is our personal code for google tag manager, use your own code by going to Admin->Install GTM in the Google Tag Manager website This code goes directly below the above Macro code in "/common_files/customer/home.tpl" Code:
If you'd like to use google analytics, this is the code in our "/common_files/modules/Google_Analytics/ga_code_async.tpl" file that is working for us. You can also simply use the Google Analytics tag in Google Tag Manager (recommended): Code:
__________________
Marcello Canitano New Site: X-Cart v4.5.5 GOLD X-Cart Mobile v1.4.3 X-Payments v1.0.6 CDSEO Pro v2 Total Server Solutions xCDN www.silverhorseracing.com |
|||||||||
#52
|
|||||||
|
|||||||
Re: Let's Talk AdWords: How to Install the AdWords Conversion Tracking Code in X-Cart
Hi!
I know this is an old thread, but this is still not very straightforward with xCart. Unfortunately, the links you reference, no longer point to the right sources showing the steps. Can anyone share the code or A code that works for version 5.2.12? Thanks!
__________________
yari |
|||||||
#53
|
|||||||
|
|||||||
Re: Let's Talk AdWords: How to Install the AdWords Conversion Tracking Code in X-Cart
Quote:
Hi Yari, would be interested in hearing about your experience integrating GTM. There is this page in the documentation: http://kb.x-cart.com/pages/viewpage.action?pageId=9307079
__________________
X-Cart Version: 5.2 |
|||||||
|
|||
X-Cart forums © 2001-2020
|