How to Connect Facebook to Google Analytics

Cody Schneider7 min read

Your Facebook Ads are getting clicks, and your Google Analytics is showing traffic, but connecting the dots between the two can feel like trying to solve a puzzle with half the pieces missing. Facebook tells you what happens before the click (impressions, CTR), while Google Analytics tells you what happens after the click (bounce rate, pages per session, goal completions). This article will show you exactly how to bridge that gap using UTM parameters so you can get a complete picture of your ad performance.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Why You Need to Connect Facebook to Google Analytics

Running marketing campaigns without a clear view of the entire customer journey is like driving blind. By default, Facebook sends traffic to your site without much context. In Google Analytics, this traffic often gets awkwardly lumped into the "Referral" bucket as facebook.com / referral or sometimes even misattributed to "Direct." This makes it impossible to distinguish between someone who clicked a paid ad and someone who came from a random link in a Facebook group.

When you properly connect your efforts, you can finally answer critical performance questions:

  • Which specific Facebook ad campaign is driving the most valuable traffic (e.g., users who spend the most time on the site)?
  • How does the on-site behavior of users from Video Ad A compare to users from Carousel Ad B?
  • Are my prospecting campaigns bringing in new users who actually sign up for my newsletter?
  • What is the true return on ad spend (ROAS) when looking at actual conversions on my website?

Answering these questions moves you from simply spending money on ads to making strategic investments based on clear, actionable data.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

The Easiest Way to Connect Your Data: UTM Parameters

The "connection" between Facebook and Google Analytics isn't a direct API integration in the traditional sense. Instead, it’s made possible by adding small snippets of text, called UTM parameters, to the end of your destination URLs in your ads.

Think of UTMs as little tracking tags that a visitor carries with them when they click your ad. When they land on your website, Google Analytics reads these tags and categorizes the visit accordingly. It turns a generic yoursite.com link into a highly descriptive one with all the context you need.

There are five standard UTM parameters, but for Facebook ads, you'll mainly focus on these three:

  • utm_source: Where is the traffic coming from? For all your Facebook and Instagram ads, this should consistently be facebook.
  • utm_medium: How did the traffic get here? This tracks the marketing channel. Common options are cpc (cost-per-click), paid_social, or simply social. The key is consistency.
  • utm_campaign: Which specific promotion is this a part of? This should be the name of your Facebook campaign, like summer-sale-2024 or webinar-retargeting-q3.

You can also use two more parameters for even more detail:

  • utm_content: What specific ad or link was clicked? This is perfect for A/B testing. You could name it something like blue-product-video vs. red-product-image to differentiate creatives within the same ad set.
  • utm_term: Originally for paid search keywords, many marketers repurpose this for the audience or ad set name, such as lookalike-audience-us or interests-marketing-managers.

A final URL with UTMs will look something like this:

https://www.yoursite.com/?utm_source=facebook&utm_medium=cpc&utm_campaign=black-friday-promo&utm_content=video-ad-1

It looks a bit long, but your users will barely notice it. Google Analytics, however, will see it loud and clear.

A Quick Note on Naming Conventions

Before you start, create a simple and consistent naming convention. Google Analytics is case-sensitive, meaning Facebook, facebook, and FB will all show up as different sources. To avoid a messy report, decide on a format and stick with it. We recommend using all lowercase letters and dashes instead of spaces (e.g., winter-sale instead of Winter Sale).

How to Add UTMs in Facebook Ads Manager: A Step-by-Step Guide

Manually creating UTMs for every single ad would be a nightmare. Thankfully, Facebook Ads Manager has a built-in tool that makes this process incredibly simple, especially with dynamic parameters.

Step 1: Navigate to the Ad Level

Open your Facebook Ads Manager and go to the campaign and ad set you want to work with. Click to edit the specific ad where you want to add the tracking.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Step 2: Find the URL Parameters Section

Scroll down to the "Destination" section. Make sure you have your website URL entered in the Website URL field. Below that, you'll see a link that says Build a URL Parameter. Click it.

Step 3: Fill in Your UTM Parameters Dynamically

A new window will pop up. This is where you'll add your tags. Instead of typing everything manually, you can use Facebook's "dynamic parameters." These are small codes that automatically pull in the names of your campaign, ad set, and ad. This is a huge time-saver and eliminates human error.

Here’s a recommended setup:

  • Campaign Source: Input facebook (static value, since it's always Facebook).
  • Campaign Medium: Input cpc or paid_social (another static value).
  • Campaign Name: Click in the field and select {{campaign.name}}. This will automatically pull the name of your campaign.
  • Campaign Content: Select {{ad.name}}. This will pull the name you gave your specific ad.
  • Campaign Term: Select {{adset.name}}. This will pull the name of your ad set.

As you add these, you will see the URL preview at the bottom update in real-time. Once you're done, it will look something like this:

[builds URL preview]

Click Apply. Facebook will now automatically append these correctly formatted UTMs to any ad created within that setup. You can publish your ad knowing the tracking is configured perfectly.

Pro Tip: You can also just copy and paste a pre-built string into the "URL Parameters" box without using the builder. A great starting point is:

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

This single string dynamically handles all your tracking for you.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Where to Find Your Facebook Data in Google Analytics 4

Once your ads are live with the new UTM parameters, you need to know where to find the data. Keep in mind that it can take 24-48 hours for new campaign data to be fully processed and appear in your GA4 reports.

Here’s where to look:

  1. Log in to your Google Analytics 4 property.
  2. In the left-hand navigation, go to Reports > Acquisition > Traffic acquisition.
  3. By default, this report groups traffic by the "Session default channel group." Change this to Session source / medium by clicking the dropdown arrow.

You will now see a table of all your traffic sources. Look for the rows containing the source and medium you defined in your UTMs, such as facebook / cpc.

To dig deeper and see campaign-level data, click the small blue "+" sign next to the "Session source / medium" column header and add a secondary dimension. Search for and select Session campaign.

Now you can see how each individual Facebook campaign is performing on your site, with clear metrics like Users, Sessions, Engaged sessions, and Conversions. You can continue adding secondary dimensions like "Ad content" to see creative-level performance, all neatly organized within Google Analytics.

Final Thoughts

Adding UTM parameters to your Facebook ads is a simple but powerful step toward becoming a data-driven marketer. It transforms vague traffic data into a clear map showing exactly how your paid social efforts are influencing user behavior and driving results on your website, giving you the confidence to double down on what works and cut what doesn't.

While UTMs are great for connecting two platforms, the reality for most marketers is that their data lives in a dozen different places. You might have ad data in Facebook, website data in Google Analytics, sales data in Shopify, and customer info in HubSpot. Trying to build a unified report is still a manual, time-consuming process. At Graphed, we built our platform to eliminate that friction entirely. We connect seamlessly to all your marketing and sales tools, so you can stop wrestling with CSV exports and just ask questions in plain English - like "Show me our full funnel from Facebook ad spend to final purchase in Shopify" - and instantly get a real-time dashboard with the answers.

Related Articles