Google Analytics is an amazing tool for website and visitor analytics. But can you track emails with Google Analytics?
Yes, kind of.
Read on and I’ll explain how to track emails with Google Analytics in 5 steps!
Table of Contents
- Defining “Email Tracking” in Google Analytics
- Setting Up Email Tracking With Google Analytics
Defining “Email Tracking” in Google Analytics
First, we need to define what “email tracking” with Google Analytics means, as it’s a somewhat vague phrase, since it could refer to a few different practices.
For example, an email marketer might take it to mean analyzing the performance of an email blast or other email marketing campaign; determining opens, clicks, and other email marketing metrics is an important step in maximizing your email marketing ROI.
A salesperson, by contrast, might consider email tracking to be the process of determining how a lead interacts with your emails, such as whether they open your message or download your attachment.
Then, we have a more open-ended process of email tracking; determining how your employees are spending their time while using email, such as by analyzing their number of sent and received emails throughout the day, or calculating the average length of email threads between your team members.
Measuring and visualizing these elements are key in improving your email productivity.
Unfortunately, Google Analytics can’t help you in all these areas. It was designed as an application for website analytics, so while there are some email tracking capabilities you can unlock with Google Analytics, you won’t be able to take a deep dive into your team’s Gmail activity.
Setting Up Email Tracking With Google Analytics
If you’re interested in using Google Analytics to track email opens or link clicks for an email marketing campaign or a specific sales email, you can set up a level of email tracking.
This is a somewhat complicated process, and requires a bit of technical know-how, but is otherwise approachable.
Just keep in mind you won’t be able to track many variables, nor is this the best solution for tracking your email productivity.
Follow the five steps below to track emails with Google Analytics.
Step 1. Get a Google Analytics account.
First, you’ll need to sign up for a Google Analytics account if you haven’t already.
You’ll have access to Analytics with any Google account, but you’ll need to set up a property (i.e., a website or app) and prove your ownership with a tracking code before you can start collecting and reviewing data related to it.
This is how Google Analytics works; you install a short snippet of code in whatever online product you want to track, and Google will use that script to collect information on your behalf.
Step 2. Get your trackable URL.
You can start by generating a special URL, which will capture specific reporting data and tie it to your account.Google has a great guide on building custom tracking URLs here.
You’ll need to specify a handful of parameters, including your Google Analytics Tracking ID, or tid, which you can find under Property Settings. You’ll also need to specify a customer ID (cid), though you can set this to 555 to keep things anonymous, and other items like hit type, event category, event action, and the path and title of the tracked item.
You can fill in most of your own custom language here. When done, you’ll have a long URL, something like this: https://www.google-analytics.com/collect?v=1&tid=(youraccounttidhere)&cid=555&t=event&ec=emailtracking&ea=open&dp=%2Femail%2Fcampaign1&dt=Email%20Tracking. Phew.
Improve your team's email response time by 42.5% With EmailAnalytics
- 35-50% of sales go to the first-responding vendor.
- Following up within an hour increases your chances of success by 7x.
- The average professional spends 73% of their workday on email.
Step 3. Turn your trackable URL into an image.
This is how you can get around Google Analytics’s natural limitations for email tracking. Essentially, you’ll wrap this URL into an HTML tag for an image, like <img src=”yourURLhere”>.
Paste this into an HTML file, along with at least some of the text from your email, then save as an HTML file.
The idea is that you’ll use this prompt to open an image as a sneaky way to get your email recipients to open a custom URL—this code prompts users to download an image from a URL, but instead of hosting an image, it hosts your tracking URL.
This may seem deceptive, since Google generally doesn’t like it when you redirect web users unnecessarily, but this process is outlined by Google directly, so you can use this method guilt-free.
Step 4. Send a test email.
Open that HTML file in a browser, then copy and paste everything into an email draft. Note that if you’re using an email account in a browser, you may get some funky errors; it’s better to use a program like Outlook or Apple Mail.
If you have any tweaks to make, you can make them now, but if you’re just testing things out, it won’t much matter what text you use in the body of your email.
Send the email to yourself or to a coworker to see if your visit registers in Google Analytics. If it doesn’t, something may have gone wrong with the file. Or your email program. Or your tracking URL.
Honestly, there’s a lot of things that can go wrong here, since there are so many moving parts to consider.
Step 5. Send your email campaign.
When you’re done, you can head to Google Analytics and check out the real-time analytics page. Replicate your testing conditions with your real email, and watch as your “active user” numbers begin to climb—this is an indication that people are opening your email.
This isn’t a perfect system, even for email campaign tracking. It doesn’t track many behavioral Gmail metrics. It’s a pain to set up. And it doesn’t work that well for Gmail, ironically, because Gmail typically prevents this type of email tracking by saving the picture and storing it.
In fact, there are a ton of better ways to track email campaigns — I’d recommend using just using an email marketing tool, which all come with built-in email tracking.
However, it’s one of the only ways to track emails with Google Analytics. Google Analytics is a web tracking application, first and foremost, so if you’re trying to track emails in an email campaign, you can probably find a better option.
What About Email Tracking for Productivity?
Assuming you’re able to manage the multi-step technical process of setting up email tracking with Google Analytics, or are able to track your sales and marketing emails through some other platform, you might be left wondering how to track the other emails important to your company’s bottom line.
Your team’s email activity has a direct impact on your overall business productivity. If you want to increase that productivity, or just get a better understanding of how your team is working, it’s important to have some method of email tracking in place.
That’s where EmailAnalytics comes in.
You can think of it as Google Analytics for Gmail. It counts and visualizes the number of emails sent and received, top senders and recipients, email traffic by day/hour, and even average email response times.
It integrates with you and your employees’ email accounts with a single click, and displays a comprehensive and customizable Gmail report, so you can interact with immersive data visuals that tell you exactly how your team is emailing.
Sign up for a free trial today to learn more about how EmailAnalytics can improve your organization!
Jayson is a long-time columnist for Forbes, Entrepreneur, BusinessInsider, Inc.com, and various other major media publications, where he has authored over 1,000 articles since 2012, covering technology, marketing, and entrepreneurship. He keynoted the 2013 MarketingProfs University, and won the “Entrepreneur Blogger of the Year” award in 2015 from the Oxford Center for Entrepreneurs. In 2010, he founded a marketing agency that appeared on the Inc. 5000 before selling it in January of 2019, and he is now the CEO of EmailAnalytics.