How to Use Facebook and Google Analytics Together

Cody Schneider7 min read

Viewing Facebook Ads and Google Analytics as separate platforms is like looking at two different maps for the same destination. This article will show you why connecting them is so important and walk you through a few ways to merge their data to get a complete picture of your marketing performance.

GraphedGraphed

Still Building Reports Manually?

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

Watch Graphed demo video

Why Combine Facebook Ads and Google Analytics Data?

Each platform tells you a different, equally important part of your customer's story. Relying on just one gives you an incomplete view, leading to misguided budget decisions and missed opportunities.

Think of it this way:

  • Facebook Ads Manager is your top-of-funnel expert. It excels at reporting on ad-specific metrics like impressions, reach, click-through rate (CTR), cost per click (CPC), and ad spend. It answers the question, "Are my ads compelling enough to get people to click?"
  • Google Analytics is your on-site behavior expert. It tells you what happens after the click. It tracks sessions, new users, engagement rates, and most importantly, valuable conversions like purchases, form submissions, or trial sign-ups. It answers the question, "Do the people who click my ads actually do what I want them to do on my website?"

When you look at them separately, you create blind spots. You might have a Facebook campaign with a fantastic CTR and low CPC, but Google Analytics could reveal that 100% of that traffic bounces immediately. On the flip side, you might see a high conversion rate in GA4 from a certain campaign, but Facebook's data shows the ad spend makes that campaign completely unprofitable.

Combining them bridges this gap. It allows you to directly connect your ad spend to actual revenue and user behavior, giving you the real scoop on your Return on Ad Spend (ROAS).

GraphedGraphed

Still Building Reports Manually?

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

Watch Graphed demo video

Start with the Foundation: UTM Tracking

Before you can analyze data from both platforms, you must first ensure Google Analytics knows where your website traffic is coming from. This is where Urchin Tracking Module (UTM) parameters come in. They are simple tags you add to the end of your ad's destination URL that feed traffic source information directly to GA4. Without them, your Facebook ad traffic will likely get miscategorized as 'Direct' or generic 'Referral' traffic, making it impossible to analyze.

There are five standard UTM parameters, but for Facebook ads, these three are the most critical:

  • utm_source: Identifies the source of the traffic. For Facebook, this should consistently be 'facebook'.
  • utm_medium: Identifies the marketing medium. This could be 'cpc', 'cpm', 'social-paid', or 'paid-social'. The key is to be consistent across all your campaigns.
  • utm_campaign: The name of your specific campaign, which you can use to identify it in your GA4 reports.

How to Easily Add UTMs in Facebook Ads Manager

Thankfully, you don't have to build these URLs manually for every ad. Facebook Ads Manager has a built-in tool that dynamically applies them for you.

  1. While creating or editing an ad, scroll down to the Tracking section.
  2. Locate the URL Parameters box and click "Build a URL Parameter."
  3. A window will open where you can input static values and use Facebook's dynamic parameters. This saves you from having to update the UTMs for every single ad or ad set.

Here's a standard setup we recommend:

  • Campaign Source: facebook (static value, since all this traffic comes from Facebook)
  • Campaign Medium: cpc or paid-social (static value)
  • Campaign Name: {{campaign.name}} (dynamic parameter)
  • Campaign Content: {{adset.name}}_{{ad.name}} (dynamic parameter that combines the ad set and ad name for more granular detail)

Using these dynamic placeholders—the parts inside the curly brackets—Facebook will automatically fill in the actual campaign name, ad set name, and ad name for whichever ad is being served. This makes scaling your tracking effortless.

Once you implement this, you can go into Google Analytics, navigate to Reports > Acquisition > Traffic Acquisition, and see all your Facebook campaign data neatly organized and properly attributed.

GraphedGraphed

Still Building Reports Manually?

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

Watch Graphed demo video

Method 1: Manual Reporting with Spreadsheets

Once your UTMs are consistently firing, you can start blending your data. The most common approach—and a perfectly valid starting point—is to do it manually in a spreadsheet like Google Sheets or Microsoft Excel.

While tedious, this method gives you a true understanding of your marketing funnel performance and is a great way to prototype a report before you invest in automation.

Step-by-Step Guide for Spreadsheet Reporting

  1. Export Data from Facebook Ads Manager:
  2. Export Data from Google Analytics 4:
  3. Combine and Analyze in Google Sheets or Excel:

Calculating Blended Metrics

With all your data in one place, you can now answer crucial performance questions by creating your own blended metrics:

  • True GA4 CPA (Cost Per Acquisition): Facebook Ad Spend / GA4 Conversions. This tells you how much you're really paying to acquire a customer, based on Google Analytics' conversion tracking.
  • True GA4 ROAS (Return on Ad Spend): GA4 Purchase Revenue / Facebook Ad Spend. This cuts through the attribution differences and gives you a hard number on your profitability.
  • Ad Spend to Session Rate: This gives you a better understanding of how much it costs to drive an engaged user to your website, going a layer deeper than just CPC.

The Downside: This process is a huge time-sink. For marketing teams or agencies running dozens of campaigns, spending hours every Monday morning downloading and wrangling CSVs is inefficient and prone to human error. The data is also immediately outdated—by the time you finish the report, it's already a snapshot of the past.

GraphedGraphed

Still Building Reports Manually?

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

Watch Graphed demo video

Method 2: Automating Reporting with Connectors & BI Tools

To move away from manual spreadsheets and get to live dashboards, you can use data pipeline tools or connectors. These services act as a bridge between the APIs of different platforms (like Facebook Ads and Google Analytics) and a central destination.

Common destinations for this blended data include:

  • Looker Studio (formerly Google Data Studio): A free and popular choice for building customized dashboards.
  • Power BI and Tableau: More powerful, enterprise-grade business intelligence tools.
  • Google BigQuery: A data warehouse for storing large volumes of data for complex analysis.

The general workflow for this setup is:

  1. Choose and configure a connector tool (like Supermetrics, Funnel.io, Stitch, and more).
  2. Authenticate your data sources, giving the tool access to your Facebook Ads and Google Analytics accounts.
  3. Set up a "data blend" or join, instructing the tool to combine the data using the campaign name as the unique key (just like you did with VLOOKUP).
  4. Send the blended data to your BI tool and start building your charts and dashboards.

The Benefits: This process puts your key reporting on autopilot. Your dashboards stay up-to-date with fresh data, saving you countless hours and ensuring everyone on your team is looking at the same numbers in real-time. You can analyze trends as they happen, not a week later.

The Hurdles: While powerful, this approach can introduce its own set of challenges. It often requires a fair bit of technical know-how to configure the data sources, manage the pipeline, and troubleshoot API issues. These connector tools also come with subscription costs that can add up quickly.

Final Thoughts

Connecting your Facebook Ads costs with Google Analytics outcomes is non-negotiable for understanding true marketing performance. Tacking on UTM parameters is the foundational first step, but the real power comes from merging ad metrics with on-site behavioral and conversion data in a unified report.

We've found that most marketers get stuck between the tedious manual work of spreadsheets and the complexity of enterprise business intelligence tools. This drudgery is exactly why we built Graphed. It automates this entire process with one-click data integrations and an AI chat interface. You simply connect your Facebook Ads and Google Analytics accounts once, then use plain English prompts like, "build a dashboard showing me Facebook ad spend versus GA4 purchase revenue by campaign from the last 30 days" to instantly generate real-time reports and dashboards.

Related Articles