docs / articles / How to Track Facebook Ads in Google Analytics

How to Track Facebook Ads in Google Analytics

Lisa Jul 26, 2026 2026-07-26 18:03:27

Seamlessly tracking the performance of your Facebook Ads in Google Analytics isn't just possible, it's essential for a comprehensive understanding of your digital marketing strategy. By integrating these two powerful tools, you can gain insights that exceed what Facebook Advertising Manager alone can provide. Let's delve into the process, step by step.

the book cover for how to set up google analyticss for facebook ads
the book cover for how to set up google analyticss for facebook ads

Before we dive in, ensure you have the latest version of Google Analytics and that you're logged in to your Facebook Ads Manager account. Also, having edit permissions on your Google Analytics account will facilitate the process.

How to Use Facebook and Google Analytics TOGETHER to Monitor Fan Traffic
How to Use Facebook and Google Analytics TOGETHER to Monitor Fan Traffic

Setting Up Facebook Ads Conversion Tracking

The first step involves setting up the Facebook pixel, which is a piece of code for your website that enables you to measure, optimize, and build audiences for your advertising campaigns. It's your bridge to tracking Facebook Ads in Google Analytics.

Tracking Social Media on Google Analytics
Tracking Social Media on Google Analytics

Here's how you can implement it:

Installing the Facebook Pixel

I will setup facebook conversion API, google analytics 4, and pixel with GTM
I will setup facebook conversion API, google analytics 4, and pixel with GTM

Head over to your Facebook Events Manager and navigate to 'Pixels' in the left menu. Click 'Create a Pixel', and follow the prompts to complete the setup. Once done, you can start tracking your website's activity with the Facebook pixel.

Creating Standard Events

Standard Events are specific user actions that happen on your website, such as 'View Content' or 'Add to Cart'. You can create these in the Events Manager. Once created, these events can be linked to your Facebook pixel.

How to Track User Scrolling with Google Analytics
How to Track User Scrolling with Google Analytics

Linking Facebook Ads to Google Analytics

Now that your Facebook pixel is set up, it's time to link your Facebook Ads to Google Analytics. This process involves creating a custom segment in Google Analytics and associating your Facebook Ads with it.

Here's how you can achieve this:

Facebook ads result
Facebook ads result

Creating a Segment in Google Analytics

In Google Analytics, go to the ' Baudenrence' tab, click 'New Segment', and give it a name like 'Facebook Traffic'. Under 'Conditions', click 'Source/Medium', then 'Include', and add 'facebook.com/'. Click 'Save'.

Why we need  server side tracking for Facebook ads remarketing
Why we need server side tracking for Facebook ads remarketing
How to Track Social Media Traffic Using Google Analytics
How to Track Social Media Traffic Using Google Analytics
Facebook Pixel Conversion API with GTM Server-Side Tracking
Facebook Pixel Conversion API with GTM Server-Side Tracking
Google Analytics Conversion Tracking: Step-by-Step Guide With Examples
Google Analytics Conversion Tracking: Step-by-Step Guide With Examples
How to Safely Share Access to Your Facebook Ads and Google Analytics Data
How to Safely Share Access to Your Facebook Ads and Google Analytics Data
What is Google Analytics? A Beginner’s Guide
What is Google Analytics? A Beginner’s Guide
the small business guide to google's infographical data visual tool for advertising
the small business guide to google's infographical data visual tool for advertising
How to Tell If Your Google Ads Are Working Using Google Analytics
How to Tell If Your Google Ads Are Working Using Google Analytics
How to Get Started with Google Analytics 4 | SEO Tips and Tricks
How to Get Started with Google Analytics 4 | SEO Tips and Tricks

Associating Facebook Ads with the Segment

Return to your Facebook Ads Manager, and under 'Columns', click '+'. Scroll down to 'Customize Columns', and click 'Save as Preset'. Name this preset 'Google Analytics'. In this custom column set, you can see the Google Analytics UTM parameters associated with each ad.

With this integration, whenever a user from Facebook comes to your website, the information is sent to both Facebook and Google Analytics, allowing you to compare data from both sources and analyze it together.

By tracking Facebook Ads in Google Analytics, you can truly make informed decisions based on comprehensive data insights. So, measure, iterate, and watch your business grow.