Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tracking email opens in Google Analytics

Tags:

We have tracking in our emails to track clicks back to our site through Google Analytics. But is there a way to track opens? I would imagine I have to add a google tracking image to the email somewhere. Possibly javascript too?

like image 386
at. Avatar asked Dec 16 '10 01:12

at.


People also ask

Can you track email opens with Google Analytics?

Email opens in Google Analytics is tracked by embedding an image pixel within the body of the email. When a user opens an email, the email client fetches this image. This image then passes on the email tracking information to the Google Analytics servers, which you can then view in your Google Analytics account.

Can you track email opens?

Email tracking notifies you when any email you sent has been opened or clicked. Email tracking software places an invisible image pixel in your emails that can detect the exact time and date an email has been opened by a recipient.

How track HTML email opens?

To track emails from the Contact's page in Classic hover over the HTML Email Status link at the top of the page. To track emails from the Contact's page in Lightning look for a "last opened" or "unopened" message under the Past Activities section on the right side of the page.


2 Answers

As others have pointed out, you can't use Javascript in email. The actual tracking is done by a request for __utm.gif though and the Javascript just constructs the GET parameters.

Google supports non-Javascript uses of Google Analytics per their Mobile web docs: http://code.google.com/mobile/analytics/docs/web/

They document the full list of parameters, but the only necessary parameters are:

Parameter    Description utmac        Google Analytics account ID utmn         Random ID to prevent the browser from caching the returned image utmp         Relative path of the page to be tracked utmr         Complete referral URL 
like image 160
Turadg Avatar answered Sep 29 '22 21:09

Turadg


The reference that describes all of the parameters that the Google Analytics tracking GIF allows is here. Use it to build an <img> tag in your email that references the GA GIF.

According to this post, the minimum required fields are:

  • utmwv=4.3
  • utmn=<random#>&
  • utmhn=<hostname>&
  • utmhid=<random#>&
  • utmr=-&
  • utmp=<URL>&
  • utmac=UA-XXXX-1&
  • utmcc=_utma%3D<utma cookie>3B%2B_utmz%3D<utmz cookie>%3B
like image 38
Raleigh Buckner Avatar answered Sep 29 '22 19:09

Raleigh Buckner