Connecting Facebook Ads to upload spending data

If you place ads on Facebook* or Instagram*, you can set up regular transmission of data on advertising expenses to Yandex Metrica. You can use it to compare the performance of ads in Facebook or Instagram with other paid channels.

Information about ad campaign expenses and clicks is transferred from your Facebook Ads* account to Yandex Metrica if the ad leads to an external site. When data is transmitted, Yandex Metrica compares the URL in ads with the site address in the tag settings. This ensures that only information about an advertising campaign that was created for your site is uploaded.

Alert

If the end URL in the Facebook Ads* ad groups settings differs from the site address in the Yandex Metrica tag settings, the data will not load. Make sure the addresses are the same.

Data on expenses is transmitted daily for the past seven days, so statistics are regularly supplemented and updated. The source of expenses will be indicated as Ad ClicksFacebook. If UtmSource contains the instagram value, Ad Clicks — Instagram*.

To view statistics, use the Sources, costs, and ROI report.

Data is transmitted to Yandex Metrica without VAT in the currency specified in the Facebook Ads account*. If you pass data in multiple currencies, you can select a specific currency when viewing the report. More information about exchange rates and currency selection

How to connect the service

If you have multiple Yandex Metrica accounts, use the one that you will use to work with expense data. You can only create a connection for one account in Yandex Metrica. This is to ensure the data is protected. However, you can create multiple connections for a single account in Yandex Metrica.

  1. Make sure that the URLs of your ads contain UTM tags.

    Supported dynamic parameters
    • {{ad.name}}
    • {{adset.id}}
    • {{adset.name}}
    • {{campaign.id}}
    • {{campaign.name}}
    • {{pad.id}}

    How to add URL parameters to an ad

    How to set dynamic parameters

  2. In Yandex Metrica, go to Settings -> Upload data tab.

  3. Under Advertising expenses (Automatic cost upload), choose Facebook Ads*.

  4. Click Connect Facebook Ads*.

  5. Select the Business Manager Account that you use to work with the ad campaign.

  6. Add the name of the connection and select the advertising account that you want to upload data from. What to do if there are no available accounts.

  7. Click Save.

You can create a connection for multiple tags:

  1. Make sure that your Yandex account has access to the tags that you need to create a connection for.
  2. Create a connection as described above for one of the tags.
  3. For the other tags, select the connection created in step 2.

To change the connection name, go to the connection settings and enter a new name.

How to delete data from Yandex Metrica

We recommend deleting data by date and UTM tags/sources.

Unlink the Yandex Metrica tag from the Facebook Ads account

Go to the Yandex.Metrica Customization page and delete the connected Facebook Ads account.

Questions and answers

For what time period can data be uploaded?

For the past seven days.

How can I find out which Facebook Ads account a connection was performed with?

It is not possible to find out the username after the connection has already been made. This is to ensure the security of your data. We recommend contacting your colleagues for information.

No Facebook Ads advertising accounts are available.

You probably don't have access to the Facebook advertising account*. Check whether the account you created the connection under has access to the advertising account.

If you don’t have any ad campaigns or access to Facebook Ads* campaigns, create and configure ad campaigns.

You may have access to advertising accounts under a different Facebook account*. In this case, delete the current connection and create a new one from the account that has access to the advertising account on Facebook*.

When will Facebook Ads data appear in a report?

Yandex Metrica uploads expense data once a day. The current day’s expenses do not appear in tag reports until the next day.

* Banned in Russia.

Chat with us

Write an email

Please note: Our support team will never initiate a call to you. Do not follow any instructions of people who call you and introduce themselves as the Yandex Metrica support team.


Banned in Russia.