Google Analytics on Email Templates? | Community
Skip to main content
Marisa_Rybar
Level 4
May 3, 2016
Solved

Google Analytics on Email Templates?

  • May 3, 2016
  • 3 replies
  • 3843 views

Google Analytics does not show me emails as a referral source, but rather attributes those sources to direct traffic. So, I'm wondering if adding Google Analytics tracking code to my email templates will help it recognize the difference.

Has anyone added Google Analytics code to their email templates, and if so, what has been your experience?

Thank you!

Best,

Marisa

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Grégoire_Miche2

Hi Marisa,

Google analytics code is Javascript. So not only it will not run on email clients, but it's a sure way to be blocked by the anti-viruses.

You may want to tag the links, adding some UTM codes to the URLs in the links and configure GA to capture and interpret these UTM.

A lot has been written in the community on UTM's including some ideas to make it more automated:

-Greg

3 replies

Grégoire_Miche2
Grégoire_Miche2Accepted solution
Level 10
May 3, 2016

Hi Marisa,

Google analytics code is Javascript. So not only it will not run on email clients, but it's a sure way to be blocked by the anti-viruses.

You may want to tag the links, adding some UTM codes to the URLs in the links and configure GA to capture and interpret these UTM.

A lot has been written in the community on UTM's including some ideas to make it more automated:

-Greg

SanfordWhiteman
Level 10
May 3, 2016

If you want to map utm_medium to "email" and/or customize the source for clicked links, simply match on referrer = {your branding domain}.

Of course to get deeper data you will need to tag your links in the email editor, like Greg said.

Casey_Grimes2
Level 10
May 3, 2016

Hi Marisa,

Just a quick follow-up: while I'm waiting for Part 4 of an ongoing Google Analytics + Marketo series I've been writing to post to be put up (so I can, in turn, combine the most Marketo-y parts to share here on the community), I do go into some detail on how to sort out referrer data from your emails (or remove it altogether) in Part 3 of this guide.