Table of Contents
If youâve been wondering why your Google Analytics and Facebook dashboards may be showing some slight discrepancies, hereâs your answer.
By default, Google Analytics attributes your referral traffic from Facebook as a number of different referrals. This affects Google Analytics reports on referral traffic from Facebook, as well as any resulting actions taken on your website, due to this misattribution.

There are two reasons why Facebook traffic is displayed with different referral sources. The first reason is that Facebook is available on a number of different sub-domains; These are the two most common.
- m.facebook.com (traffic from the Facebook app on a mobile phone)
- Free.facebook.com (traffic from Facebook Lite)
The second reason is that Facebook uses redirects to protect user data through the Link Shim feature, which is an interim step that protects user privacy and acts as a check for malicious content on the website the user is about to visit. The most common Facebook referral redirect sources are:
- l.facebook.com (traffic from the desktop link shim)
- lm.facebook.com (traffic from the mobile link shim)
Follow these easy steps on Google Analytics to view your aggregated Facebook referral traffic from both organic and paid sources:
Method 1: Acquisition -> Traffic -> Channels -> Social


Method 2: Acquisition -> Social -> Network Referrals

By applying a filter to your reporting view on Google Analytics you can combine all of the different Facebook referral traffic sources into one single source. Weâve already gone ahead and applied this filter to our clientsâ analytics dashboards so that we have a more clear view on whatâs happening with our Facebook campaigns.
Steps:
- Navigate to âAdminâ, then select âFiltersâ for your reporting view.
- Create a new filter, name the filter and select âCustomâ as the filter type.
- Select âSearch and Replaceâ, choose âCampaign Sourceâ as the âFilter Fieldâ and enter the following as the search and replace strings:
- Search string: .*\.facebook\.com$
- Replace string: facebook.com
Moving forward, all of your referral traffic from Facebook will be reported as:

To do the same for your past data, simply navigate to âAcquisitionâ, âAll Trafficâ, âSource/Mediumâ, then âSourceâ and enter .*\.facebook\.com$ into the search field above the table in the report, and you should see your aggregated Facebook referral data.

The most important thing to do is to add Google Analytics campaign tags (UTMs) to the links in your ads. Based on this article, it is recommended to use âfacebook.comâ as the source and âsocialâ as the medium for Facebook paid ads.

You can then use the source âfacebook.comâ in the campaigns report under âAcquisitionâ to view your paid traffic or in other traffic reports to view your aggregated paid and organic Facebook traffic.
That way, when the time comes to analyze your full funnel performance, youâll have a much more clear understanding of whatâs going on, and more importantly, how to move forward.
Found this article useful? Consider reading our other articles, webinars and eBooks to further your digital marketing know-how. Weâre always on the look-out for the latest insights and trends, and weâre always looking to better the Egyptian marketâs digital marketing knowledge.