How to Track Facebook Campaigns in Google Analytics

Cody Schneider8 min read

Seeing your Facebook Ads Manager report high clicks and engagement is great, but it doesn't tell the whole story. To truly understand how those ads impact your website's traffic, leads, and sales, you need to track their performance inside Google Analytics. This article will show you exactly how to connect the dots by using UTM parameters, giving you a complete view of your Facebook campaign ROI.

GraphedGraphed

Build AI Agents for Marketing

Build virtual employees that run your go to market. Connect your data sources, deploy autonomous agents, and grow your company.

Watch Graphed demo video

Why Facebook Ads Manager Isn't Enough

Facebook Ads Manager is brilliant at telling you what happens on Facebook - like your ad's reach, clicks (or CTR), and cost per click (CPC). But once a user clicks your ad and lands on your website, its tracking becomes less reliable, especially with recent privacy changes like iOS updates. This creates a data silo, where you see part of the picture in Facebook and another part in Google Analytics, but you can't easily connect them.

Tracking your campaigns in Google Analytics solves this by:

  • Giving You Unbiased Data: Google Analytics attributes website behavior and conversions based on what actually happens on your site, providing a source of truth to compare against Facebook's (often optimistic) conversion numbers.
  • Showing the Full Customer Journey: You can see what visitors from a specific Facebook ad did after they landed on your site. Did they visit other pages? Did they sign up for your newsletter? Did they come back later and make a purchase?
  • Allowing for Cross-Channel Comparison: How do your Facebook campaigns stack up against your efforts in email marketing, Google Ads, or organic search? By tracking everything in one place, you can accurately compare performance and allocate your budget more effectively.

The key to unlocking this unified view is a simple but powerful tool: the UTM parameter.

Free PDF · the crash course

AI Agents for Marketing Crash Course

Learn how to deploy AI marketing agents across your go-to-market — the best tools, prompts, and workflows to turn your data into autonomous execution without writing code.

The Key to Unlocking Tracking: UTM Parameters Explained

UTM (Urchin Tracking Module) parameters are simple snippets of text you add to the end of a URL to help tracking tools like Google Analytics understand where your traffic is coming from. When someone clicks a link with UTMs, those parameters are sent to Google Analytics, which then neatly categorizes the visit for you.

A UTM-tagged URL looks something like this:

https://www.yourwebsite.com/?utm_source=facebook&utm_medium=cpc&utm_campaign=summer-sale-2024

There are five standard UTM parameters, but for Facebook campaigns, you'll mainly focus on three essential ones and two optional (but very useful) ones.

The 3 Essential UTMs

  • utm_source: Identifies which site sent the traffic. For Facebook ads, this should always be facebook. Example: utm_source=facebook
  • utm_medium: Explains what marketing channel the link was a part of. For paid ads, a common choice is cpc (cost-per-click) or social-paid. For organic posts, you might use social. Keep it consistent! Example: utm_medium=cpc
  • utm_campaign: Names the specific campaign you are running. This should match the name you've given your campaign in Facebook Ads Manager for easy reference. Example: utm_campaign=summer-sale-2024

The 2 Optional (but Highly Recommended) UTMs

  • utm_content: Used to differentiate ads or links that point to the same URL within the same campaign. This is perfect for A/B testing. For instance, you could use it to track whether a video ad performs better than an image ad, or if "CTA-button-v1" works better than "CTA-button-v2." Example: utm_content=video-ad-new-creative
  • utm_term: Originally for paid search to identify keywords, this field is more flexible for social media. You could use it to note the specific audience you're targeting, like an interest group or a lookalike audience. Example: utm_term=fitness-enthusiasts-lookalike

A Step-by-Step Guide to Adding UTMs to Your Facebook Ads

Adding these parameters is incredibly easy, as Facebook has a built-in tool for it. You don't need to manually string together long URLs yourself.

Here's how to do it in the Facebook Ads Manager:

  1. Navigate to the Ad level of your campaign, ad set, or ad.
  2. Scroll down to the Destination section where you've input your Website URL.
  3. Below the Website URL box, find and click on Build a URL Parameter.
  4. A new window will open where you can fill in the values for each UTM parameter. This is where the magic happens.

Instead of typing static text, you can use Facebook’s dynamic URL parameters. This automatically pulls information from your ad setup, saving you time and preventing typos.

Here's a recommended setup for most businesses:

  • Campaign Source: facebook (You can type this manually, as it won’t change).
  • Campaign Medium: cpc (Or whatever convention you use for paid social, like social-paid).
  • Campaign Name: {{campaign.name}} (This dynamic placeholder will automatically insert your campaign's name).
  • Campaign Content: {{adset.name}}_{{ad.name}} (This combo helps you differentiate performance between ad sets and individual ads).

By using dynamic placeholders like {{campaign.name}}, you never have to worry about mismatched names. If you update the campaign name in Ads Manager, the UTM tag updates automatically. Once you fill these fields, Facebook creates the final parameter string for you. Just click "Apply," and you're set.

GraphedGraphed

Build AI Agents for Marketing

Build virtual employees that run your go to market. Connect your data sources, deploy autonomous agents, and grow your company.

Watch Graphed demo video

Where to See Your Facebook Campaign Data in Google Analytics 4

So you've tagged your ads and they've been running for a bit. Now, where do you find the data? In Google Analytics 4, your campaign data is readily available in a couple of key reports.

1. The Traffic Acquisition Report

This is the quickest way to get a high-level overview of how your campaigns are performing.

  1. From the left-hand menu, navigate to Reports > Acquisition > Traffic Acquisition.
  2. By default, this report is grouped by "Session default channel group." This will lump your Facebook campaigns into "Paid Social" or "Organic Social." To see your specific campaigns, click the dropdown menu on the primary dimension.
  3. Select Session campaign from the list.

You will now see a table listing all of your tracked campaigns by the utm_campaign name you set. This report will show you user counts, sessions, engaged sessions, and most importantly, conversions, from each specific Facebook campaign. Now you can directly see which campaigns are driving valuable actions on your site.

To go deeper, press the blue "+" icon next to the primary dimension column and add a secondary dimension like Session ad content. This will break down your campaigns by the utm_content tag, allowing you to compare the performance of your different ad creatives.

2. Creating a Custom Exploration Report

For more flexible and in-depth analysis, the "Explore" section in GA4 is your best friend. Building a custom report is a great way to slice and dice your data however you want.

  1. From the left menu, click Explore and start a new Blank exploration.
  2. Under the "Variables" column, click the "+" next to Dimensions. Search for and import "Session campaign," "Session source / medium," and "Session ad content."
  3. Next, click the "+" next to Metrics. Import key metrics like "Sessions," "Engaged users," "Conversions," and "Total revenue."
  4. Drag "Session campaign" from the Variables panel over to the "Rows" area in the Tab Settings panel.
  5. Then, drag the metrics you want to see (like Sessions, Conversions, and Total revenue) into the "Values" area.

Your custom report will instantly populate, giving you a clean, focused view of exactly how your Facebook campaigns are driving results. You can save this exploration and come back to it anytime for a quick performance check-in.

Free PDF · the crash course

AI Agents for Marketing Crash Course

Learn how to deploy AI marketing agents across your go-to-market — the best tools, prompts, and workflows to turn your data into autonomous execution without writing code.

Common UTM Tagging Mistakes to Avoid

UTMs are straightforward, but a few small mistakes can lead to messy data. Keep these tips in mind to ensure your tracking is clean and accurate.

  • Inconsistent Naming: Case matters. facebook, Facebook, and Facebook_Ads will all show up as different sources in Google Analytics. Decide on a consistent, all-lowercase naming convention for your sources, mediums, and campaigns, and stick to it religiously. A common best practice is using dashes or underscores instead of spaces (e.g., summer-sale not summer sale).
  • Forgetting to Tag All Links: Make sure every single outbound URL in your ad is tagged. This includes links in the primary text and the main call-to-action button, especially if you're building a multi-creative ad.
  • Accidentally Using UTMs on Internal Links: Never use UTM parameters on links within your own website (e.g., from your homepage to your pricing page). Doing so will overwrite the original traffic source and effectively end the current session, starting a new one. This will completely break your attribution data.
  • Using Vague Campaign Names: A campaign named facebook_ad_1 might make sense today, but it won't mean much in six months. Use descriptive names like 2024-07-summer-sale-ebook-promo so you can easily understand your historical reports at a glance.

Final Thoughts

Properly setting up campaign tracking by combining Facebook Ads with Google Analytics is not just a nice-to-have, it's a fundamental requirement for anyone serious about measuring marketing ROI. By using UTM parameters, you remove the guesswork and gain a clear, unified view of what's working, allowing you to make smarter, data-driven decisions that genuinely grow your business.

We know that even with well-organized tracking, constantly jumping between Facebook Ads Manager, Google Analytics, your e-commerce platform, and your CRM to piece together the entire customer journey is time-consuming. At Graphed, we built a solution to eliminate that manual work. By securely connecting all your marketing and sales data sources in one place, you can simply ask questions in plain English - like "Show me a dashboard of my top-performing Facebook campaigns by revenue in the last 30 days" - and instantly get a real-time report that shows the full picture, from ad spend to final sale.

Related Articles