How To Track Email Opens with Google Analytics Pixel Tracking

How To Track Email Opens with Google Analytics Pixel Tracking

Last updated

The following is a guest post by Kristin Savage.

Google Analytics (GA) can help you get detailed email insights and boost your marketing efforts. You can use pixels to track open rates and utilize UTM to measure post-click performance.

You don’t need to have any technical knowledge to apply these approaches. You just need to follow the instructions and keep a simple structure of URL and UTM (Urchin Tracking Module) parameters.

Create a Google Analytics account

The first step you should take is to create your Google Analytics account. There’s a good chance you’re already using Google Analytics to track your website visits, in which case you can use the same property.

Create GA property
Create your Google Analytics property, or reuse an existing one.

If you have worked with Google Analytics before, you know that its tracking system uses JavaScript snippet, which is inserted in the headers of the HTML code. The problem is that emails do not load JavaScript.

The way to solve this issue is to create a pixel in your email, which Google Analytics will identify as an image. When the recipient user opens the email, the pixel will ping Google’s server and the system will collect necessary statistical data.

Creating a trackable pixel URL

Now it’s time to create a unique URL for a pixel. You need to write a link while sticking to the strict Google Analytics requirements.

Here is a complete example of a tracking pixel.

<img src="https://www.google-analytics.com/collect?v=1&tid=UA-01010-1&cid=555&aip=1&t=event&ec=email&ea=open&dp=%2Femail%2Fnewsletter&dt=My%20Newsletter">

Lets take a look at what is happening here.

In your HTML email, add this pixel to the bottom.

<img src="https://www.google-analytics.com/collect?v=1&tid=UA-01010-1&cid=555&aip=1&t=event&ec=email&ea=open&dp=%2Femail%2Fnewsletter&dt=My%20Newsletter">

Test your email and make sure the tracking pixel is working

Next step is to test your email and see how this tracking approach works in practice.

Google Analytics email open event
Example of an email open event being triggered.

Try to send your first email and click to open it. Now open Google Analytics and check real-time events, or behavior events page. You should see some activity.

Keep in mind that it’s unlikely that you will see any results if you have just opened test email via Gmail. This mailing service protects users from the tracking and it saves a fake image on a server without showing it to a recipient.

Because the Gmail Image Proxy service does not forward users’ cookies, you can’t use the measurement protocol to track Gmail users. The Gmail Image Proxy service prevents this by having the measurement protocol requests passed through an intermediate server.

So, this approach to track the open rates using Google Analytics is not applicable to Gmail. However, it works perfectly for other widely-used services like Outlook, Apple Mail, and less popular ThunderBird.

Tracking post-click performance with UTM parameters

A digital marketer at PickWriters, a translation reviews website, states:

Open rate is not the only thing, which matters. If you want to analyze results of your email campaign in more details, you should also track post-click performance.

When you use Google Analytics, you can get to know what your subscribers do after they get to your website.

The insights will tell you about the pages, which receivers prefer to visit and the products, which they usually buy. Also, you will get information on how much time they spend on a concrete page and how long they stay on your website.

There are four UTM parameters, which you should customize in order to maximize the effectiveness of the tracking process. Keep in mind that every element of the code is responsible for a specific aspect of the website’s traffic:

As a result, you can join all these UTM parameters into one link and it will look like this:

http://www.htmlemail.io/?utm_source=newsletter&utm_medium=email&utm_campaign=Product%20Launch&utm_content=image1
UTM code builder
UTM code builder.

Fortunately, modern technologies can help you with UTM codes creation. There is no need to write them manually. You can use free Google URL builder to generate a link automatically. It will help you to avoid the errors and save your time.

You can add ready-to-use code to your campaign in two ways: manually or with the help of your email service provider if it offers such a function.

In conclusion

Google Analytics can help you to learn more details about the behavior of your subscribers.

  1. Create a trackable URL to check the open rates
  2. Write UTM codes to get information about the post-click activities

Tracking key metrics like this will help you to come up with informed insights and ideas on how to boost your efforts and achieve better results in the future.

Kristin Savage nourishes, sparks and empowers using the magic of a word. Along with pursuing her degree in Creative Writing, Kristin was gaining experience in the publishing industry, with expertise in marketing strategy for publishers and authors. Now she had found herself as a freelance writer.  She observes with a special interest how the latest achievements in media and technology help to grow readership and revenue and shares her opinion. Find her on Medium.

Receive email design content like this to your inbox.

No spam. Just related email content.