image description

Custom Campaign Tagging in Google Analytics

If used correctly you will be able to calculate CPA (Cost-per-Acquisition) and ROMI (Return-on-Marketing-Investment) and put some very powerful insights in the effectiveness of the channels you are using...

Why use Custom Campaign Tags?

Purpose of tagging is to standardise the data coming into Google Analytics so that we can view data by channel and source/medium. It is important that we follow this process as it means our analytics is kept clean and accurate.

What is a custom campaign tag?

It’s a link/URL with data added to the end after a /? that passes additional information into Google Analytics so we can track campaigns, e.g.
The green part is the custom campaign code (and does not change) and the blue parts are the data that’s sent to Google Analytics (we change this for each link).


I am running a set of display ads on which is part of a campaign for widgets. The banners will send customers to the www.mywebsite/widgets/ page. I want to create a custom campaign tag which tells Google Analytics where this data is coming from (as it is not automatically labelled this way). In this example, the labels we need are as follows:

source: medium: display_affiliate campaign: widget_campaign_apr2022

Remember to keep everything lowercase as Google Analytics is case sensitive. The custom campaign tag will look like this:

There is also a handy tool for creating custom campaign tags.

How do I create custom campaign tags?

1. Identify the source. The source is typically the website where the banner / link is placed e.g.,,,,, etc. For email campaigns, the source can be the company that manages the newsletter e.g or internal_edm if you are managing internally.

2. Identify the medium. The medium is the channel that the traffic comes from. Use a standard set of channels. The most common medium’s are as follows (you can use your own naming convention alternatively):

  • display_network – network display such as GDN, AMNET etc. Ads on a display network
  • display_affiliate – affiliate display ads such as placements on websites we use as affiliates e.g.,,,, etc.
  • social_paid – Paid placements on social networks, e.g. promoted tweets, sponsored posts on facebook
  • social – non-paid posts / links on social networks
  • email – links in email campaigns / newsletters
  • referral – links within non-paid articles on websites or links from our own content e.g. wider groups, associations
  • referral_paid – referrals from paid sources, such as a link in an advertorial piece, a paid article or directory.
  • organic, cpc and (none) are the other standard channels and these are automatically tagged, so no need to worry about them.

3. Identify the campaign. The campaign is the data we use to distinguish between different campaigns. Generally this is just the name of your campaign, e.g. widget_campaign_mar2015. Replace spaces with underscores as URL’s are easier to QA.

Discuss Your Project with an Expert Today

Get in touch with a brief summary of your requirement and we’ll be happy to discuss your project in an open and transparent manner.

Request a Consultation

Related Insight Posts

Leveraging Calculated Metrics in GA4 for More Accurate Reporting
Leveraging Calculated Metrics in GA4 for More Accurate Reporting

Explore the powerful capabilities of calculated metrics in Google Analytics 4. This guide provides a detailed walkthrough on how to create and apply t..

Read More
Voice Activated: Exploring Voice Search Possibilities for Advertising
Voice Activated: Exploring Voice Search Possibilities for Advertising

This article delves into the rapidly evolving world of voice search technology and its potential impact on the advertising industry. It highlights the..

Read More
Digital Health Check: Leveraging SEO Audits for Strategic Digital Transformation
Digital Health Check: Leveraging SEO Audits for Strategic Digital Transformation

Explore the pivotal role of SEO audits in digital marketing. Our article delves into how advanced audit elements provide insights for competitive stra..

Read More

Why Digital Strategy

To get customers, it’s imperative to be seen by the mass. Every successful company is unique and needs contrasting digital marketing strategies. Book a meeting with us and we will help you find the correct strategy for your company.

Our Approach