Dynamic URL Macro Tokens for Google Ads
Supported ValueTrack and dynamic URL parameter tokens for automated attribution
| Macro Token | Recommended UTM Parameter | Dynamic Value Injected |
|---|---|---|
| {campaignid} | utm_id | Populates the numeric Google Ads Campaign ID dynamically. |
| {adgroupid} | utm_content | Injects the unique Ad Group ID for granular split testing. |
| {keyword} | utm_term | Captures the exact keyword from your account that triggered the ad. |
| {matchtype} | utm_term | Records the match type (e.g. e = exact, p = phrase, b = broad). |
GA4 Channel Grouping Rules for Google Ads
How Google Analytics 4 processes and reports your incoming campaign traffic
Regex Matching Criteria
GA4 matches traffic with utm_source='google' (or any search platform) and utm_medium matching '^(cpc|ppc|paidsearch)$' into the Paid Search channel group.
Best Practice for Google Ads
Ensure auto-tagging (gclid) is enabled in your Google Ads account settings. Use UTM parameters in Tracking Templates for cross-platform analytics consistency in third-party CRMs and GA4.
Frequently Asked Questions: Google Ads UTMs
Detailed answers regarding Google Ads (PPC / Search) tracking, link configuration, and attribution
Should I use UTMs if Google Ads auto-tagging (gclid) is already enabled?
Yes, using both is standard practice. While gclid provides native Google Ads reporting within GA4, manual UTM parameters ensure that third-party analytics tools, marketing CRMs (such as HubSpot or Salesforce), and server logs can attribute lead sources accurately without requiring access to Google's proprietary gclid database.
Where do I add UTM parameters in Google Ads?
You can add UTM parameters at the Account, Campaign, or Ad Group level inside Google Ads under Settings > Tracking Template. Using ValueTrack parameters like '{lpurl}?utm_source=google&utm_medium=cpc&utm_campaign={campaignid}&utm_term={keyword}' ensures every ad automatically carries dynamic attribution.
What is the recommended utm_medium for Google Ads in GA4?
Always use 'cpc', 'ppc', or 'paidsearch'. Using non-standard medium names like 'google_ads' or 'paid' will cause GA4 to fail regex pattern matching and categorize your paid traffic as 'Unassigned'.
Other Marketing & Ad Platform UTM Builders
Switch to dedicated tracking generators for other advertising networks and channels