The Google Analytics Tracking Code Generator

Version 5 (27/10/2023) by S.Cooper

Campaign

If this is a campaign spanning multiple days and/or mutiple social media posts, emails, etc then:

  1. Keep these campaign details the same throughout your campaign.
  2. Then update the Source, Medium, Content and Desination URL sections to generate new tracked URLs.

Otherwise omit this 'Day' field and write the month name as the campaign name.

The date that the campaign starts

The name of this campaign, e.g. July, Head Nurse Congress 2019, etc.

Do not include any special characters. Spaces are allowed and will be converted into dashes.

Source

The referrer, e.g. social or a search engine. Selecting 'Social' will generate several links at once.

If the referrer, is not listed, select 'Referral'. A referral is a tracking link placed on a website that points to another website.

If the tracking link is placed on a website and points to somewhere else on the same website, select 'Internal'.

Medium

The type of 'source'.

Content

This must be the; social post publish date, or the email send date, etc.

The content within this description may vary, but always follows the same format: 'content description' / 'link identifier'

Content Description Examples:

Link Identifier Examples:

Use " / " ('space'+'forward slash'+'space') to separate between types of content.

Keyword

An optional single keyword or long-tail keyword (separated by +). Used for paid search.

Desination URL

The destination URL (include http:// or https://)