URL & UTM Campaign Studio
Percent-Encoding, Search Engine Slugs & GA4 Tracking
Percent-Encoding, Search Engine Slugs & GA4 Tracking
A Uniform Resource Identifier (URI) or Uniform Resource Locator (URL) provides the global addressing foundation for the World Wide Web. Specified comprehensively under Internet Standard RFC 3986, URLs are strictly limited to a defined subset of ASCII characters to guarantee safe transport across heterogeneous network gateways, routers, and proxies.
RFC 3986 categorizes characters into two distinct classes:
A–Z, a–z), digits (0–9), hyphens (-), underscores (_), periods (.), and tildes (~). These characters never require encoding.:, /, ?, #, [, ], @, !, $, &, ', (, ), *, +, ,, ;, and =. When any of these characters are passed as literal payload values rather than delimiters (e.g., passing an ampersand inside a query parameter), they must be percent-encoded.
To percent-encode a character, the browser first translates it into its UTF-8 octet sequence (1 to 4 bytes). Each byte is then represented by a triplet consisting of the percent symbol (%) followed by two hexadecimal digits representing the byte value:
%20 (or + in legacy application/x-www-form-urlencoded forms).&): Encoded as %26 to avoid prematurely terminating query parameters.=): Encoded as %3D to avoid prematurely splitting key-value pairs.€) encodes in UTF-8 as three bytes: 0xE2 0x82 0xAC, becoming %E2%80%AC in percent-encoded URLs.
A URL slug is the human-readable string at the end of a web address identifying a specific page (e.g., /tools/speed-test.html). Optimized slugs provide strong search engine ranking signals and boost click-through rates (CTR) in search engine results pages (SERPs):
-) as natural word separators (indexing speed-test as two individual keywords). In contrast, underscores (_) are interpreted as word joiners (indexing speed_test as a single compound term). Always use hyphens for SEO slugs./My-Article vs /my-article) causes duplicate content penalties and 404 errors.Originally created by Urchin Software (acquired by Google in 2005 to form Google Analytics), UTM tags are five standardized query parameters appended to destination URLs to track inbound marketing campaigns:
| UTM Parameter | Purpose | Example Value | Best Practice |
|---|---|---|---|
| utm_source | Identifies which platform sent traffic | google, newsletter, linkedin |
Always lowercase; never use generic terms |
| utm_medium | Identifies the marketing channel or medium | cpc, email, organic_social |
Match standard GA4 default channel definitions |
| utm_campaign | Identifies the strategic promotion or launch | spring_sale_2026, product_launch |
Use consistent snake_case or hyphen naming |
| utm_term | Tracks paid search keywords (optional) | online+speed+test |
Used in paid search campaigns (Google Ads) |
| utm_content | A/B testing creative variants or link position | header_cta, footer_link |
Differentiate links pointing to the same page |