How to Connect Meta Ads to Google Analytics

Connecting Meta Ads (Facebook Ads) to Google Analytics GA4 allows you to see cost and campaign performance data directly inside Google Analytics. This integration helps you analyze acquisition data more accurately and compare Meta Ads with other traffic sources.

Below are the exact steps to connect Meta Ads to Google Analytics using Data Import, as outlined in the reference file.

Access Data Import in Google Analytics

To begin the setup:

Go to:

Google Analytics Account → Admin → Data Import

GA4 data import

Alternatively, you can find it under:

Data Collection and Modifications → Data Import (Property Settings)

GA4 data import
To proceed, you must have Editor or Admin access in Google Analytics.

Create a New Data Source for Meta Ads

  1. Click Create Data Source in the top-right corner
GA4 acquisition reports

2. Name the data source (example: Meta Ads)

3.Ensure Cost Data is selected

GA4 cost data
4. Under Upload data for import, choose Meta as the import source
GA4 cost data import
This step prepares Google Analytics to receive Meta Ads cost data.

Connect Meta Ads to Google Analytics

After creating the data source:

  1. Click Connect in the top-right corner

  2. A popup window will open

  3. Select the correct Meta Business Manager account

  4. Choose the correct Meta Ad Account

This establishes the connection between Meta Ads and Google Analytics.

Add Campaign URL Parameters in Meta Ads

This is the most important step in the entire process.

In Meta Ads Manager, at the Ad level:

  • Select Build a URL Parameter
Meta Ads GA4 integration
  • You can use dynamic URL parameters or create your own custom parameters
GA4 property settings
Without proper URL parameters, Google Analytics will not attribute Meta Ads data correctly.

Complete the Setup in Google Analytics

After setting the URL parameters:

  1. Enter the required details in the Set up Connection section
Meta Ad Account connection

2. Review the connection settings

GA4 property settings

3. Click Finish

Once completed, the integration becomes active.

Where to See Meta Ads Data in Google Analytics

After the connection is successful, Meta Ads data will appear under:
Reports → Acquisition

You’ll be able to view cost data alongside other acquisition sources for better performance comparison.

Conclusion

Connecting Meta Ads to Google Analytics helps you:

  • Track Meta Ads cost data

  • Analyze acquisition performance more accurately

  • Compare Meta Ads with Google Ads and organic traffic

Make sure the campaign URL parameters are configured correctly in Meta Ads, as this is critical for accurate reporting.

Get a Free, In-Depth SEO Audit of Your Website