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?
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.
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.
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.
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
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:
<random#>
&<hostname>
&<random#>
&<URL>
&<utma cookie>
3B%2B_utmz%3D<utmz cookie>
%3BIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With