Skip to content
Series Measurement and Unit Economics

UTM parameters for Meta ads: the template we use

UTM Parameter Template for Meta Ads with Dynamic Parameters: Why "paid_social" and How to Interpret the Data in GA4.

In Brief

UTM parameters tell GA4 that a visit came from a Meta ad and which campaign it came from. We use a single template for all ads with dynamic Meta parameters: utm_source=facebook, utm_medium=paid_social, and the names of the campaign, ad set, and ad. Without them, GA4 will classify some of the visits from Meta elsewhere, and the analysis will be skewed.

During audits, we often see that GA4 identifies Meta as a weak channel because half of the visits from ads end up in the Referral, Organic Social, or Unassigned categories. The reason is simple: missing or inconsistent UTM parameters. This article includes the template we use and instructions on how to set it up once for your entire account.

What Are UTM Parameters?

UTM parameters are suffixes added to the end of a link that GA4 reads and uses to categorize a visit. There are 3 main ones; we add 2 more for more detail:

Parameter What does it say? Our Value
utm_source where the visitor came from Facebook
utm_medium What kind of visit is this? paid_social
utm_campaign which campaign Campaign name from Meta
utm_content Which ad Ad title from Meta
utm_term which set of ads Name of the set from Meta

The template we use

In the “URL Parameters” field for the ad:

utm_source=facebook&utm_medium=paid_social&utm_campaign={{campaign.name}}&utm_content={{ad.name}}&utm_term={{adset.name}}

The values in curly brackets are dynamic Meta parameters. When the ad is displayed, Meta will replace them with the actual names of the campaign, ad set, and ad. This means you don’t have to fill them in manually for each ad.

Why paid_social? GA4 classifies a visit as part of the Paid Social channel when the source is a social network and the medium begins with “paid,” for example. The “paid_social” value meets this condition. You can find the exact channel rules in Google Analytics Help.

Why Use a Single Source for Both Facebook and Instagram

Ads in a sales campaign appear on Facebook, Instagram, and other placements, depending on where Meta achieves better results. If you want to distinguish between platforms, you can use a dynamic parameter for placement or source. However, we don’t need this for evaluating the e-shop. What’s important is that all data from Meta ads ends up in a single channel so it can be compared with costs.

Campaign Names: Consistent and Easy to Read

Since the names of campaigns, ad groups, and ads will be transferred to GA4, it’s a good idea to keep them consistent. Here are the rules we follow:

  • One language across all markets. Even in Hungarian or Romanian accounts, the names are in the same language so that the entire team can understand them.
  • The country code in the campaign name. For example, SK, CZ, or HU at the beginning or end.
  • Campaign type: Sales, Test, Warm-up.
  • Creative code in the ad title. Angle, hook type, and format according to the standardized list of abbreviations. Performance can then be tracked across creatives and markets.

How to Set Up a Template for All Ads

  1. When creating a new ad, enter the template in the “URL Parameters” field in the tracking section.
  2. For existing ads, select them all at once in Ads Manager and edit their settings all at once.
  3. Make sure the link to the website in the ad does not contain any other UTM parameters that would conflict with those in the field.
  4. After launching the campaign, open the ad in preview mode, click on it, and verify in GA4’s real-time overview that the visit was attributed to “facebook/paid_social.”

Most Common Mistakes

Error Consequence
UTM is completely missing Visits from Meta in GA4 as “Referral” or “Organic Social”
utm_medium=”social” or “organic” for paid ads Visits from ads are classified as Organic Social
Various sources: Facebook, fb, facebook.com GA4 treats them as different sources
UTM in internal website links Every click on the website overwrites the original source
diacritics and spaces in campaign names Unreadable values in reports

What UTM Parameters Can’t Solve

UTM parameters correct the attribution of visits that came from a click. They do not correct the discrepancy between Meta and GA4, which arises because Meta also counts purchases made after viewing an ad without clicking on it. I explain why the numbers differ and how to make decisions based on them in the article “Meta Ads vs. GA4.” For Meta to track purchases correctly, you also need a working pixel and the Conversions API; see the article Meta Pixel and Conversions API for more details.

We use the following data from UTM

Thanks to standardized names, we can use GA4 to compare markets, campaign types, and individual creative variations based on visitor behavior on the website: how many added items to their cart, how many started the checkout process, and where they dropped off. This complements data from Meta by providing a website-level perspective. However, we base the report for the site owner on the e-shop’s total revenue and MER, not on the attribution of individual channels.

How to Import UTM Data into GA4

Question Where in GA4 Dimension
How many visits and purchases came from Meta ads? Traffic Acquisition Default Channel Group, Paid Social
Which market or campaign type? Traffic Acquisition Show Campaign
Which ad generated the most additions to the shopping cart? Survey or Custom Report Manual Session Content
Which set of ads? Survey or Custom Report Manual expression of a relation

In GA4, save a report with the following dimensions and metrics—sessions, add-to-cart, purchases, and revenue—to your own report. Then, simply open it during each weekly review.

UTM for Other Channels

Apply the same logic elsewhere so that channels can be compared. Categorize newsletters under “email,” influencers under “own source” and “media” depending on the type of collaboration, and links in Instagram bios under “social.” Google Ads doesn’t need UTM parameters if automatic tagging is enabled and it’s linked to GA4. It’s important that everyone involved in marketing uses the same values.

Frequently Asked Questions

Do I need UTM parameters if I’m using the Conversions API?

Yes. The Conversions API sends data to Meta. UTM parameters allow GA4 to determine where a visit came from.

Can I use utm_medium=cpc?

It works; GA4 also classifies it as “Paid Social” when the source is Facebook. We use “paid_social” so that Meta stands out from search at a glance in the reports.

Won’t the automatic Meta tagging overwrite the UTM parameters?

No. Meta adds its own click identifier to the link, and the UTM parameters work alongside it.

How can I tell if UTMs are working?

In GA4, the Traffic Acquisition overview should show “Facebook” as the source, “paid_social” as the medium, and “Paid Social” as the channel. If there’s almost nothing there, the parameters are missing.

Next step: Check traffic acquisition in GA4 for the past month and determine how many visits from Meta are in Paid Social and how many are from other sources. Then, apply the template to all active ads. We’ll review your entire measurement setup as part of an e-commerce audit.

DK
Dávid Krumpár

Performance marketer; he leads the Lighthouse agency and its performance team. We manage more than €3.4 mil. in Meta Ads and Google Ads for brands in 23 countries.

More about me

Published 1. 12. 2026, last updated 1. 12. 2026.

15 min free

In 15 minutes, we'll find out if we're a good match.

A short video call to discuss your brand, markets, and goals. If working together makes sense, we'll agree on the next step. If not, I'll tell you straight up.

During the call, you'll find out:

  • whether I can help you with Meta and in what way
  • What makes sense as the next step: management, a team, or consulting
  • Where would we start in your case?
Select a date
  • 15 minutes
  • video hovor
  • no obligation
Dávid Krumpár
Dávid KrumpárHead of Performance, Lighthouse

Upcoming Available Dates

We work with
GiovaniNorthfinderSpirideaAupark
15 minutes free for brands and teamsSelect a date