Conversion tracking is an integral part of a successful AdWords campaign. It allows advertisers to see what keywords and strategies are working vs those that are wasting money.
To be frank and honest – if you are not using conversion tracking you shouldn’t be using AdWords – it’s that important. It would be like watching two NFL teams in the SuperBowl with no way to see any touchdowns or know the score throughout the entire game.
This tutorial will show you how to correctly install the AdWords conversion tracking code within your X-Cart shopping cart store to record sales but ALSO capture the dollar amount of each sale.
We are going to start from scratch…
Part I. Getting the Code
1. Login to your AdWords Account and the top ‘Reporting and Tools’ tab, then click the ‘Conversions’.
2. Click the ‘+New Conversion’ button.
3. Name your conversion and select a tracking purpose from the drop down menu. I will put ‘Sale’.
4. On the drop down menu underneath ‘This action is used for tracking:’ select Purchase / Sale
5. On the conversion page security level drop down choose http or https depending on your website set-up (most of the time this will be https://)
6.In Revenue for conversion enter 1.0 (we will be changing this later don’t worry)
7. Choose the language and text format.
8. Click ‘Save & Get Code’, should look similar to this:
Part II. Configuring the Code
Copy and paste the code into the AdWords Conversion Code Template – downloadable for free (right click and choose ‘Save As’)
Next, paste your code BELOW the included code in the template.
This is the tricky part so be sure to TRIPLE check for accuracy –
Take the variables highlighted below from your code and paste them OVER the matching color code in the Squeeze Juice Marketing Template as pictured below:
Note: you will paste the conversion_id and conversion label code twice (one in the first script, and then again the document.write url below).
Once you’ve triple checked the correct pasting of your variables delete the original pasted code on the bottom leaving just the Squeeze Juice Marketing Template code as pictured:
Part III. Installation
In order for this to work you MUST have the Google Analytics Module turned on and Use E-Commerce analysis box checked in the Admin->General Settings->Google Analytics
(Be sure to backup all files before modifying)
Log into your site with your FTP client and download skin1/modules/Google_Analytics/ga_commerce_form.tpl
Paste your newly configured Adwords conversion code into the end of this file, on a new line.
Save and upload the adjusted ga_commerce_form.tpl.
That’s it! You’re set!
If you would like to verify that it is working, place a test order, then view the source code the receipt page and you should see your code towards the bottom of the page with the order subtotal information in the value field.
Enjoy!
Tags: adwords, adwords conversion code, google adwords, smarty, track conversions x-cart, tracking script, tracking scropt, x-cart code, xcart



Hi,
I have installed the adwords conversion code as per your guidance.But i think still the conversion tracking not working well..For example:yesterday i got two orders but GA conversion showed only one conversion..Can you halp me how to compare the x-cart & GA conversion??
Hi Udhay,
When you say GA are you referring to Google AdWords or Google Analytics? This tracking script is for Google AdWords only and is not related to Google Analytics
thanks for your response..i said about google adwords only. I have set the conversion name as “sales”. It shows the conversions “1″ and value as “$377″ but actually,my cart shows totally 3 orders with price $477. Whats wrong??How to monitor my conversion exactly??
Hi Udhay,
Thank you for the clarification. GA is commonly used to refer to Google Analytics so I wanted to verify what you were explaining.
Unfortunately without seeing the set-up it is difficult to diagnose. I would suggest the following:
1.) Time – Reporting isn’t instant, sales can take up to 48 hours to process, so make sure you are comparing from several days ago.
2.) Code – Verify the installation is up to date
3.) Analytics – You should be using Google Analytics to track your overall sales and performance, not the AdWords dashboard (the AdWords dashboard is a supplement to Google Analytics). If your 2 missing orders were not from AdWords then they will not show up in the AdWords reporting.
Best of luck
Hi,
First of all, this is a good guide and the clarifications on data collection are very nice (second comment).
To be naggy, I would like to point out that the noscript in this sample is not useful, as it will never do anything (noscript is for browsers without JavaScript support, therefore no JavaScript will be executed in it).
The coversion codes etc are now under the reporting tab.
The template isn’t downloading for me. Has it been moved?
Thanks
Hi Lara,
Thanks for the note – I need to update this post re: new AdWords interface.
The template is still there – make sure you right click and choose ‘Save-As’