Take Rate Take Rate PERFORMANCE RECOVERY
Talk to us

UTM parameters for ecommerce emails: how to tag your links

A product link can open the right page while carrying a campaign name nobody recognises later. Choose the labels before you build the email, then use the same names everywhere that campaign appears.

Keep the campaign name. Change the link label.

For two links in the same restock email, keep the shared campaign name and give each placement its own content label.

Top button
Campaign: linen_restock. Content: top_button.
Lower text link
Campaign: linen_restock. Content: bottom_text.
The labels describe the campaign and the link’s position. They give the two placements different names within the same campaign.
About 6 min read
Updated:
Article
Learn about our editorial policyLearn about our research methodology

Sources checked 6 November 2026.

Uses a selected article brief with sources. ChatGPT and Perplexity send the brief and start a request. Claude may need sign-in or paste; Gemini uses copy/paste. Full article below.

Full article, downloads and prompt

Uses a selected article brief with sources. ChatGPT and Perplexity send the brief and start a request. Claude may need sign-in or paste; Gemini uses copy/paste. Full article below.

Download articleDownload AI source digest

Copy the complete article or download it for later.

Contents

Quick answer

UTM parameters add campaign labels to a web address. For an ecommerce email, use utm_source for the referrer, utm_medium=email for the channel and utm_campaign for the campaign name. Google also recommends setting all relevant UTM fields, especially utm_id and utm_source_platform. Add utm_content when you need to distinguish links or creatives within the same campaign. If the destination already has a query, join the campaign pairs to it with &, and keep them before any # fragment. Keep names consistent, check the finished destination and keep personal details out of the URL.

Choose the names before you build the email

Decide what the campaign will be called in your records. Then use that exact spelling in each tagged link.

For a restock email, you might choose linen_restock as the campaign name. The button near the top and a text link near the bottom still belong to that same campaign. They can have different content labels without becoming two different campaign names.

Save the agreed values in the campaign-link worksheet. A second person should be able to reuse them without guessing which spelling you meant.

Google’s naming guidance matters here: UTM values are case sensitive. Linen_Restock and linen_restock are different values. Changing a capital letter, an underscore or a hyphen can change the label you later see in a report. Lowercase is a useful default; consistency is the point.

What each UTM field means

These fields answer different questions:

utm_source, which referrer? For this email example, customer_newsletter names the newsletter bringing the visitor to the store.

utm_medium, which channel? Use email for this example. Keep the same medium label across comparable email campaigns.

utm_campaign, which campaign? linen_restock gives the message a recognisable campaign name.

utm_id, which campaign ID? Google defines this separately from the campaign name. Keep it aligned with the IDs you use if you upload campaign data.

utm_source_platform, which sending platform? Use the name of the platform responsible for directing the traffic. In the worksheet, replace the example value mailing_platform with your actual email platform’s name.

utm_content, which creative or link? top_button and bottom_text let you label the two placements separately.

Source and medium are not interchangeable. A newsletter name belongs in source; email describes its channel. Likewise, content distinguishes the links without requiring you to rename the whole campaign.

Google recommends using source, medium and campaign whenever you tag a URL, and notes that missing UTM parameters appear as (not set) in reporting. Treat a shared naming sheet as the place to decide every value you will use, including the ID and platform, rather than leaving each email writer to invent them afresh.

Build the tagged URL

Start with the exact destination the reader should reach. For a product email, that might be the product page rather than the store homepage.

Use the link builder to assemble the address from the labels on your naming sheet. It adds the campaign pairs to any query the destination already has, keeps a # fragment after them, and handles a UTM field the destination already carries instead of adding a second copy. Google’s Campaign URL Builder is the official alternative, or you can add the parameters yourself. If a label contains spaces or characters such as &, use a builder that encodes the value rather than pasting it into the address unchanged. In a manually assembled URL, the first query starts with ?, each name and value are joined by =, and the pairs are separated by &.

For example, this three-field version shows the basic syntax:

https://example.com/?utm_source=customer_newsletter&utm_medium=email&utm_campaign=linen_restock

The campaign-link worksheet contains the fuller example, including campaign ID, sending platform and content. The example uses example.com; replace it with your store’s actual destination before sending a campaign.

Keep any existing query parameters intact. If the address already has a query, add the campaign pairs to that query with &. Do not replace a product option or another part of the destination just to make the URL look shorter.

A # begins a separate fragment, such as a section of a page. Campaign query parameters belong before that fragment. The URI standard makes the boundary explicit: the query ends at # or at the end of the address.

Keep the campaign fields stable when two links belong to the same email campaign. Change utm_content to describe the particular link.

For the example, the top button can use top_button, while the lower text link uses bottom_text. Both keep utm_campaign=linen_restock. You can then recognise each placement without trying to reconcile two names for the same campaign.

Google describes utm_content as the field for distinguishing creatives, including separate calls to action in one email. A content label should identify the thing you actually want to distinguish. It does not need a clever naming system.

Open the finished link and check where it lands. The product, page section and any existing options should still be the ones you intended.

Then read the labels back against your naming sheet. Check spelling and capitalisation, look for a second copy of the same parameter, and make sure the content label matches the link it is attached to. A copied top-button link needs its content value changed before it becomes the lower text link.

If your email platform adds tags automatically, check the completed link it produces before adding another set manually. For auto-tagged advertising links, follow the relevant platform setup rather than assuming that manual email-tagging rules are a replacement. Google documents the interaction between manual tagging and auto-tagging separately.

Once a link passes these checks, record it in the campaign-link worksheet beside its destination and labels, so the next link in the campaign starts from the same names.

Find the campaign labels in Google Analytics

Google says campaign parameter values are available in the Traffic acquisition report. Use the acquisition dimensions that match the question you are asking and your tagging setup.

Do not expect to find the UTM strings in every page-path dimension. Google explicitly says they are omitted from Landing page + query string and Page path + query string and are instead populated in Page location. That distinction can save you from rebuilding a link merely because you looked in the wrong place.

Keep personal details out of campaign URLs

Campaign labels should describe the campaign, not identify its recipients. Do not put a customer’s email address, name or phone number into a UTM value.

Google’s Analytics guidance says both URL paths and parameters must be free of personally identifiable information. A label such as customer_newsletter describes the source without adding a particular customer’s details to the address.

Sources and method

This guide uses Google Analytics documentation for UTM field meanings, naming, reporting and personal-data handling, and RFC 3986 for query and fragment syntax. The campaign names and example URL demonstrate how to label a link.

Google Analytics: campaign URL builders

Google Analytics: traffic-source dimensions and tagging

Google Analytics: avoiding personally identifiable information

RFC 3986, query and fragment syntax

Use our contact form to share your store details.

Talk to us
Take Rate Take Rate PERFORMANCE RECOVERY

Take Rate is the publisher of this guide.