Cherry Seed

What are coded UTM parameters?

coded utm utm parameters link decoration privacy tools parameter stripping server-side decoding

Quick Answer

Coded UTM parameters encode campaign attribution data into compact, privacy-tool-resistant strings that replace standard utm_ query parameters in campaign URLs. Instead of appending ?utm_source=facebook&utm_medium=cpc&utm_campaign=summer-2025, a coded implementation uses a single parameter like ?ref=fb_c_sum2025. Server-side, the code is decoded back into standard UTM fields before data reaches GA4 or any ad platform. Privacy tools and browsers that strip recognised utm_ patterns pass the coded parameter through because it resembles an internal reference, not a tracking decorator. The approach preserves attribution that would otherwise be lost to parameter stripping by Safari, Firefox, and browser extensions.

Full Answer

Standard UTM parameters follow a well-known naming convention: utm_source, utm_medium, utm_campaign, utm_term, and utm_content. This predictability is both their strength and their vulnerability. Strength, because every analytics platform recognises them automatically. Vulnerability, because every privacy tool, browser extension, and platform-level stripping rule also recognises them. Safari strips query decorations matching known tracking patterns. Firefox Enhanced Tracking Protection does the same. Browser extensions like uBlock Origin and ClearURLs explicitly target utm_ prefixed parameters.

Coded UTMs solve this by encoding the same attribution data into a parameter name and value that privacy tools do not recognise. The encoding scheme maps each UTM field to a compact token — fb for facebook, c for cpc, sum2025 for summer-2025 — and concatenates them into a single parameter with a neutral name like ref or src. To an ad blocker scanning the query string, ref=fb_c_sum2025 looks like an internal reference parameter, not a tracking decorator. It passes through untouched.

The decoding happens server-side, at the first point of contact between the visitor's request and your infrastructure. A lightweight mapping function translates each token back into standard UTM values, which then flow into GA4, Meta CAPI, BigQuery, or any configured destination exactly as if the URL had carried conventional parameters. This means no changes are required to downstream analytics configuration — reports, segments, and attribution models all see standard utm_ values. The encoding exists purely as a transport-layer defence against parameter stripping.

Sources

Programmatic Access

GET https://seresa.io/wp-json/cherry-tree-by-seresa/v1/seeds/764

Cite This Answer

Cherry Tree by Seresa - https://seresa.io/seed/utm-attribution/protect-utm-s1