# Snapchat Conversion API

With Snapchat API, one can pass conversion data to snapchat successfully when third party cookies are blocked.

{% hint style="info" %}
To use the Snapchat Conversion API, you need: **Pixel ID** and **Access Token**&#x20;
{% endhint %}

### Get necessary data from Snapchat business account

#### Pixel ID

1. Go to Event Manager in Snapchat business account

2. New Event Source **»** Select "**Web**" **»** Next

3. Select "**Conversion API**" in Set Up Web Event **»** Next<br>

   <div align="left"><figure><img src="https://295230641-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F41f2EboJipeUA6flsLGK%2Fuploads%2FX3sMvTuSudVt1NeALWp5%2Fimage.png?alt=media&#x26;token=630cc851-ea8b-45a7-9772-f4c496122749" alt="" width="375"><figcaption></figcaption></figure></div>

4. Create new pixel or select already created pixel from dropdown **»** Define pixel name **»** Confirm

5. After creating a pixel, copy the Pixel ID

<figure><img src="https://295230641-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F41f2EboJipeUA6flsLGK%2Fuploads%2Fe5ddWD6dtit4HaOl5q5e%2Fimage.png?alt=media&#x26;token=6b7e923b-1a4f-4ace-a9c3-ffd9c7bfa76e" alt=""><figcaption></figcaption></figure>

#### Access Token

1. Setup Snap Pixel

2. Select already created Pixel **»** Select "**Create a New Token**" under CAPI Access Token **»** Next<br>

   <div align="left"><figure><img src="https://295230641-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F41f2EboJipeUA6flsLGK%2Fuploads%2FoHgGW9bDp3Dd9DK9DCxQ%2Fimage.png?alt=media&#x26;token=6e0635ac-37d8-46e6-965f-1efdf8ae02dc" alt="" width="375"><figcaption></figcaption></figure></div>

3. Generate token button **»** Next

4. Select "**Manual Setup**" in Event setup method **»** Next

5. Select Events as per your requirement **»** Next<br>

   <figure><img src="https://295230641-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F41f2EboJipeUA6flsLGK%2Fuploads%2FVypNWduRFygP0aoTlzZ7%2Fimage.png?alt=media&#x26;token=266721b0-b8e8-42dc-be1a-deaeec84333c" alt=""><figcaption></figcaption></figure>

6. Copy "**Your Access Token**" **»** Finish

***

### Placement of Pixel ID and an Access Token in Affiliate dashboard

1. Login to Affiliate dashboard **»** open respective Offer&#x20;

2. Go to Postback section<br>

   <figure><img src="https://295230641-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F41f2EboJipeUA6flsLGK%2Fuploads%2FwwiPV64W2erlFOI5THQN%2Fimage.png?alt=media&#x26;token=68aa8590-77e4-4271-b17b-68d336d6ced6" alt=""><figcaption></figcaption></figure>

3. Select Snapchat in Type

4. Place **Pixel ID** and **Access token**&#x20;

5. Select Event&#x20;

6. Define Snapchat Event

<figure><img src="https://295230641-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F41f2EboJipeUA6flsLGK%2Fuploads%2F0f51mMfFVZeZTP4YSVoL%2Fimage.png?alt=media&#x26;token=66e4fd1e-9ad1-4bf9-b067-9aa8036d1b3a" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}

* For Snapchat Click ID use **{aff\_click\_id}**&#x20;
* For other values use additional parameters from **{aff\_sub1}** to **{aff\_sub5}**
  {% endhint %}

8. Go to Submit

{% hint style="info" %}
To use existing **Pixel ID** and **Access Token**, click on Use Existing then select Pixel ID from drop-down.
{% endhint %}

Make sure to use the same parameters in affiliate tracking link to receive the values from Snapchat.
