Quick answer
Give both links the same utm_source, utm_medium and utm_campaign, and change only utm_content: one value for the hero button and another for the footer link. Google gives this exact case as its utm_content example: two call-to-action links in the same email, each with its own value (Google Analytics Help: Collect campaign data with custom URLs).
In this guide's example, the two links differ only near the end:
- Hero button:
…&utm_content=hero_button#pricing - Footer link:
…&utm_content=footer_link#pricing
The worked example
A newsletter for a winter launch has a large button near the top and a text link in the footer. Both open the team-plan pricing section of the same page:
- Destination for both links:
https://example.com/offers?plan=team#pricing - The same on both links:
utm_source=newsletter,utm_medium=emailandutm_campaign=winter_launch - Hero button:
utm_content=hero_button - Footer link:
utm_content=footer_link
The destination already has a query parameter (plan=team) and an anchor (#pricing). Both must survive tagging, or readers could land on the wrong plan or at the top of the page.
All values are lower case, because Google treats parameter values as case sensitive: Email and email become separate values in reports (same Google page as above).
example.com is a placeholder domain used only to demonstrate. Build your real links from your own page address.
Build the hero button link
In the UTM Campaign URL Builder:
- In Website URL, paste
https://example.com/offers?plan=team#pricing. - In Campaign preset, choose Email Newsletter — newsletter / email. This fills Campaign source with
newsletterand Campaign medium withemail. - In Campaign name, type
winter_launch. - Open Optional parameters (ID, content, term, advanced) and type
hero_buttonin Campaign content. - Leave Naming consistency as it is: the values are already lower case and contain no spaces.
- Select Generate URL. The link appears under Campaign URL, and the Parameters in this link table lists the four UTM values. Select Copy URL and paste the link into your hero button.
Build the footer link
Keep the form as it is and change one field:
- In Campaign content, replace
hero_buttonwithfooter_link. - Select Generate URL again. If you skip this step, the builder warns that you've changed the form since the link was made, and Copy URL stays disabled until you generate it again.
- Copy the new link into your footer.
Compare the two links
These are the complete links the builder produced for this example. Each one opens the full, uninterrupted URL, and you can copy it with your browser's copy-link option:
Read them side by side:
- Same page. Both open
https://example.com/offers. - Same plan.
plan=teamis still the first parameter, and the UTM parameters come after it. - Same section. Both end with
#pricing. - Same campaign.
utm_source,utm_mediumandutm_campaignare identical. - One difference. Only
utm_contentchanges:hero_buttonorfooter_link.
The anchor has to stay at the end. The query starts at the first ? and ends at the first #. Everything after the # is the fragment, which the browser uses itself rather than sending it to the server (RFC 3986, the URI standard, sections 3.4 and 3.5). A UTM parameter typed after #pricing would therefore be part of the fragment, not a campaign parameter.
Check what your email platform adds
Email platforms can add their own UTM parameters, and some can overwrite yours. Two examples show the risk:
- Overwriting: HubSpot's "Add source tracking tags to all URLs" setting overwrites custom tags you've added. "Add source tracking only if no existing tags in URL" keeps them (HubSpot: Manage marketing email open and click tracking).
- One value for the whole email: Buttondown adds
utm_contentset to the email's ID, which is the same for every link in the email. It keeps a parameter that's already on a link, so your own values survive (Buttondown: UTM parameters).
Look for your platform's UTM or tracking setting before you send. The pre-send check below shows whether your values survived.
Read the result in GA4
What to compare. Google Analytics 4 stores utm_content in Session manual ad content: the ad content associated with the start of a session (Google Analytics Help: Analytics dimensions and metrics). Grouping sessions by it shows how many sessions each placement brought to your site.
A different question. Your email platform's click count per link answers a different question: how many times each link was clicked (SendGrid: Google Analytics and SendGrid statistics). The two numbers usually differ. Someone can click both email links during one active GA4 session, so two clicks can correspond to one session.
Where to find it:
- Traffic acquisition report. Under Reports > Acquisition > Traffic acquisition, the built-in dimensions include Session campaign and Session source / medium, but not manual ad content. If the report offers Session manual ad content when you add a secondary dimension with the + next to the dimension menu, add it next to Session campaign (Google Analytics Help: Traffic acquisition report).
- Exploration. If the report doesn't offer it, build an exploration with Session campaign and Session manual ad content. Explorations give access to data that standard reports don't show (Google Analytics Help: Explorations).
Which channel the visits go in. GA4's default Email channel matches when the source or the medium is email, e-mail, e_mail or e mail, ignoring case (Google Analytics Help: Default channel group). In this example, utm_medium=email places the visits in Email.
When the data appears. Standard reports can take 24 to 48 hours to process (Google Analytics Help: Data freshness).
Building a link sends nothing to Google Analytics. A visit is counted only when someone opens the link on a page that has your analytics tag. The example links in this guide were generated and checked in the builder. They weren't sent in a real email or measured in a GA4 property.
Testing on your own site. GA4 takes a session's campaign values from the event that starts the session (Google Analytics Help: About Analytics sessions). Google tags use cookies to recognise the same browser across visits (Google for Developers: Cookies and user identification). So test each placement in a clean browser state:
- Incognito: in Chrome, close all Incognito windows between tests. The Incognito session, and its cookies, ends only when the last Incognito window closes (Chrome Help: Browse in Incognito mode).
- Profiles: or use a separate Chrome profile for each test, because profiles keep their browsing data apart (Chrome Help: Manage Chrome with multiple profiles).
Pre-send check
Do this with your real links:
- Replace the example. Make sure no link still points to
example.com. Each link should use your own page address and your own campaign values. - Send a test email to yourself from your email platform.
- Click each placement in the test email: the hero button first, then the footer link.
- Check the final destination. For each click, look at the address bar after any redirect. Compare it with what you intended:
- the domain;
- the path;
- any parameters the page already needed, like
plan=teamin the example; - the anchor, if your link has one.
- Compare the campaign values.
utm_source,utm_mediumandutm_campaignshould be identical on both links, in the same case. - Compare the placement labels.
utm_contentshould differ, and each label should match where you clicked: the hero button shows the hero label and the footer link shows the footer label.
If a value is missing or different, check your platform's tracking setting and send another test.
To read a long address parameter by parameter, paste the part between ? and # into the Query Inspector of the URL Encoder & Decoder. If there's no #, paste everything after ?.

