Tracking Email Opens with Google Analytics

In Email Marketing by Xu CuiLeave a Comment

Email marketing analytics is often disconnected from other online tracking systems such as Google Analytics. We rely on the email marketing software to tell us the open/click data. If we can view how users engage our emails (open/click) in one central place, Google Analytics, we will gain more insights on the performance of email marketing.

In the previous blog we showed how to track email clicks with Google Analytics. In this post we will show how to track email opens.

It’s simple. You just need to put the following code into the end of your email (html source code, before the </body> tag).

<img src="https://www.google-analytics.com/collect?v=1&tid=UA-XXXXXXXX-1&cid=[Email]&t=event&ec=email&ea=open&el=OpenEmail&dp=%2Femail%2Fmarketing&dt=EmailTitle">

Now let me explains the parameters.

Parameter Value
tid Your own tracking ID. It can be found in Admin -> Property Settings -> Tracking Id (See screen shot below)
cid Client id. Can be your recipient’s email address. In our email platform, you may put [Email] and it will automatically be converted to the real email address.
t Hit type. We can put ‘event’ here
ec Event Category. We can put ’email’ here
ea Event Action. We can put ‘open’ here
el Event Label. We can put ‘OpenEmail-[Email]’ here where [Email] is the real address
dp Document Path. We can put ‘/email/marketing’ here. Note we need to replace ‘/’ with %2F
dt Document Title. We can put email subject here

For more parameters, please refer to Google’s documentation.

And this is a screenshot of how to find the tracking ID.

If you set up correctly, you will find email opens in real time after your campaign is sent.

Lesson Learned

  1. We can use Google Analytics to track our email campaigns (click and open).
If you find the article useful, you may consider to subscribe:

Leave this empty:

Leave a Comment