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
Solved! Go to Solution.
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
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
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.
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.