---
description: This document covers the Meta Conversion API destination in Lemnisk.
---

# Meta Conversion API

The [Meta Conversion API](https://developers.facebook.com/docs/marketing-api/conversions-api), lets advertisers send events from their servers to Meta. The server-side events are connected to a pixel which is then processed like browser pixel events. These events are used in streamlining, and optimization as browser pixel events.

**Destination Info**

* Accepts Page, Identify, and Track calls

## Getting Started <a href="#getting-started" id="getting-started"></a>

You need to set up your Pixel to work with the Meta Conversions API destination. You can follow the below steps to create a new pixel.

### Use Cases of Meta Conversion API&#x20;

Meta conversion API works with the Meta pixel to ensure you get all the data you need. Combined, they help you track, attribute, and improve ads running on Meta.

What's wrong with the pixel? Essentially, ad blockers, cookie blockers, and other masking tools are reducing the amount of data pixels receive. As a result, it makes tracking data difficult.

Even iOS 14 restricts cookies for tracking on Apple mobile devices. Pixels alone won't tell you much about how iOS users interact with your business. You might not know if someone clicks through from Meta.

### **Create a new Pixel** <a href="#create-a-new-pixel" id="create-a-new-pixel"></a>

Before you begin the process, make sure you have a Meta Ad account.

**Step 1:** Go to the Meta Business [Events Manager](https://www.facebook.com/events_manager2/) and click **Connect Data Sources**.

<figure><img src="https://1782533751-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FazJDZwzHkmWIbkYOetQH%2Fuploads%2F05pHt4YJcMJOqL3XFgaC%2FScreenshot%202022-12-07%20at%202.49.19%20PM.png?alt=media&#x26;token=5e5ff6cb-c4fc-4b1a-a2aa-d6ff6a6e3cf8" alt=""><figcaption><p><em>Create new pixel</em></p></figcaption></figure>

**Step 2:** From the pop-up, choose Web and then click **Connect**.

<figure><img src="https://1782533751-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FazJDZwzHkmWIbkYOetQH%2Fuploads%2FU91NNognF7RQFdIsJaxX%2FScreenshot%202022-12-13%20at%202.48.12%20PM.png?alt=media&#x26;token=c6630fac-4e7d-4a90-902e-8cfe536b5ef8" alt=""><figcaption><p><em>Connect new data source</em> </p></figcaption></figure>

**Step 3:** Select **Conversions API** and then click **Connect**.

**Step 4:** Type the name of your pixel in the **Name Your Pixel** text box.

**Step 5:** Type the URL in the **Check your website for easy set up options** text box.

**Step 6:** Click **Next**. The pixel page opens.

**Step 7:** In the **Overview** tab, click **Continue Pixel Set up**. A **Connect Website Activity Using Pixel** pop-up appears.

<figure><img src="https://1782533751-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FazJDZwzHkmWIbkYOetQH%2Fuploads%2FM2D78pSKVwt3AovjWANw%2FScreenshot%202022-12-13%20at%202.53.53%20PM.png?alt=media&#x26;token=4b42f1be-1db4-4ee1-b9fc-154bbe353d1e" alt=""><figcaption></figcaption></figure>

**Step 8:** In the **Connect Website Activity Using Pixel** pop-up, select **Install Code manually**.

<figure><img src="https://1782533751-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FazJDZwzHkmWIbkYOetQH%2Fuploads%2FPLusCqfFxl3z0J4Igb2F%2FScreenshot%202022-12-13%20at%202.53.25%20PM.png?alt=media&#x26;token=9ac3c045-e56e-4165-bce5-a97a0e00eec5" alt=""><figcaption></figcaption></figure>

**Step 9:** In the **Install Base Code**, under **Copy base code**, click **Copy Code** and click **Continue.**

<figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl5ieAkKDAgnmxNgnz1vF%2Fuploads%2FVQLn92xJI9hB2dOdz2nY%2Fimage.png?alt=media&#x26;token=f9c4d917-ad6b-46e3-9df0-cdbb694b246f" alt=""><figcaption></figcaption></figure>

**Step 10:** On the **Automatic Advanced Matching** page, click **Continue.**

**Step 11:** Click **Continue** in the **Automatic Advanced Matching** page as well.

**Step 12:** Click **Go To Pixel Overview** in the **Add Events Using Event Setup Tool**.

Once the process is completed, you can verify the installation by calling an event. For example, you can use the below function: 1fbq('track', 'Purchase', {currency: "USD", value: 40.00}); Copied!

## Configure Meta Conversion API in Lemnisk <a href="#configure-facebook-conversion-api-in-lemnisk" id="configure-facebook-conversion-api-in-lemnisk"></a>

**Step 1:** On the Lemnisk Home page, adjacent to Destinations, click **Create** **Destination**.

**Step 2:** In the Catalog pop-up that appears, choose **Facebook Conversions API** and click **Continue**.

**Step 3:** Select a source by checking the box against the source name and then click **Continue**.m

**Step 4:** In the **Name** field, type a name that would identify your destination.

**Step 5:** Click **Create Destination.**

**Step 6:** Click **+Add Source** and select the source that would send data to the “Facebook Conversions API” destination.

**Step 7:** Toggle the **Status** button to activate the destination. You will be prompted to confirm your actions.

**Step 8:** Click **Yes, Activate.**

**Step 9:** You will be redirected to the **Configuration** tab.

**Step 10:**&#x50;aste the **Pixel ID** and **Access Token** copied from Facebook, respectively.

**Step 11:** Click **Update Destination**. The destination will be activated.

<figure><img src="https://1782533751-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FazJDZwzHkmWIbkYOetQH%2Fuploads%2F0kokALKy3emRg2nEM82b%2FFCP.gif?alt=media&#x26;token=446160ae-b85c-49dc-bb30-5bdefa856e5c" alt=""><figcaption></figcaption></figure>

## Verify events in Meta <a href="#verify-events-in-facebook" id="verify-events-in-facebook"></a>

Once the events are sent, you can confirm that Meta received them from the **Event Manager** on the Meta app.

**Step 1:** Navigate to **Meta** > **Events** **Manager**.

**Step 2:** On the **Data Sources** page, click on the pixel corresponding to the `PIXEL_ID` in your `POST` request.

**Step 3:** In the **Overview** tab, look for raw and matching events where the “Connection Method” is `Server`.

<figure><img src="https://1782533751-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FazJDZwzHkmWIbkYOetQH%2Fuploads%2FkEgPBaBROkKL87wNQpqa%2FScreenshot%202022-12-07%20at%203.01.25%20PM.png?alt=media&#x26;token=e2681592-2509-4b93-993d-9ed12eebc4b5" alt=""><figcaption><p><em>Verify Events</em> </p></figcaption></figure>

{% hint style="info" %}
It might take a few minutes before events appear in the Events Manager.
{% endhint %}

It might take a few minutes before events appear in the Events Manager.

## Custom Conversion Events and Rules <a href="#custom-conversion-events-and-rules" id="custom-conversion-events-and-rules"></a>

For Meta Conversion API, we can define custom events and conversion rules in FB Events Manager. Please reach out to your Lemnisk Customer Success partner to set this up.
