Skip to the content

Contact usFree tools · No signup · Files stay on your device

SEO & Marketing

How to track Facebook ad clicks in GA4 with UTM tags

How to track Facebook ad clicks in GA4 with UTM tags

If you run Facebook ads and look only at the numbers in Ads Manager, you know how many people clicked. You do not know what they did next. Adding UTM tags to the ad's link lets Google Analytics 4 (GA4) show which campaign sent each visitor and whether they bought, signed up or left. Our free UTM Builder writes that link in a minute, with a preset for Facebook Ads.

This guide follows one real-looking example: a Dhaka online shop running an Eid sale ad that points to https://shop.example.com.bd/eid-offer. The steps work for any website that already has GA4 installed.

What you need first

  • A website with GA4 installed and working. UTM tags only mean something once the visit reaches a page that has GA4.
  • Access to the ad in Meta Ads Manager.
  • A decision about names. Pick one campaign name for the promotion, such as eid_sale_2027, and one name per ad version, such as video_a.

Step 1: choose the right source and medium

GA4 sorts visits into channels using the source and the medium. For Facebook ads you want this pair:

Tag Value Why
utm_source facebook Where the visit came from
utm_medium paid_social Tells GA4 it was a paid social click

With these values GA4 shows the visit as facebook / paid_social and groups it under its Paid Social channel. If you use social as the medium instead, GA4 treats the click as an ordinary organic post, and your ad results vanish into the wrong channel. If you invent a medium such as boost, the UTM Builder warns you: "GA4's default channel grouping doesn't recognise the medium "boost", so visits may be reported as "Unassigned"."

  1. Open UTM Builder.
  2. Under 1. Website URL, paste your landing page: https://shop.example.com.bd/eid-offer.
  3. Under 2. Campaign tags, press the Facebook Ads preset. It fills Campaign source with facebook and Campaign medium with paid_social.
  4. In Campaign name, type eid_sale_2027.
  5. In Campaign content, type a name for this ad, for example video_a.
  6. Check that "Lower-case values, spaces → _" is ticked, so a stray capital letter does not create a second row in your reports.
  7. Press Copy URL.

The result is:

https://shop.example.com.bd/eid-offer?utm_source=facebook&utm_medium=paid_social&utm_campaign=eid_sale_2027&utm_content=video_a

The Facebook Ads preset fills only source and medium. It adds no hidden tags. If you want to record the buying platform, you can type meta_ads yourself in Source platform under Advanced GA4 parameters; it is optional.

In Meta Ads Manager, edit the ad and find the Website URL field in the destination section. Paste the whole tagged link there.

Meta also has a separate "URL parameters" field in the tracking section of the ad. If you prefer to keep the website address clean, paste only the part after the question mark into that field, starting with utm_source= and without the ?.

Pick one place or the other. Do not put the same tags in both.

Step 4: test before you spend

  1. Back in UTM Builder, press Open link ↗ and let the page load.
  2. In GA4, go to Reports, then Realtime. Within a minute, you should see your visit.
  3. Check that the source is facebook and the medium is paid_social, and that the campaign is eid_sale_2027. DebugView, if you use it, shows the same details.

If nothing appears, check that the page has GA4 installed and that the tags come before any #anchor in the address.

Step 5: read the results in GA4

Standard reports take longer than Realtime, so look at them the day after the ad starts.

  • Go to Reports, then Acquisition, then Traffic acquisition. Change the dimension to Session source / medium to find facebook / paid_social.
  • Change it to Session campaign to compare campaigns, or look for the campaign name eid_sale_2027.
  • To compare ad versions, add a secondary dimension such as Session manual ad content, which holds your Campaign content value. Then you can see whether video_a or image_b brought more purchases, not just more clicks.
  • Open your key events (conversions) to see which source led to sales or form submissions.

The labels in the GA4 menus change from time to time, so if you cannot find an item, search the report list for "Traffic acquisition".

Dynamic Meta values: a caution

Meta lets you insert placeholders such as {{campaign.name}} and {{ad.name}} into the URL parameters field, so each ad fills in its own name. Our UTM Builder keeps these placeholders exactly as you type them, so utm_content={{ad.name}} stays as {{ad.name}} in the link and is not percent-encoded. Meta replaces each placeholder with the real name when the ad runs. Test the link in Ads Manager's preview before spending money, and note that the placeholder only works for links used in Meta ads; elsewhere it would show up as the literal text.

For most small campaigns, typing a simple name for each ad is still easier to read in reports.

Mistakes to avoid

Using social instead of paid_social

Paid and organic Facebook traffic end up in the same bucket, and you cannot see what your ad budget bought. Use paid_social for ads.

Capital letters and spaces

Facebook and facebook are different sources in GA4. The lower-case option in the UTM Builder prevents this. If your older ads already use capitals, you will have two rows in the report. That is annoying, but harmless once you stop making new ones.

Never add UTM tags to links between your own pages, such as a banner that links from your homepage to the offer page. It starts a new attribution and replaces the visitor's real source.

Changing the campaign name in the middle

If you rename the campaign after the ad has started, GA4 splits the results into two campaigns. Choose a name and keep it for the life of the promotion.

An ad and a normal post need different tags. Use the Facebook Ads preset for the ad and the Facebook post preset for the organic post. The presets set only source and medium, so switching from one to the other changes just those two fields.

Use the same approach for other channels

The same method works for Instagram Ads, LinkedIn Ads, TikTok Ads and email. Only the source and medium change. For many links at once, for example the same offer sent through five channels, use Bulk mode. For the full tour of the tool, read the UTM Builder guide.

The same tagged link is also useful in organic posts and messages. To see how the landing page looks when someone shares it, use the Open Graph Preview.

Quick checklist

  • Source facebook, medium paid_social.
  • One campaign name for the promotion, one content name per ad.
  • Lower-case option on.
  • Link pasted in one place only: the Website URL field or the URL parameters field.
  • Tested in GA4 Realtime before the budget is spent.

Frequently asked questions

What should utm_source and utm_medium be for Facebook ads?
Use facebook as the source and paid_social as the medium. GA4 puts that combination in its Paid Social channel. The Facebook Ads preset in our UTM Builder fills exactly these two values.
Why do my Facebook ad clicks show as referral or direct?
Without UTM tags, GA4 only sees where the visitor came from. Clicks from inside the Facebook app often appear as referral traffic from a Facebook address, or as direct traffic. A tagged link tells GA4 the real source and campaign.
Should I use paid_social or social as the medium?
Use paid_social for ads and social for normal posts. GA4 reports them in different channels, Paid Social and Organic Social, so mixing them makes your ad results look smaller than they are.
How long until the data shows up in GA4?
Realtime shows a test visit within seconds. The standard reports, such as Traffic acquisition, can take hours to fill in, so check Realtime first and the reports the next day.
Do I need a different link for every ad?
Not necessarily. Keep one campaign name for the promotion and use Campaign content to tell the ads apart, for example video_a and image_b. That way you can compare them inside one campaign.
Found this useful? Share it

Tools in this guide

Main tool

UTM Builder

Add utm_source, utm_medium, utm_campaign and other tracking tags to any link so Google Analytics 4 shows exactly which campaign brought each visitor.

Open tool

URL Encoder

Make any text safe to put in a URL.

Open tool

Open Graph Preview

Enter a page address to see the link card people get on Facebook, X (Twitter), WhatsApp, LinkedIn, Slack and Discord.

Open tool

Back to all guides & blog