UTM and marketing tools Free online tool

Google Ads Tracking Template Tester

Preview and validate supported tracking template syntax

Advertisement

Tool workspace

Enter your details below to get started

Final landing page

Used to test how the template and suffix resolve for an example click.

Tracking template

Click URL

The click destination used by a tracking service. Add a landing-page macro to pass the destination through.

84 characters

Use {lpurl} (or an escaped variant) where your tracker expects the destination. This preview substitutes example values; verify the final template and account-level settings in Google Ads before publishing.

Final URL suffix

Landing page tags

Query parameters appended to the final landing page URL. Enter parameter pairs without the #fragment.

58 characters
Suffix values are shown as added to the landing page, separately from the tracking-template redirect.
Custom parameters

Define reusable custom values, then insert their matching {_name} macro in your template or suffix.

One per line, formatted as _name=value. In Google Ads, define custom parameters at the appropriate account, campaign, ad group, or ad level.

ValueTrack macro reference30 macros

Landing page

{lpurl}

The final landing page URL.

{unescapedlpurl}

Landing page URL without URL encoding.

{escapedlpurl}

Landing page URL encoded once.

Campaign

{campaignid}

The numeric campaign ID.

Ad group

{adgroupid}

The numeric ad group ID.

Ad

{creative}

The numeric ad or creative ID.

{feeditemid}

The ID of the clicked ad extension or asset.

{aceid}

The ID of the experiment that served the ad.

Keyword

{keyword}

The keyword that matched the ad.

{matchtype}

Keyword match type: exact (e), phrase (p), or broad (b).

Device

{device}

Device type: mobile (m), tablet (t), or desktop (c).

Network

{network}

The ad network where the click occurred.

Placement

{placement}

The matched placement for a Display Network ad.

{adposition}

The position of the ad on the page.

Target

{targetid}

The matched targeting criterion ID.

{target}

The matched placement or keyword target.

Location

{loc_physical_ms}

The ID of the user's physical location.

{loc_interest_ms}

The ID of the location of interest.

Custom

{param1}

The first legacy keyword-level custom parameter.

{param2}

The second legacy keyword-level custom parameter.

Utility

{random}

A random number generated for each click.

Conditional

{ifmobile}

A value only when the click comes from a mobile device.

{ifnotmobile}

A value only when the click is not from a mobile device.

{ifsearch}

A value only for Search Network clicks.

{ifcontent}

A value only for Display Network clicks.

{ifauto}

A value only for auto-targeted clicks.

{ifpla}

A value only for Shopping ad clicks.

{ifshop}

A value only for Shopping clicks.

{ifapp}

A value only for app ad clicks.

{ifnotapp}

A value only for non-app ad clicks.

Template check

  • Template syntax looks valid. 3 unique macros detected.

Resolved tracking URL

Macros are replaced with sample click data.

https://tracker.example/redirect?url=https%3A%2F%2Fshop.example.com%2Frunning-shoes%3Fcolor%3Dblue&campaign=123456789&keyword=running+shoes

This is a local example only; it does not send a click to the tracker.

Landing page after suffix

Shows tags appended to the destination, not the tracker URL.

https://shop.example.com/running-shoes?color=blue&utm_source=google&utm_medium=cpc&utm_campaign=123456789
Open landing page preview

Macros detected

3 unique
{lpurl}{campaignid}{keyword}

This tool validates template syntax and demonstrates sample macro substitution only. It does not connect to Google Ads or verify account configuration, landing-page availability, policy compliance, or actual click behavior. Always test your saved template in the Google Ads account.

Template characters: 84Suffix characters: 583 unique macros
ABOUT TIDYURLS

Better links. Less hassle.

TidyURLs is a collection of free online tools designed to make working with URLs easier. Whether you're cleaning tracking parameters, editing query strings, checking links, or preparing campaign URLs, our tools help you get the job done quickly without complicated software.

We believe useful URL tools should be accessible to everyone. That's why you can use TidyURLs without paying for a subscription or installing a desktop application. Our goal is to keep everyday link management simple, convenient, and available whenever you need it.

Free to use

Useful URL utilities without a paid subscription.

Quick and simple

Get practical results with a straightforward workflow.

Built for everyone

Helpful for developers, marketers, and everyday users.

Have another link-related task? Explore our other tools and find a simpler way to work with URLs.

Explore all tools