Build a tracking link with Google's Campaign URL Builder (2026)
What you’ll have at the end
A tracking link: your page's web address with campaign details added to it. Google's help says that when someone clicks the link, the details are sent to Google Analytics, and show in the Traffic acquisition report.
For example, Google's help shows this link for a summer sale email: https://www.example.com/?utm_source=summer-mailer&utm_medium=email&utm_campaign=summer-sale
Before you start
You’ll need
- The full web address of the page the link should open
- Where the link will be shared (its source), such as a newsletter
- The kind of marketing (its medium), such as email
- A short campaign name, such as spring_sale
What it costs. Google's pages for the Campaign URL Builder don't state a charge.
Google's help says that when you add campaign details to a link, you should always set the source, the medium and the campaign. Please decide these first: - Source is where the link is shared, such as google or newsletter. - Medium is the kind of marketing, such as cpc, banner or email. - Campaign is the product, promotion or slogan, such as spring_sale.
Google's help says these values are case sensitive, so "Meta" and "meta" count as different. It suggests using lower case as a standard, and using one source name for each platform, such as Facebook or Instagram.
To see the results, your website needs Google Analytics set up.
Following steps from somewhere else? You’re welcome to bring them here.
Steps
1. Open the Campaign URL Builder
In your web browser, go to ga-dev-tools.google/campaign-url-builder, Google's Campaign URL Builder.
2. Select Web
Select Web. Google's help says the Play builder is for advertising an Android app.
3. Enter the website URL
In website URL, enter the full web address of your page, such as https://www.example.com.
4. Enter the campaign source
In campaign source, enter where the link will be shared, such as google or newsletter.
5. Enter the campaign medium
In campaign medium, enter the kind of marketing, such as cpc, banner or email.
6. Enter the campaign name
In campaign name, enter your campaign, such as spring_sale.
7. Fill in the other fields, if you'd like to
This step is optional. The builder also has these fields: - campaign ID, the ads campaign ID. - campaign term, to identify paid keywords. - campaign content, to tell apart ads or links that go to the same page. Google's help gives the example of two links in one email.
8. Copy your campaign URL
The builder says the campaign URL is generated for you once the fields marked with an asterisk are filled in. Copy the generated link, and use it in your email, post or ad. This guide ends here.
If something looks different
- If the builder shows "The website URL provided is not a valid URL.", please check you entered the full address, starting with https://.
- The builder says one of campaign name or campaign ID is required, and its own table marks campaign name as not required. Google's Analytics help says you should always use the campaign name, so this guide fills it in.
- Google's help says you can also add these details by hand. Put a question mark after the address, then each detail as name=value, separated by an ampersand (&).
- Google's help says that if a detail is missing, your reports show "(not set)" for it.
- To see the results, Google's help says to open Acquisition > Traffic acquisition in Google Analytics.
Related guides
Sources
- URL builders: Collect campaign data with custom URLs - Analytics Help
- Campaign URL Builder - GA Demos & Tools
Alongrail isn't affiliated with Google.