Dynamic URL Macro Tokens for X (Twitter) Ads
Supported ValueTrack and dynamic URL parameter tokens for automated attribution
| Macro Token | Recommended UTM Parameter | Dynamic Value Injected |
|---|---|---|
| {campaign_id} | utm_id | Injects the X Ads Campaign ID for automated reporting. |
| promoted_tweet_v1 | utm_content | Differentiates promoted video tweets, image cards, or text tweets. |
| tech_founders_lookalike | utm_term | Records the targeted handle follower or keyword list. |
GA4 Channel Grouping Rules for X (Twitter) Ads
How Google Analytics 4 processes and reports your incoming campaign traffic
Regex Matching Criteria
Traffic with utm_source='twitter' (or 't.co') and utm_medium='paid-social' is categorized under the Paid Social channel group in GA4.
Best Practice for X (Twitter) Ads
Tag promoted tweets and handle link conversions cleanly with utm_medium=paid-social to distinguish paid ad engagement from viral organic retweets.
Frequently Asked Questions: X (Twitter) Ads UTMs
Detailed answers regarding Twitter / X Ads tracking, link configuration, and attribution
How does Twitter (X) t.co link wrapping affect UTM parameters?
Twitter wraps all links in t.co shortlinks for security. However, the original UTM parameters remain fully intact and are passed to the final destination URL when the redirect completes.
What is the recommended utm_source for Twitter vs X?
Use 'twitter' as the standard utm_source for consistent historical reporting in GA4, as GA4's default regex library specifically recognizes 'twitter' and 't.co'.
Other Marketing & Ad Platform UTM Builders
Switch to dedicated tracking generators for other advertising networks and channels