Tracking Clicks in Emails Using Google Analytics
Most use Google Analytics to track simple metrics like page views, what keywords do people type in search engines before they land on our website, where the visitors are coming from, what pages are most popular and so on.
Now this kind of data can be collected using any other web stats program so here we explore some more powerful “click tracking” features of Google Analytics.
How to Track Clicks in Email Messages
Say you have written a wonderful article that fellow bloggers may like to blog about. You are likely to send them an email with a link to the story but how do you track if people actually clicked on that email link ?
Enter URL Builder - a free tool from Google Analytics. Just type the URL of your blog article and put the following values (
Campaign Source=<Your Website Name>, Campaign Medium="email", Campaign Name=<Title of your Blog Post>)
Press the Generate URL button and send that new tagged link in your email message. Here’s a sample URL after tagging:
To see how well your email performed, go to Traffic Sources -> Campaign and select the campaign name (which in this case is “My Great Article”).
You can extend this idea for tracking clicks to your site that may have originated from RSS newsreaders or even blog newsletters that are sent via FeedBlitz or FeedBurner.
Track Clicks on Links That Point to External Websites
Say one of your articles links to a story on CNN website or contains an affiliate link that points to some product on Amazon.com. How do you track which external links are popular with your site visitors ?
Fortunately Google Analytics offers a very easy way for tracking outbound clicks or links to pages that are on external websites (e.g. CNN.com). Just append the onClick attribute to your
<a> tag as shown here:
You can then see the number of clicks to CNN.com from your own website by opening the Content -> Top Content report of Google Analytics.
Track Document Downloads (like Word Docs, PDF, MP3, etc)
If you link to files like PDFs, Word Documents, MP3 songs, Video Podcasts, etc that visitors can download from your website, consider using Google Analytics to track downloads so you have a good understanding of non-HTML content that is popular on your site.
Tracking file downloads with Google Analytics is easy - just add the following onlick function to your
To see the statistics for file downloads and, navigate to the “Content” section then select “Top content”.
Google Analytics - More Advanced Techniques
Want more ? Watch these video presentations by Analytics gurus Alex Ortiz and Avinash Kaushik - they definitely know Analytics better than anyone else.
Google Developer Expert, Google Cloud Champion
Amit Agarwal is a Google Developer Expert in Google Workspace and Google Apps Script. He holds an engineering degree in Computer Science (I.I.T.) and is the first professional blogger in India.
Amit has developed several popular Google add-ons including Mail Merge for Gmail and Document Studio. Read more on Lifehacker and YourStory