Social media UTM templates
Copy-ready tags for nine platforms, with the GA4 channel rule each one meets.
Social media UTM templates
by TrimLink - Copy-ready tags for nine platforms, with the GA4 channel rule each one meets.
How to use these templates
1. Copy the template for your platform
Pick the organic or paid template for where the link will go and copy it.
2. Swap in your page and values
Replace https://example.com/page with your landing page, then replace {campaign}, {content} and {term} with your own lowercase values.
3. Keep the source and medium as they are
Those two values decide the GA4 channel shown on each template. Change them and the channel can change too.
4. Build it with real values
Open the platform UTM builder to fill in the values and get the finished URL.
{campaign}- the promotion, e.g. black_friday_2026
{content}- the post, creative or placement, e.g. story_ad
{term}- the paid keyword, e.g. running_shoes
Templates by platform
Organic
GA4: Organic Socialhttps://example.com/page?utm_source=facebook&utm_medium=social&utm_campaign={campaign}&utm_content={content}Example: https://example.com/page?utm_source=facebook&utm_medium=social&utm_campaign=summer_sale_2026&utm_content=page_post
facebook is on Google's list of social sites, and social does not count as paid.
Paid
GA4: Paid Socialhttps://example.com/page?utm_source=facebook&utm_medium=paid_social&utm_campaign={campaign}&utm_content={content}Example: https://example.com/page?utm_source=facebook&utm_medium=paid_social&utm_campaign=summer_sale_2026&utm_content=carousel_ad_v1
facebook is on Google's list of social sites, and paid_social counts as paid because it starts with paid.
Dynamic parameters in Meta Ads Manager
Add them to the ad's URL parameters. Meta's ads docs list these six macros.
{{campaign.name}}- Campaign name
{{adset.name}}- Ad set name
{{ad.name}}- Ad name
{{campaign.id}}- Campaign ID
{{adset.id}}- Ad set ID
{{ad.id}}- Ad ID
utm_source=facebook&utm_medium=paid_social&utm_campaign={{campaign.name}}&utm_content={{ad.name}}Meta stores the names as they were when you first published the ad. Rename the campaign later and the tag keeps the old name.
Organic
GA4: Organic Socialhttps://example.com/page?utm_source=instagram&utm_medium=social&utm_campaign={campaign}&utm_content={content}Example: https://example.com/page?utm_source=instagram&utm_medium=social&utm_campaign=bio_link&utm_content=main_profile
instagram is on Google's list of social sites, and social does not count as paid.
Paid
GA4: Paid Socialhttps://example.com/page?utm_source=instagram&utm_medium=paid_social&utm_campaign={campaign}&utm_content={content}Example: https://example.com/page?utm_source=instagram&utm_medium=paid_social&utm_campaign=product_launch_jan_2026&utm_content=story_ad
instagram is on Google's list of social sites, and paid_social counts as paid because it starts with paid.
Dynamic parameters in Meta Ads Manager
Add them to the ad's URL parameters. Meta's ads docs list these six macros.
{{campaign.name}}- Campaign name
{{adset.name}}- Ad set name
{{ad.name}}- Ad name
{{campaign.id}}- Campaign ID
{{adset.id}}- Ad set ID
{{ad.id}}- Ad ID
utm_source=instagram&utm_medium=paid_social&utm_campaign={{campaign.name}}&utm_content={{ad.name}}Meta stores the names as they were when you first published the ad. Rename the campaign later and the tag keeps the old name.
Organic
GA4: Organic Socialhttps://example.com/page?utm_source=tiktok&utm_medium=social&utm_campaign={campaign}&utm_content={content}Example: https://example.com/page?utm_source=tiktok&utm_medium=social&utm_campaign=bio_link&utm_content=profile
tiktok is on Google's list of social sites, and social does not count as paid.
Paid
GA4: Paid Socialhttps://example.com/page?utm_source=tiktok&utm_medium=paid_social&utm_campaign={campaign}&utm_content={content}Example: https://example.com/page?utm_source=tiktok&utm_medium=paid_social&utm_campaign=spring_collection_2026&utm_content=spark_ad_trending
tiktok is on Google's list of social sites, and paid_social counts as paid because it starts with paid.
Dynamic parameters in TikTok Ads Manager
TikTok's help lists these macros for UTM parameters on TikTok ads.
__CAMPAIGN_NAME__- Campaign name
__AID_NAME__- Ad group name
__CID_NAME__- Creative name
__CAMPAIGN_ID__- Campaign ID
__CID__- Creative ID
__PLACEMENT__- Placement: TikTok or TikTok Pangle
https://example.com/page?utm_source=tiktok&utm_medium=paid_social&utm_campaign=__CAMPAIGN_NAME__&utm_content=__CID_NAME__Macros use two underscores on each side. Spark Ads are ads too, so keep paid_social on them.
Organic
GA4: Organic Socialhttps://example.com/page?utm_source=linkedin&utm_medium=social&utm_campaign={campaign}&utm_content={content}Example: https://example.com/page?utm_source=linkedin&utm_medium=social&utm_campaign=thought_leadership_2026&utm_content=article
linkedin is on Google's list of social sites, and social does not count as paid.
Paid
GA4: Paid Socialhttps://example.com/page?utm_source=linkedin&utm_medium=paid_social&utm_campaign={campaign}&utm_content={content}Example: https://example.com/page?utm_source=linkedin&utm_medium=paid_social&utm_campaign=b2b_lead_gen&utm_content=sponsored_post
linkedin is on Google's list of social sites, and paid_social counts as paid because it starts with paid.
LinkedIn's own sample API request tags ads with utm_medium=social, which meets Organic Social. Use paid_social on Sponsored Content so ad clicks stay paid.
Dynamic parameters in LinkedIn Campaign Manager
Add dynamic parameters at the account or campaign level. Write the key in capitals inside double curly brackets.
{{CAMPAIGN_NAME}}- Campaign name
{{AD_SET_NAME}}- Ad set name
{{AD_NAME}}- Ad name
{{ACCOUNT_NAME}}- Ad account name
{{CAMPAIGN_ID}}- Campaign ID
{{AD_ID}}- Ad ID
utm_source=linkedin&utm_medium=paid_social&utm_campaign={{CAMPAIGN_NAME}}&utm_content={{AD_NAME}}LinkedIn renamed its campaign levels in October 2025. New or edited ad sets must use the newer keys, like the ones above.
Organic
GA4: Organic Social or Organic Videohttps://example.com/page?utm_source=youtube&utm_medium=social&utm_campaign={campaign}&utm_content={content}Example: https://example.com/page?utm_source=youtube&utm_medium=social&utm_campaign=how_to_shorten_links&utm_content=description
youtube is on Google's list of video sites and social is a social medium, so it meets both rules. Google does not say which one wins.
Organic, video medium
GA4: Organic Videohttps://example.com/page?utm_source=youtube&utm_medium=video&utm_campaign={campaign}&utm_content={content}Example: https://example.com/page?utm_source=youtube&utm_medium=video&utm_campaign=how_to_shorten_links&utm_content=description
The medium contains video, which meets the Organic Video rule.
youtube is on Google's video list, not its social list. For a predictable Organic Video channel, use utm_medium=video. Keep youtube as the source: youtu.be is not on the list.
X (Twitter)
Open in the X (Twitter) UTM builderOrganic
GA4: Organic Socialhttps://example.com/page?utm_source=twitter&utm_medium=social&utm_campaign={campaign}&utm_content={content}Example: https://example.com/page?utm_source=twitter&utm_medium=social&utm_campaign=launch_thread&utm_content=thread_tweet_1
twitter is on Google's list of social sites, and social does not count as paid.
Paid
GA4: Paid Socialhttps://example.com/page?utm_source=twitter&utm_medium=paid_social&utm_campaign={campaign}&utm_content={content}Example: https://example.com/page?utm_source=twitter&utm_medium=paid_social&utm_campaign=launch_thread&utm_content=promoted_post
twitter is on Google's list of social sites, and paid_social counts as paid because it starts with paid.
Use twitter as the source, not x. Google's social list has twitter, twitter.com and t.co but not x or x.com, so a promoted post tagged utm_source=x meets only Paid Other.
Organic
GA4: Organic Socialhttps://example.com/page?utm_source=pinterest&utm_medium=social&utm_campaign={campaign}&utm_content={content}Example: https://example.com/page?utm_source=pinterest&utm_medium=social&utm_campaign=autumn_recipes&utm_content=standard_pin
pinterest is on Google's list of social sites, and social does not count as paid.
Paid
GA4: Paid Socialhttps://example.com/page?utm_source=pinterest&utm_medium=paid_social&utm_campaign={campaign}&utm_content={content}Example: https://example.com/page?utm_source=pinterest&utm_medium=paid_social&utm_campaign=autumn_recipes&utm_content=promoted_pin
pinterest is on Google's list of social sites, and paid_social counts as paid because it starts with paid.
Dynamic parameters in Pinterest Ads Manager
Add them to your ad's destination URL.
{campaign_name}- Campaign name
{ad_group_name}- Ad group name
{adid}- Pin promotion ID
{campaignid}- Campaign ID
{adgroupid}- Ad group ID
{device}- t tablet, c computer, m mobile
https://example.com/page?utm_source=pinterest&utm_medium=paid_social&utm_campaign={campaign_name}&utm_content={adid}They do not expand when you preview a promoted Pin, only once the ad is live.
Google Ads
Open in the Google Ads UTM builderSearch ads
GA4: Paid Searchhttps://example.com/page?utm_source=google&utm_medium=cpc&utm_campaign={campaign}&utm_term={term}Example: https://example.com/page?utm_source=google&utm_medium=cpc&utm_campaign=brand_keywords_2026&utm_term=trimlink
google is on Google's list of search sites, and cpc counts as paid because it contains cp.
Display ads
GA4: Displayhttps://example.com/page?utm_source=google&utm_medium=display&utm_campaign={campaign}&utm_content={content}Example: https://example.com/page?utm_source=google&utm_medium=display&utm_campaign=display_retargeting&utm_content=banner_300x250
display is one of the mediums the Display rule lists.
Auto-tagging is on by default for new Google Ads accounts, and GA4 gives it priority over manual tags. With it on, GA4 sets the channel from Google Ads data: search clicks meet Paid Search, Display Network clicks meet Display. Keep the UTMs for your other tools.
Dynamic parameters in Google Ads (ValueTrack)
Google suggests the tracking template, and you can also put ValueTrack parameters in the final URL.
{keyword}- The keyword that matched
{matchtype}- e exact, p phrase, b broad, a AI Max
{network}- g search, s partners, d Display, ytv YouTube
{device}- m mobile, t tablet, c computer
{campaignid}- Campaign ID
{creative}- Ad ID
https://example.com/page?utm_source=google&utm_medium=cpc&utm_campaign={campaign}&utm_term={keyword}{keyword} is blank when an ad matches without keywords, as in Performance Max. {campaign} here is still yours to replace.
Newsletter emails
GA4: Emailhttps://example.com/page?utm_source=newsletter&utm_medium=email&utm_campaign={campaign}&utm_content={content}Example: https://example.com/page?utm_source=newsletter&utm_medium=email&utm_campaign=weekly_newsletter&utm_content=hero_button
The medium is email, and that alone meets the Email rule.
Onboarding emails
GA4: Emailhttps://example.com/page?utm_source=onboarding&utm_medium=email&utm_campaign={campaign}&utm_content={content}Example: https://example.com/page?utm_source=onboarding&utm_medium=email&utm_campaign=onboarding_sequence&utm_content=step_2_cta
The medium is email, and that alone meets the Email rule.
Name the list or programme in the source and keep the medium as email. utm_medium=newsletter does not meet the Email rule, and with utm_source=newsletter no rule matches, so GA4 shows Unassigned.
How GA4 picks the channel
GA4 puts each tagged visit in a default channel based on its source and medium. These are the rules behind the channel shown on each template, in plain words.
| Channel | A visit meets it when |
|---|---|
| Organic Social | The source is on Google's list of social sites, or the medium is social (social-network, social-media and sm count too). |
| Paid Social | The source is on Google's social list and the medium counts as paid: it starts with paid, contains cp (like cpc), or is ppc or retargeting. |
| Paid Search | The source is on Google's list of search sites, such as google, and the medium counts as paid. |
| Display | The medium is display, banner, expandable, interstitial or cpm. |
| Organic Video | The source is on Google's list of video sites, such as youtube, or the medium contains video. |
| The source or the medium is email. e-mail, e_mail and e mail count too. | |
| Paid Other | The medium counts as paid but the source is not on Google's social, search or video lists, e.g. utm_source=x. |
| Unassigned | No rule matches, e.g. utm_source=newsletter with utm_medium=newsletter. |
- Google's social list includes facebook, instagram, linkedin, tiktok, pinterest, twitter and t.co, but not x or x.com. youtube is on its video list.
- A social source on its own meets Organic Social. An ad tagged with a medium that is not paid, like story or spark, meets only Organic Social and looks organic in reports. Put a paid medium on every ad.
- Channel rules ignore capital letters. Reports do not: Facebook and facebook show up as two source rows.
- Google Ads auto-tagging is on by default for new accounts, and GA4 gives it priority over manual tags. With it on, GA4 takes the channel from Google Ads data.
Naming rules
Use lowercase only
GA4 reports treat utm_source=Facebook and utm_source=facebook as two rows. The channel rules ignore case, so the split shows up in your reports, not in the channel.
Join words with underscores
Write spring_sale, not "spring sale" or spring-sale. Spaces get encoded in the URL, and mixing hyphens with underscores splits one campaign into two rows.
One spelling per campaign, on every platform
Use the same utm_campaign everywhere, such as black_friday_2026 on Facebook, Instagram and email. The campaign then adds up in one row, and the source tells you where each click came from.
Platform in the source, traffic type in the medium
Put the platform in utm_source (facebook) and organic or paid in utm_medium (social or paid_social). Leave the platform out of the campaign name.
Use the source names on Google's lists
twitter, not x. youtube, not youtu.be. GA4 only recognises the spellings on its list.
Write the values down
Keep the agreed values in one shared doc, or save them as UTM templates in TrimLink so nobody retypes them.
Use them with TrimLink
- Build a tagged URL with real values in the free UTM builder or a platform builder. The builder takes plain values only, so add dynamic parameters inside the ad platform. Open the UTM builder
- Save the tags you reuse as UTM templates in your TrimLink account, then apply them when you create a link. You can manage them through the API too. UTM templates API
- Shorten the tagged URL for bios, posts, emails and print, and make a QR code from it. Each short link shows click counts over time, referrers, countries and devices, all in aggregate.
- For ads, paste the full tagged landing-page URL as the destination. Ad platforms fill in dynamic parameters and add click IDs (Google Ads adds gclid) on that URL, and a short link does not pass parameters added to it on to your page.
Questions
What is a UTM template?
A tagged URL with the source and medium already set and placeholders for the parts that change, like {campaign}. You copy it, fill in the placeholders and get the same spelling every time.
Which utm_medium should I use for paid social ads?
A medium GA4 counts as paid, such as paid_social. With a social source like facebook or tiktok, that meets the Paid Social rule. A medium like social or story meets only Organic Social, so ad clicks look organic.
Should I use x or twitter as utm_source?
twitter. Google's list of social sites includes twitter, twitter.com and t.co but not x or x.com. With a paid medium, utm_source=x meets only Paid Other.
Can I put dynamic parameters on a short link?
Put them on the full landing-page URL that you paste into the ad. A TrimLink short link sends visitors to the URL saved on it, so parameters added to the short link itself do not reach your page. Use short links for bios, posts, emails and QR codes.
Related guides
Build a tagged link with your own values
The free UTM builder checks the format and gives you the finished URL.
Open the UTM builderKeep reading
Build your own tagged links, then see where the clicks come from.