Google Analytics campaign tracking code creator
A simple spreadsheet to help you create URL tracking codes more quickly
Why use this template?
At Smart Insights, we believe in using data-driven marketing to make your marketing activities work harder. You may have the best-laid campaign plans in the world, but if you don't use granular tracking codes in your analytics you won't learn what works and what doesn't to improve for the future.
When consulting or training we find that many businesses don't fully track their inbound marketing activities, especially their content marketing where content is shared by email or social.
Google does have its own campaign URL tracking service on its developer site, but it only enables you to enter one channel or campaign at a time and you can't keep previous campaigns for reference.
Use this template and you will be able to:
- Quickly generate Google Analytics tracking codes for each channel like email, social and display advertising
- Choose from standard codes for each channel to save you having to type them each time and help keep them consistent
- Standardize your campaign source codes for each campaign to enable better comparison in Google Analytics
- Track the impact of your whitepapers, brochure downloads or other PDFs by including links on the URLs in the PDF linking to your site
Here's an example tracking URL for a newsletter. The tracking code follows the landing page address after the '?' so is sometimes called the 'query string'. Google Analytics automatically parses each parameter which starts with &utm so you can see the results in Acquisition, Campaigns report in Google Analytics.
Note that some email marketing packages and social media sharing tools automatically add these parameters in which case it may be best to use these. But in our experience these often don't give you the control you need.
Who is it for?
This spreadsheet is for 'hands-on' marketers agency-side and client side who are running campaigns, but looking to improve the quality of their reporting. Typical roles include:
- Digital Marketing Executive
- Campaign co-ordinator
- Content marketing manager
- Author: Pat Kelly, Senior Marketing Manager, Smart Insights
- Format: Simple Google Sheets document. Can be saved as Microsoft Excel Spreadsheet if required. Separate worksheets for Read Me with instructions, autogenerated URLs and standard codes they are created from
- Related resources: 7 Steps guide to improving marketing with Google Analytics – explains the principles of using Google Analytics campaign tracking.
About the author
Patrick is the Senior Digital Marketing Manager at Smart Insights. He has spent many years working with both B2B and B2C brands to implement data-driven marketing strategies covering paid search, SEO, Social media and marketing automation. You will also find him catching up on the latest Marvel releases or playing the latest RPG.
Connect to Patrick on LinkedIn.
Access this resource now
All Paid memberships have full access to this and 3 other guides in the Google Analytics Toolkit.Learn more about membership Already an paid member?