Analytics Market is a one-stop resource for anything you can do with Google Analytics. Tips and tricks, product news, API tools, and more!
Analytics Market Chart

Installing the Google Analytics Tracking Code

Implementing the tracking code for Google Analytics is relatively simple. However, most problems users have with Google Analytics are the result of incorrect coding. Also, some situations require more specialized coding changes.

These articles will step you through basic issues like getting the code on the site and then testing it. They also cover customizations that you can do to the main code. You need to know common customizations for things like e-commerce tracking and multiple subdomains. You can also fine-tune your reporting with advanced customizations to the code that are not well known, even among Google Analytics experts.

  • Code Generator and LinkTagger: Introducing two new tools that bring advanced customization of the tracking code within reach of all users.
  • Lessons on JavaScript: Google Analytics tracking code is in JavaScript. To make the fullest use of it, there are a few things to know.
  • Upgrading to ga.js: If you've been using Google Analytics for awhile, you probably need to upgrade to the newest code
  • Adding Tracking Code: Insert and test Google Analytics tracking code
  • Subdomains: If you are tracking multiple subdomains, there are some things to keep in mind
  • E-Commerce Tracking: How to track transactions on an e-commerce site
  • Cross-domain Tracking: If your site spans multiple domains, you need to make some code changes
  • Custom Variables: Track multiple custom variables in Google Analytics
  • Advanced Features: Expert-level customizations to the tracking code