I have always found Google’s tracking code to be fast, definitely faster than other tracking applications I’ve tried. Still, if they can improve the performance even further I won’t turn it away.
Installing Google’s New Tracking
I found that just relocating the tracking page was a little tricky…not sure why they hide it the way they do. Anyway, here are the steps to install the new (and potentially faster) Google tracking:
- Log into your Google Analytics account
- You should be provided a list of sites you are tracking. Find the site you want to change.
- You should see your site URL and then an identifier that looks like this: UA-1234567-8. Write this identifier down (it is your sites Web Property ID).
- Click the Edit link.
- In the upper-right of the page that has loaded you should see a link “Check Status”. Click on this.
- You should now see a new link in the section titled “Instructions for Adding Tracking” that says something like “Try the new Asynchronous Tracking!” – click on this.
Note: at some point this new feature will likely become a standard feature so this link may be moved or changed but accessing the tracking code should still be available at this page
- You should now be presented with the page to access the new code. At this time, you have to manually enter your Web Property ID (which is why we wrote it down earlier). I imagine they will at sometime change this so the code presented to you will already have your ID in it.
- Copy the tracking code text.
- Find where you keep your old Google tracking code (for example, in WordPress this is normally in the footer.php in your theme).
- Remove the old Google tracking code and replace it with the new
- Remember: You will need to update the Web Property ID. The line you need to change looks like this:
So on this line you would replace UA-XXXXX-X with UA-1234567-8 (using the example code from above)
- Save the file you’ve changed and ensure the changes are copied to your web server.
The process is relatively simple, although I do think Google should just be populating the Web Property ID themselves. Seems likely to me that many people will see the new code and replace their old code with it without ever reading that they need to replace the UA-XXXXX-X.
What Does Asynchronous Mean?