Track Facebook Ads in Google Analytics

Business Benefits

Understand your Facebook campaigns performance and use the insights to optimize ROI.


Navigate to the ad level in Facebook Ads Manager and click Build a URL parameter under website URL.

  • Enter Facebook as the campaign source parameter and cpc as the campaign medium parameter.
  • Use {{campaign.name}} as the campaign name parameter. This will automatically pass the campaign name through to Google Analytics.
  • Use {{adset.name}} to automatically pass the ad set name.

In Google Analytics, go to Acquisition > All traffic > Source/Medium. Traffic from your Facebook Ads will show as facebook / cpc in the report.

Click on Facebook / cpc > Secondary dimension then select campaign from the drop-down menu.

This will give you an overview of the performance of your Facebook campaigns.

Click on Secondary dimension again and select content from the drop-down menu.

You will now see an overview of your ad sets.

Check the campaign and ad set spend in Facebook Ads Manager.

Check your success metrics data such as goal conversions, e-commerce transactions, and revenue. See how each of the ad groups and campaigns contributes to your business goals.

Identify the campaigns and ad sets that generate high spend which don’t contribute to your business goals.

Consider pausing these campaigns or adjusting the settings for example, testing a smaller target audience or choosing a different landing page.

Identify the campaigns and ad sets that perform well and scale them by increasing the spend and the reach.

Check your ad spend and success metrics on an ongoing basis and use data insights from past campaigns when creating new ones.