Google Analytics for Facebook Tutorial

Last Updated: September 5, 2023

This Google Analytics for Facebook tutorial shows you how to track Facebook ad campaigns in Google Analytics. You will learn about how Facebook traffic moves through the checkout process. You will also learn to determine the top traffic generating web pages shared on Facebook.

Tracking Facebook ad campaigns in Google Analytics

In order to track the performance of various Facebook ad campaigns in Google Analytics, add the following UTM parameters at the end of the destination URL of each Facebook ad:

utm_source

Use this parameter to specify the traffic source.

For example: utm_source= facebook

Note: utm_source is a required parameter.

utm_medium

Use this parameter to specify traffic medium.

For example: utm_medium= social

Note: utm_medium is a required parameter.

utm_content

Use this parameter to differentiate various Facebook ads or links that point to the same destination page.

For example: utm_content=ad1

utm_campaign

Use this parameter to specify the name of the Facebook campaign.

For example: utm_campaign= pdf-book-campaign

Note: utm_campaign is a required parameter.

Following is an example of a Facebook ad URL that contains UTM parameters:

https://www.optimizesmart.com/book-maths-and-stats-for-web-analytics-conversion-optimization/?utm_source=facebook&utm_medium=social&utm_content=ad1&utm_campaign=pdf-book-campaign
google analytics for facebook

Always use Google URL builder to add UTM parameters to the destination URL of your Facebook ads.

Always use Facebook Power Editor to create and manage Facebook ads.

Many people use Facebook boost post to create and publish ads.

While it is easy to create ads via the boost post feature, it lacks many advanced features, like adding UTM parameters to the Ads’ URLs.

Without adding the UTM parameters to the ads’ URLs, you won’t be able to measure the performance of various Facebook ad campaigns in Google Analytics.

Understanding how Facebook traffic moves through the checkout process

One of the best ways to analyse Facebook traffic data in Google Analytics is through a filtered view.

If you use filtered view, you will never forget to segment the data and segmenting the data is very important in order to get a better understanding of the Facebook traffic. 

If you use an advanced segment (to filter out Facebook traffic), then you need to consciously remember to use this segment each time, before you begin your analysis. Moreover, Google Analytics does not let you apply advanced segments on the funnel visualization report and multi-channel reports. So you would never know, how Facebook traffic moves through the checkout process or complete a goal conversion.

Create a new view in Google Analytics and apply the following filter to it:

facebook filter

This filter will include only the Facebook traffic.

Determining top traffic generating web pages shared on Facebook

You can determine the top shared web pages (in terms of driving traffic to your website) on Facebook through the ‘Network referrals’ report in Google Analytics. Navigate to Acquisition > Social > Network Referrals in your GA view and then click on the ‘Facebook’ link:

network referrals

You can now see the website usage data of top shared web pages on Facebook:

top shared url

Tracking assisted and last click conversions from Facebook

Facebook, just like any other marketing channel, not only helps in completing conversions but also help in assisting conversions. So while evaluating its overall performance as a marketing channel, we need to look beyond the last click. Through the ‘social conversions‘ report you can track the overall performance of Facebook by analysing the following metrics:

  1. Assisted Conversions
  2. Assisted Conversion Value
  3. Last Click or Direct Conversions
  4. Last Click or Direct Conversions Value
  5. Assisted / Last Click or Direct Conversions

If you are not sure what these metrics mean, then read this article: Google Analytics Attribution Modeling – Beginners Guide

Navigate to Acquisition > Social > Conversions in your GA view and then look at the data row for Facebook:

facebook assisted conversions

From the report above we can conclude the following:

  1. Facebook helped in generating 557 conversions of value $28,233.40 in the last month.
  2. Facebook directly completed 556 conversions of value $24,890.30 in the last month.
  3. The assisted / last click or direct conversions is 1. What that means, Facebook is equally good in both assisting conversions and directly completing conversions.

So for Attribution modelling, the  ‘social conversions‘ report is extremely important.

Understanding Facebook users flow

Through the ‘Social Users Flow’ report in Google Analytics, you can determine the paths users took through your website, from Facebook. Basically, you can determine how users browsed your website, after finding you on Facebook. This is a good report to understand the behaviour of Facebook users on your website.

view only this segment

Navigate to Acquisition > Social > Users flow in your GA view, click on the Facebook white box and then select ‘View only this segment‘:

You can then see the Facebook users flow on your website:

facebook user flow
  1. facebook.com Referral Traffic in Google Analytics Explained
  2. Facebook Attribution and Conversion Windows Tutorial
  3. Facebook ROI Calculation, Analysis and Examples
  4. How to set up the Facebook Attribution Tool
  5. How to Setup Funnels in Facebook Ads Manager
  6. How to use funnels for your Facebook Ad Campaigns
  7. How to advertise on Facebook for FREE with unlimited budget
  8. Secret to Setup Facebook Pixel Tracking Correctly in Google Tag Manager
  9. Facebook Pixel vs Google Analytics Data Discrepancies
  10. facebook.com Referral Traffic in Google Analytics Explained
  11. Learn to set up Facebook Pixel via Google Tag Manager
  12. Send Facebook Pixel Purchase Event via Google Tag Manager
  13. Open Graph Protocol for Facebook Explained with Examples
  14. Tracking Facebook ‘Likes’ and ‘Unlikes’ in Google Analytics
  15. Facebook Attribution Models Tutorial
  16. GTM Server Side Tagging for Facebook Tutorial
  17. The impact of Apple IOS 14.5 update on Facebook Ads
  18. How to add Facebook Pixel to WordPress Website
  19. How to add Facebook Pixel to WordPress without a Plugin
  20. How to track Facebook events via Google Tag Manager
  21. How to use the Facebook Event Setup Tool
  22. How to use the Facebook Pixel Helper to Test Facebook Events
  23. How to automatically turn off Facebook ads on weekends
  24. How to name Facebook Ad Campaigns like a Pro

  1. How to see Organic Search Keywords in GA4 (Google Analytics 4)
  2. Google Analytics Ecommerce Tracking Tutorial
  3. Google Tag Manager Event Tracking Tutorial
  4. Google Analytics Event Tracking Tutorial
  5. Google Analytics Store Visits Tracking Tutorial
  6. Offline Conversion Tracking in Google Analytics – Tutorial
  7. Ecommerce Tracking Google Tag Manager (GTM) – Tutorial
  8. Tracking Virtual Pageviews in Google Tag Manager – Tutorial
  9. Google Tag Manager YouTube Video Tracking
  10. Google Analytics Virtual Pageviews Tutorial
  11. Google Analytics YouTube Integration & Analysis Tutorial
  12. Google Analytics for Facebook Tutorial
  13. Cross Domain Tracking in Google Analytics – Complete Guide
  14. How to use two Google Analytics codes on one page
  15. How to correctly use referral exclusion list in Google Analytics
  16. Google Analytics Calculated Metrics – Tutorial
  17. Creating your own Google Analytics Tag Auditing System
  18. Google Tag Manager Search Tracking without Query Parameter
  19. Tracking Google Analytics Paypal Referral and other payment gateways
  20. How to Track Phone Calls in Google Analytics 4 – Call Tracking Tutorial
  21. How to track leads in Google Analytics via CRM
  22. Postbacks in Google Analytics Explained
  23. Subscription & Recurring Revenue Analytics in Google Analytics
  24. Track the Impact of Google Analytics Cookie Consent on Website Traffic
  25. Tracking Offline Conversions in Google Ads
  26. Implementing Scroll Tracking via Google Tag Manager
  27. Scroll Depth Tracking in Google Tag Manager – Tutorial
  28. Site Search Tracking In Google Analytics Without Query Parameters
  29. Google Tag Manager Youtube Video Tracking via YouTube Video Trigger
  30. How to Correctly Measure Conversion Date & Time in Google Analytics
  31. Google Analytics Social Tracking – Twitter, Facebook, Google Plus and LinkedIn
  32. Cross Domain Tracking in Google Analytics – Complete Guide
  33. Google Analytics Linkedin & Twitter Tracking
  34. Creating Content Group in Google Analytics via tracking code using gtag.js
  35. Google Analytics Site Search Tracking via Query Parameters
  36. Google Analytics Site Search Tracking Tutorial
  37. Creating and Using Site Search Funnel in Google Analytics
  38. How to add Facebook Pixel to Google Tag Manager
  39. AMP Google Analytics Tracking – Learn to track AMP pages
  40. Setting up Sales Funnel across websites in Google Analytics
  41. Google Analytics 4 Regex (Regular Expressions) Tutorial

My best selling books on Digital Analytics and Conversion Optimization

Maths and Stats for Web Analytics and Conversion Optimization
This expert guide will teach you how to leverage the knowledge of maths and statistics in order to accurately interpret data and take actions, which can quickly improve the bottom-line of your online business.

Master the Essentials of Email Marketing Analytics
This book focuses solely on the ‘analytics’ that power your email marketing optimization program and will help you dramatically reduce your cost per acquisition and increase marketing ROI by tracking the performance of the various KPIs and metrics used for email marketing.

Attribution Modelling in Google Analytics and BeyondSECOND EDITION OUT NOW!
Attribution modelling is the process of determining the most effective marketing channels for investment. This book has been written to help you implement attribution modelling. It will teach you how to leverage the knowledge of attribution modelling in order to allocate marketing budget and understand buying behaviour.

Attribution Modelling in Google Ads and Facebook
This book has been written to help you implement attribution modelling in Google Ads (Google AdWords) and Facebook. It will teach you, how to leverage the knowledge of attribution modelling in order to understand the customer purchasing journey and determine the most effective marketing channels for investment.

About the Author

Himanshu Sharma

  • Founder, OptimizeSmart.com
  • Over 15 years of experience in digital analytics and marketing
  • Author of four best-selling books on digital analytics and conversion optimization
  • Nominated for Digital Analytics Association Awards for Excellence
  • Runs one of the most popular blogs in the world on digital analytics
  • Consultant to countless small and big businesses over the decade