> ## Documentation Index
> Fetch the complete documentation index at: https://docs.eykdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Meta Ads destination

> Conversion tracking

The Meta Ads destination in Eyk sends both Client-side and Server-side event data to Meta, and can be used to optimise campaigns running on Facebook and Instagram.

## Setup instructions

<Steps>
  <Step title="Open Events Manager">
    Go to [Facebook Events Manager](https://business.facebook.com/events_manager2) for your ads account.
  </Step>

  <Step title="Open your data source settings">
    In the **Data sources** list, click on the data source you would like to connect. Then navigate to the **Settings** tab.

    <Frame>
      <img src="https://mintcdn.com/eyk-data/003HpFVjXCLV8bE-/images/destinations/meta-ads/01-settings-tab.png?fit=max&auto=format&n=003HpFVjXCLV8bE-&q=85&s=94a40332c4c2d40abc642033ca1b8215" alt="Settings tab in Events Manager" width="1435" height="624" data-path="images/destinations/meta-ads/01-settings-tab.png" />
    </Frame>
  </Step>

  <Step title="Copy the Dataset ID">
    On the **Settings** tab, copy the **Dataset ID** — you will need this later.

    <Frame>
      <img src="https://mintcdn.com/eyk-data/003HpFVjXCLV8bE-/images/destinations/meta-ads/02-dataset-id.png?fit=max&auto=format&n=003HpFVjXCLV8bE-&q=85&s=7d8001dda925e59179c0af236d5b7556" alt="Dataset ID field" width="752" height="439" data-path="images/destinations/meta-ads/02-dataset-id.png" />
    </Frame>
  </Step>

  <Step title="Generate an access token">
    On the **Settings** tab, scroll down to the **Conversion API** section and click **Generate access token**. Copy the access token, you'll need this in one of the next steps.

    <Frame>
      <img src="https://mintcdn.com/eyk-data/003HpFVjXCLV8bE-/images/destinations/meta-ads/03-generate-access-token.png?fit=max&auto=format&n=003HpFVjXCLV8bE-&q=85&s=fe123549e27abd3ad778fd6519543f54" alt="Generate access token button" width="757" height="611" data-path="images/destinations/meta-ads/03-generate-access-token.png" />
    </Frame>
  </Step>

  <Step title="Copy the test event code">
    Go the **Test events** tab. Open the section **Confirm that your server's events are set up correctly**. Click the **Copy** button to copy the test event code — you'll need this in the next step.

    <Frame>
      <img src="https://mintcdn.com/eyk-data/003HpFVjXCLV8bE-/images/destinations/meta-ads/04-test-event-code.png?fit=max&auto=format&n=003HpFVjXCLV8bE-&q=85&s=4eb41d2f946a452ebba2afff6966a975" alt="Test event code" width="770" height="924" data-path="images/destinations/meta-ads/04-test-event-code.png" />
    </Frame>
  </Step>

  <Step title="Add the destination in Eyk">
    In your Eyk environment, go to **Tracking** and click the **+ Add destination** button.

    <Frame>
      <img src="https://mintcdn.com/eyk-data/003HpFVjXCLV8bE-/images/destinations/meta-ads/05-add-destination-button.png?fit=max&auto=format&n=003HpFVjXCLV8bE-&q=85&s=07efeb2f402badfdf441d0a0b820cba9" alt="Add destination button in Eyk" width="1447" height="847" data-path="images/destinations/meta-ads/05-add-destination-button.png" />
    </Frame>
  </Step>

  <Step title="Select Meta Ads">
    Select **Meta Ads** from the list of destinations.
  </Step>

  <Step title="Start verification">
    Enter the **Dataset ID**, **API access token** and **Test ID** collected in the previous steps and click **Start verification**.

    <Frame>
      <img src="https://mintcdn.com/eyk-data/003HpFVjXCLV8bE-/images/destinations/meta-ads/06-meta-ads-verification.png?fit=max&auto=format&n=003HpFVjXCLV8bE-&q=85&s=be3ed5da36639e5408ad119fe07f3957" alt="Meta Ads verification screen" width="1435" height="860" data-path="images/destinations/meta-ads/06-meta-ads-verification.png" />
    </Frame>
  </Step>
</Steps>

All done! ✅

<Warning>
  Once you publish this destination, you should pause or remove all existing Facebook tracking. Leaving these on will lead to duplicate tracking.
</Warning>
