Keep Personal Data Out of Campaign URLs
Review campaign labels, recipient merge fields and redirect destinations before sending. A checked fictional URL template shows what a narrow link review can catch.

Use campaign links to describe a campaign, not the person receiving it. Keep email addresses, phone numbers and private account details out of public URLs, including their path and UTM values; a short link or an encoded value does not make those details private.
A small team prepares a newsletter and wants to recognize each recipient in the traffic report. Adding an email address to the link seems convenient: one column in a spreadsheet, one merge field and a more detailed report. It also turns an address that belonged in the mailing system into part of a URL that can be copied, forwarded or recorded elsewhere.
The useful question before sending is simpler: what does this campaign need to identify? Often it needs a source, a channel, a campaign and perhaps a creative variant. It does not need to put the recipient's identity in the address bar.
Keep the campaign label separate from the recipient
Google's campaign URL guidance describes parameters such as utm_source, utm_medium and utm_campaign for identifying referring campaigns. A public label such as founder_digest can describe an email campaign without naming a subscriber.
Here are two invented examples, shown as text rather than links to click:
Campaign-level example:
https://example.com/guide/?utm_source=newsletter&utm_medium=email&utm_campaign=founder_digest
Recipient detail that does not belong in a campaign label:
https://example.com/guide/?utm_campaign=lee%40example.com
lee@example.com is a fictional placeholder. The %40 sequence represents the @ character; it does not conceal the address. URLSearchParams documentation shows how query parameters are decoded when parsed.
Apply the same review to the path and other parameters. Moving an address into /people/lee@example.com/, renaming its parameter to reference, or placing it inside utm_content changes its packaging, not the underlying information. A random-looking identifier also deserves review if your systems can connect it to a person; an opaque value is not automatically anonymous.
This does not mean every application link must be identical. An account verification or password reset flow has its own access and delivery requirements. Keep those flows separate from shareable marketing links, and have their owners review them. Do not add their credentials or recipient identifiers to a campaign tagging template.
Review the destination, not just the short link
A shortened URL can hide a long destination from a reader's first glance. It does not remove the destination's parameters. Before approving the campaign, inspect the actual destination and any redirect that adds or transforms values. Our redirect and UTM guide explains how to find the first changed hop.
Google Analytics' PII guidance says its basic page tag collects the page URL and title, and that both paths and parameters must be free of information Google recognizes as personally identifiable. Do not judge collection only by what a simplified report happens to display.
The concern also extends beyond an analytics dashboard. OWASP describes exposure through URL query strings, including browser history and logs. HTTPS protects transport; it does not make a URL disappear from the systems that handle it.
Be precise about referrers. A full URL is not sent to every external site in every browser. MDN documents Referrer-Policy: the default policy sends only the origin on a cross-origin HTTPS request, but includes the path and query on same-origin requests. Site policy and request context matter. That boundary is a reason to inspect the real flow, not a reason to put private values in a campaign URL.
Test one agreed template before testing every link
For a small newsletter, write down the approved values before generating the links. This fictional template allows exactly three parameters for one campaign. It intentionally rejects extra parameters, duplicates and unexpected values rather than trying to guess which strings are private.
const approved = new Map([
['utm_source', 'newsletter'],
['utm_medium', 'email'],
['utm_campaign', 'founder_digest'],
]);
function matchesTemplate(candidate) {
const url = new URL(candidate);
const pairs = [...url.searchParams];
return url.origin === 'https://example.com'
&& url.pathname === '/guide/'
&& !url.username && !url.password && !url.hash
&& pairs.length === approved.size
&& [...approved].every(([key, value]) =>
url.searchParams.getAll(key).length === 1
&& url.searchParams.get(key) === value);
}
We ran this exact function with five invented inputs. It accepted the campaign-level example above. It rejected four variations: an encoded email as the campaign name, an extra email parameter, an email inside utm_content, and a repeated utm_source parameter. No requests were sent to those URLs.
That result verifies this narrow template, not a general privacy scanner. It does not inspect a redirect, a page title, a tag manager, a form submission or the behavior of another service. A different campaign needs its own approved values. Invalid URL syntax also needs handling if you turn this demonstration into a tool. Never run a bulk rewrite on operational links just because they fail this example.
Use redaction as another check, not permission to send the value
If you use GA4, its data-redaction feature can remove likely email addresses and specified URL query parameters before collection in web data streams. Email matching is best effort. The documentation also distinguishes that client-side processing from HTTP headers, Measurement Protocol and Data Import.
Review the settings for the actual web stream, then use its preview with fictional sample values. Check what your site sends in a permitted test as well. A successful redaction preview says something about that configuration; it does not establish that your server logs, email provider or every other collection path removed the same data.
Fix a problematic merge field or link template at its source. If a link is already in use, coordinate the change with the owner of the destination so the campaign still works. Do not replace an address with a stable customer ID and declare the problem solved without reviewing how that ID is used.
Leave a short approval record with the campaign
Before scheduling, keep this small record alongside the email or social draft:
Public destination and any redirect:
Approved source / medium / campaign values:
Path, query and merge fields reviewed:
Fictional test used and actual result:
Collection paths checked; anything still unknown:
Owner of a required link-template correction:
Use fictional values while sharing the review. Keep a real recipient list and any captured private URL in the access-controlled system responsible for it, not in a public screenshot or a general campaign note.
After the link passes review, define the action the campaign should produce. Our end-to-end measurement guide helps separate a redirect request, a page event and a confirmed outcome. Useful measurement starts with a clear campaign label and a clear event definition; it does not require publishing the recipient's identity in the link.

