Google Analytics Extension

The Analytics Extension adds to the standard Newsletter tracking system the Google Analytics campaign tracking parameters on links.

Prerequisites

The Google Analytics tracking is added only if the base tracking is active. Disabling the link tracking will disable even the Google Analytics tracking. Google requires at least the “campaign” parameter, is left blank the tracking is disabled.

Default and per newsletter settings

When the extension is active, each newsletter has a new set of five parameters corresponding to the five Google Analytics tracking values: campaign, source, medium, terms and content. Only the campaign value is required (otherwise the tracking will be disable) and the terms and content is usually specific to banners or paid keywords advertising.

The five values are preset with the default values specified in the Analytics Extension setting panel. The preset happens upon the first newsletter creation, after that moment the newsletter values are independent from the default settings.

Default values for Google Analytics

Per newsletter settings of Google Analytics tracking values

Allowed domains

The extension adds the Google tracking parameter only for links in the blog domain. For example if you send a newsletter with a link to a partner it won’t be tracked (and this is obvious otherwise the tracking would be registered in its Google Analytics console, not yours!).

Replacements

The placeholder {email_id} can be used on every tracking value. The common use is to set the source to newsletter-{email_id} to have a different source for each newsletter. Follow the examples to better understand how to set the tracking values.

Example

You are advertising a new product and you setup a campaign to bring people to your site. Let it be a workout program.

You can name your campaign “Workout 2017” and advertising it with your own newsletter (a couple of them) and few banners on partner sites. So the campaign will be “Workout 2017”, the source for the links on banners on partners’ sites will be the name of the partners’ sites, the medium will be “banner”.

For your newsletters the campaign will be the same, “Workout 2017”, the source “newsletter-{email_id}” the medium could be “newsletter” or “email”.

This setup let you to see all referral for the campaign under the single name “Workout 2017” and then split the data by medium and source. Having the source set to “newsletter-{email_id}” permits to distinguish the two newsletters sent for the same campaign. Of course newsletter-{email_id} could not be “enough readable” while making analysis, so you could fill in the source field with a short and meaningful text. Pay attention to not use an already used source or the Google Analytics data could become unclear.

Of course many other and complex setup can be done, this is just a startup example.

Questions and Answers

What about if I change the tracking values after the newsletter has been sent?

As soon as you change the settings in the single newsletter, the tracking automatically change. Hence every new click on newsletter’s links start to be tracked with the new values. Google tracking parameters are not injected inside newsletter message body, do not search theme there.

Not all links are tracked, why?

Only links to your domain are tracked: check if the not rewritten link is pointing to your domain or not.

Why I cannot use the subject as campaign or source?

Actually you can, there is an undocumented placeholder for that {email_subject} but pay attention that subjects could not be unique and or too long. If you don’t want to use the {email_id} placeholder because it this too much technical, just fill in the source with a short and meaningful text.