Save 20%

off Individual Membership
every year you're a member with us

View your membership options

Hurry our offer ends in

New Individual Annual and Monthly members only. Valid until 30th April 2017. This offer is available for the lifespan of your membership, if you choose to cancel your membership this offer will end.

Explore our Google Analytics Toolkit

Tracking campaigns in Google Analytics

A how-to guide for campaign reporting with examples

One of the most important (but often overlooked) aspects of digital marketing is setting up your analytics properly. It’s a little bit technical but easy to do once you understand a few simple steps and see why it’s so important.

Being able to track where your visitors are coming from is a valuable opportunity to improve your engagement and your ROI during the campaign. Additionally, when you benchmark your campaign performance you will be able to improve your campaigns in the future, and budget more effectively. It’s worth investing a little time in analytics!

In this post, we’ll show you how to use Google Analytics to track visits to your website or landing page. This is the critical first step in being able to understand how your campaign is performing.

10 Steps to Actionable Analytics for Digital Marketing from Smart Insights

Once you can accurately see where your visitors are coming from, you’ll be able to build more useful reports such as “goal completions by conversion source” (e.g. how many leads or sales are coming from Bing versus Facebook), or “sales by source/medium” (using Google Analytics’ e-commerce reporting features).

Why track your marketing campaigns?

Marketers at the top of their game always want more data. When you know where your visitors are coming from and how each traffic source is converting on your site, you can make on-the-fly optimizations to your campaign and achieve better overall results.

With this campaign tracking data in hand, you’ll be able to benchmark against it when designing and budgeting for future campaigns, making your future campaigns even better. This is one form of data benchmarking, and it’s a powerful tool for any marketer.

What if you not thinking this way when setting up your promotions? For example, suppose you are running a contest and you’ve promoted it through print, email, Facebook Ads, Facebook Sponsored Posts, and Google Adwords. Visitors from these sources will appear in Google Analytics as follows:

googlecampaigntracking* These can show up as various sources such as m.facebook.com (Facebook’s mobile web page) and l.facebook.com (Facebook’s laptop/desktop version), depending which devices they use and if they are using http or https status.

In this example, you wouldn’t be able to distinguish visitors from print versus email. Your Facebook traffic will all show up as one stat, regardless of whether they clicked your post or an ad. Traffic from Google will all display as organic traffic, not paid traffic (cost per click).

The trouble here is that you can’t tell what the money spent on Facebook Ads or Google Adwords actually translated to in terms of leads, sales, sign-ups, etc. Did the Google Adwords spend pay off? Did anyone actually find your website through print advertising? You just won’t know. And the next time you plan a campaign, you’ll be just as blind.

But if you had known that mid-way through the campaign your Facebook Ads were converting at half the cost of visitors from Adwords, you could have applied the remainder of your Adwords budget toward Facebook Ads and boosted the overall ROI of your campaign. Or, suppose your analytics could have shown that all of your direct traffic was coming from print, and your email marketing wasn’t working - you could adjust your email messaging to get a better click-through rate there. Perhaps you are emailing to multiple lists (you should be segmenting!). Wouldn’t it be great if you could see your conversion rates for each email list separately?

You can get all of this data, and it’s easier to do than you think.

How to track your campaigns?

We’re using Google Analytics here as it’s so popular, but other analytics tools will have similar features.

When a visitor lands on your website, Google Analytics records that pageview along with the source and medium that the visitor originated from. The “source” is the domain that the visitor came from, and the “medium” is a classification for different kinds of traffic. There is also a “campaign” parameter that can be used to further segment your traffic.

Many tools like MailChimp, Hootsuite, Oktopost and Hubspot have features that let you create tracking URLs, but anyone can use Google’s own Tracking URL Builder.  You can automatically apply tracking parameters to all Adwords traffic by enabling Auto-tagging in Adwords (read instructions about how it works.).

A simple URL looks like this: http://qoints.com

A Tracking URL looks like this: http://qoints.com/?utm_source=smartinsights.com&utm_medium=referral&utm_campaign=guestpost

These UTM parameters (everything after the “?”) force Google Analytics to record this data into the visitor’s pageview. In your Analytics Reporting view, under Acquisition > All Traffic, you will see traffic from the above Tracking URL as:

source / medium = newsletter / email

and in the Acquisition > Campaigns report you’ll see this traffic under Campaign = agency-newsletter

Using Tracking URLs for the campaign promotion example above, we’d get this:

campaignurlspromotion

* using a simple URL when posting links to Facebook will report people who click the link as facebook / referral by default, but you can use UTM parameters to distinguish different campaigns if you want

The URLs below all go to the same fictitious landing page (http://example.com/), but they have different tracking parameters appended to them:

  • http://example.com/?utm_source=mailer&utm_medium=print&utm_campaign=agencies
  • http://example.com/?utm_source=contest-promo&utm_medium=email&utm_campaign=agencies
  • http://example.com/?utm_source=facebook&utm_medium=cpc&utm_campaign=agencies
  • http://example.com/?utm_source=facebook&utm_medium=referral&utm_campaign=agencies
  • http://example.com/?utm_source=google&utm_medium=cpc&utm_campaign=agencies

So, for each channel that you are promoting through, you should be using a unique tracking URL. This will automatically allow you to report on each channel, as well as reporting on each source, medium or campaign as an aggregate.

Important tips for measurement

  •  1. Plan and organize your parameters

Google Analytics simply records whatever it’s told, so organize your parameters ahead of time. It’s best to use a standard set of parameters company-wide. If your company uses a different set of parameters each time an email goes out, you won’t be able to easily report on things like overall traffic from email monthly or year-over-year. Analytics is case-sensitive too, so “Email”, “email”, “e-mail” and “E-mail” will report as four separate mediums.

  • 2. Keep it simple

It may be tempting to create unique parameters for all of the variables for each source, but this is not necessary, nor is it ideal. Each channel only needs its own unique combination of parameters in order to be reported on separately.

For example:

variablescampaignanalytic

These parameters will allow for reporting on all paid traffic, or all email traffic, or all traffic from the whole “summer” campaign as well as reporting on each channel separately by using combinations of the above in a segment or filter.

  • 3.  Start now

Any data is better than none. Start simple and grow from there. Optimizing your campaign strategy in response to real-time data is a powerful way to achieve better ROI for your campaigns. Benchmarking your digital marketing data over time is a sure-fire way to improve your future campaigns, too.
Watch our video

By Expert commentator

This is a post we've invited from a digital marketing specialist who has agreed to share their expertise, opinions and case studies. Their details are given at the end of the article.

Start the discussion on our community and social networks

Turbocharge your results with our

Google Analytics Toolkit

Recommended Blog Posts

Popular Blog Posts