Landing Page URL Builder

URL safety guide

URL Encoding for Ad Links

Encode URL values when the browser or ad platform needs it, but keep the tracking setup transparent so your team can still audit the final link.

Ad link parameters moving through browser and analytics checks

Encode values

Encode the part after each equals sign when it contains spaces, symbols, nested URLs, or platform tokens that break parsing.

Do not cloak

Encoding is for valid URLs and stable parsing. It should not be used to hide redirects, customer data, or misleading destinations.

Always click test

After encoding, open the final URL and verify the landing page, parameters, and GA4 Realtime view.

When encoding helps

Situation Before Safer encoded value
Space in campaign name spring sale spring%20sale
Nested destination URL https://store.com/products/a?color=red https%3A%2F%2Fstore.com%2Fproducts%2Fa%3Fcolor%3Dred
Pipe separated label campaign|adset|ad campaign%7Cadset%7Cad
Curly-brace macro {{ad.name}} %7B%7Bad.name%7D%7D

Readable URL example

This is easy for a human to inspect and usually fine for direct landing-page UTMs.

https://example.com/products/sample-product?utm_source=meta&utm_medium=paid_social&utm_campaign=spring_sale&utm_content={{ad.name}}

Encoded value example

This is useful when a platform, redirect tool, or nested URL parser needs reserved characters encoded.

https://example.com/products/sample-product?utm_source=meta&utm_medium=paid_social&utm_campaign=spring_sale&utm_content=%7B%7Bad.name%7D%7D

Safe encoding workflow

  1. Build the readable link first so you know what each field means.
  2. Encode only the values that need it.
  3. Keep a readable copy in your launch notes or CSV export.
  4. Click the encoded URL and confirm that the browser opens the same landing page.
  5. Check GA4 Realtime and the ad platform preview before launch.

Do not encode these problems away

  • Hidden redirects that send users somewhere different from what the ad promises.
  • Customer emails, phone numbers, order notes, or other personal data.
  • Duplicate UTM keys that make reports inconsistent.
  • Broken final URLs that were never clicked before launch.

Keep one readable copy and one final tested copy

That tiny habit makes URL QA much less painful when ads, redirects, macros, and GA4 all meet at once.

Build a free link