Our Guide to Google Analytics IQ Testing: E-commerce Tracking
April 26, 2011
This is the second installment of a collaborative series between PPC Hero and SEO Boy to help readers prepare for the Google Analytics Individual Qualification (IQ) Test. This series covers the most important aspects of the IQ Test and will prepare you to earn a high score.
While the Google Analytics test might seem daunting, I am here to say it isn’t nearly as difficult as one might think, as long as you do your homework. Yesterday, Steve covered the different types of Google Analytics cookies and how they are each used to track activity. Now that you understand how Google Analytics tracks information with a user, let’s go through how e-commerce data is passed into Google Analytics.
If your site sells any sort of products or services online, you should have e-commerce tracking in place. If not, it is time to start! E-commerce reports will allow you to track your site’s transactions, revenue, products purchased, e-commerce conversion rate, the number of times people visited your site before purchasing, etc. If you have your account synced with your Google AdWords account, you can also review revenue data by keyword to help with PPC optimizations. The e-commerce tab appears on almost every data page within Google Analytics, so you can break down revenue in just about any way imaginable.
There are three steps to e-commerce tracking:
Step 1: Enable e-commerce reporting in your website profile.
To do this, go to the edit profile information page and then choose edit in the Main Website Profile Information section. From there, change the “E-commerce Website” option to read “Yes”
Step 2: Add the Google Analytics tracking code to the receipt page.
Step 3: Add tracking into the Google Analytics code, in order to correctly track each transaction.
For this, you will first use the _addTrans() method which signifies a transaction has occurred. From there you will also have to add arguments, that provide details such as order ID, total order amount, and the amount of tax charged. Your code will need to dynamically retrieve the values from your merchant software in order to populate the correct information. Below are the specific arguments to fill in, the ones with an * are required.
Order ID*, Affiliation, Total*, Tax, Shipping, City, State, Country
Let’s look at an example from the Google Analytics learning center:
The other piece shown above, is the _addItem method, which helps pass along the details on each item a visitor purchases. If they purchase more than one item, this will be called multiple times. Again, there are arguments that need to be added in order to pass along the details. The arguments with an * are required. Note that the Order ID should be the same as in _addTrans.
Order ID*, SKU/Code*, Product Name, Category, Price*, Quantity
Finally, at the end you will need to call _trackTrans() in order to send all of the information to Google Analytics. This is highlighted in yellow above.
For most e-commerce sites, the actual checkout process takes place on a separate domain or subdomain. In this case, you need to also add code based on the steps for tracking activity across domains and subdomains. I won’t go into that portion here, but you can watch the step-by-step video if this applies to you.
Now that you understand how to do the e-commerce tracking, how does this apply to the Google Analytics IQ exam?
While this wasn’t an expansive area of the exam, there were certainly questions that asked you to review the code provided and determine if it was correct or not based on what the question is looking to track. It is important to understand all of the different elements or arguments that are tracked and which arguments go with each of the call methods.
It is also important to remember, that the standard Google Analytics tracking code automatically knows when an https protocol is being used, so there is nothing for you to modify as your site moves between http and https.
To learn more about e-commerce tracking, visit to Google Analytics IQ Lessons to get more detailed step-by-step instructions.
Browse By Category
Personalized Training to Become a PPC Superhero
If you could divulge your biggest challenges in paid search advertising to an expert who is highly revered by industry peers, approved by 15 US & UK agency leaders, and a driving force in PPC innovation, would you?
Leveraging Custom Intent Audiences on YouTube
Google recently announced the addition of custom intent audiences for YouTube. Structure audiences & content to build goodwill with your prospects!
My Top Failures as a PPC Account Manager
Explore Will Larcom's 5 biggest shortcomings as an Account Manager and the takeaways unearthed by being able to identify them!
A bi-weekly newsletter packed full of resources and strategies that will help make you a better PPC expert.
Hanapin Marketing | The PPC Agency of Experts Behind PPC Hero
Why You Should Test Target ROAS Bidding for Shopping Campaigns
The case for testing Target ROAS bidding for AdWords shopping campaigns, plus tips on how to successfully set up such a test.
10 New Ways to Optimize Paid Search with Call Intelligence
Mobile search drives billions of calls to business each year, and calls convert at a higher rate than digital leads. When properly optimized, calls can have a transformational impact on your bottom line. Join this webinar to learn tactical tips and smart strategies to boost...
Google Adds New Tools to Highlight Physical Store Locations
Buying in-store is still a big deal for shoppers, and Google has announced a few new tools to let physical retailers target those shoppers heading in stores.
Load More »