Skip to main content

ANALYTICS

How to Track Your Social Media Posts in Google Analytics with UTM Links

Ben Foord, author
Ben Foord
· 6 min read

Add UTM tags to every link you post on social media: utm_source for the platform, utm_medium as social for a post or paid_social for an ad, and utm_campaign for what the post is about. GA4 then reports each visit under that source, medium and campaign in Reports, Acquisition, Traffic acquisition, instead of lumping social visits into Direct.

Most small businesses post on social media hoping it brings people to the website. Ask which posts actually did, and the honest answer is usually "no idea". The platform says a post reached 2,000 people. Google Analytics says traffic went up a bit that week. Nothing joins the two.

The join is a UTM link: your normal web address with a few tags on the end that tell Google Analytics where the visit came from. It takes a minute per post, it works the same on LinkedIn, Facebook, Instagram and TikTok, and it works for organic posts and paid ads alike. This guide covers why you need them, how to name them, and where the results appear in GA4.

Why social visits go missing in Google Analytics

When someone clicks a link, their browser normally tells the website which page they came from. That is the referrer, and it is how GA4 knows a visit came from Google or from another website.

Social apps break this. A tap on a link inside the Instagram, TikTok or LinkedIn app opens the page in the app's own built-in browser, and those visits often arrive with no referrer at all. With nothing to go on, GA4 files them under Direct, the same bucket as someone typing your address from memory. Other visits arrive via a short link domain such as lnkd.in or t.co and show up as a referral from a site you have never heard of.

So the post that did the work gets no credit, and your Direct traffic looks mysteriously healthy. UTM tags remove the guesswork, because GA4 reads them from the address itself rather than relying on the referrer.

Here is a plain link to a page:

https://example.co.uk/spring-offer

And the same link tagged for a LinkedIn post:

https://example.co.uk/spring-offer?utm_source=linkedin&utm_medium=social&utm_campaign=spring_offer

The visitor sees exactly the same page. The tags only matter to your analytics. There are five you can use:

  • utm_source: the platform. linkedin, facebook, instagram, tiktok, newsletter.
  • utm_medium: the type of traffic. social for a normal post, paid_social for an ad, email for a newsletter.
  • utm_campaign: what it is about. One name for the whole push, such as spring_offer or december_tips.
  • utm_content (optional): tells two posts in the same campaign apart, such as carousel and video, or a date.
  • utm_term (optional): meant for paid search keywords. You can ignore it for social.

You do not have to type these by hand. Our free UTM builder has a preset for each platform, fixes capital letters and spaces as you type, and shows which GA4 channel the link will land in before you post it.

How to name your tags so reports stay clean

UTMs only help if you use them the same way every time. GA4 treats every spelling as a different value, so LinkedIn, linkedin and Linkedin become three rows in your report. Four rules avoid that.

  1. Everything lower case, underscores for spaces. spring_offer, never Spring Offer.
  2. Let the medium say whether you paid. Use social for organic posts and paid_social for ads. GA4 puts the first in its Organic Social channel and the second in Paid Social, so you can compare the two in one report. Avoid organic as a medium for social: GA4 uses that word for search engines.
  3. Use one campaign name across every platform. If the same offer goes on LinkedIn, Facebook and TikTok, give all three links the same utm_campaign and let utm_source tell them apart. That is what makes a side-by-side comparison possible.
  4. Keep a simple list. A shared spreadsheet with the date, platform, post and link is enough. It stops a colleague inventing social_media next month.

The tag is the same everywhere. What changes is where you can put a link:

  • LinkedIn: in the post text, or in the first comment if you prefer the post itself to look clean. Company page and profile featured links can be tagged too.
  • Facebook: in the post text, and on your page's buttons.
  • Instagram: captions do not make links clickable, so tagged links go in your bio, on a story link sticker, or in DMs.
  • TikTok: in your bio link, where your account type allows one.
  • Ads on any of these: Meta Ads Manager, LinkedIn Campaign Manager and TikTok Ads Manager each have a URL parameters or tracking setting. Put the tags there rather than editing the destination address, and use paid_social as the medium.

If you send everyone from your bio to one links page, tag the bio link itself (utm_campaign=link_in_bio) so you can see how much traffic the bio brings, platform by platform.

Where to see the results in GA4

Once tagged links are out, give them a few days and then:

  1. Open GA4 and go to Reports, Acquisition, Traffic acquisition.
  2. Change the first column of the table from the default channel group to Session source / medium. You will see rows such as linkedin / social and instagram / paid_social.
  3. To compare campaigns, switch the column to Session campaign.
  4. To tell two posts in the same campaign apart, add Session manual ad content as a secondary dimension. That is where utm_content appears.

Look beyond the session count. If you have key events set up in GA4, such as an enquiry form sent, a booking made or a phone number tapped, the same table shows how many of each came from each link. A post that brought 40 visits and three enquiries did more for you than one that brought 200 visits and none.

What UTMs can and can't tell you

UTMs measure what happens once someone reaches your website: how many came from which post, and what they did next. They cannot see reach, impressions, likes or comments, which stay in each platform's own analytics. And they miss the person who saw your post, didn't tap, and searched for your business by name an hour later.

So read both. The platform tells you how many people saw a post. GA4, with tagged links, tells you how many of them came to your site and acted. Together they answer the question most owners actually care about: is the time I spend posting bringing me customers?

Before you post, it is also worth checking the page you are sending people to. Our Open Graph checker shows the preview image and title people will see when you share the link, and the mobile-friendly test checks the page works on a phone, which is where almost every social tap happens.

Frequently asked questions

Do UTM links hurt my SEO?

No. Google understands that UTM tags are for tracking. Your page should still name its own clean address as the canonical, which most website platforms do by default, so search engines index the plain version.

Should I use UTMs on links between my own pages?

No. Tag links on social media, in emails, in ads and on other people's websites. A tagged link from one of your own pages to another rewrites where GA4 thinks the visit came from, and the real source is lost.

Do link shorteners keep the UTM tags?

Yes. Build the tagged link first, then shorten it. The short link redirects to the full address, tags included, so GA4 still reads them.

Why do some social visits still show as Direct?

Untagged links will. That includes old posts, links other people share, and anyone who copies your plain address. Tagging every link you post yourself shrinks that share over time, but it never reaches zero.

What medium should I use for an influencer or partner post?

If you paid for it, paid_social keeps it with your other paid activity. If it was free, social works, and use the partner's name in utm_content so you can see what each one brought.

See where your site stands
One free page scan, results in under a minute.
Scan My Site
Filed under: Analytics · Seo Basics
Like reading AuditCrow?
Add us as a preferred source so more of our posts show up in your Google results.
Free first audit

Ready to see what's holding your site back?

Run one page through AuditCrow and get a clear, prioritised report on what is standing between your site and the job you need it to do.

One page free · Plain-language fixes · Your first taste of the full platform