Preview and validate supported tracking template syntax
Advertisement
Used to test how the template and suffix resolve for an example click.
The click destination used by a tracking service. Add a landing-page macro to pass the destination through.
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.
Query parameters appended to the final landing page URL. Enter parameter pairs without the #fragment.
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.
{lpurl}The final landing page URL.
{unescapedlpurl}Landing page URL without URL encoding.
{escapedlpurl}Landing page URL encoded once.
{campaignid}The numeric campaign ID.
{adgroupid}The numeric ad group ID.
{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}The keyword that matched the ad.
{matchtype}Keyword match type: exact (e), phrase (p), or broad (b).
{device}Device type: mobile (m), tablet (t), or desktop (c).
{network}The ad network where the click occurred.
{placement}The matched placement for a Display Network ad.
{adposition}The position of the ad on the page.
{targetid}The matched targeting criterion ID.
{target}The matched placement or keyword target.
{loc_physical_ms}The ID of the user's physical location.
{loc_interest_ms}The ID of the location of interest.
{param1}The first legacy keyword-level custom parameter.
{param2}The second legacy keyword-level custom parameter.
{random}A random number generated for each click.
{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.
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.
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=123456789Open landing page preview
{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.
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.
Useful URL utilities without a paid subscription.
Get practical results with a straightforward workflow.
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