> ## 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.

# OpenAI Ads

> Send conversion events from Eyk to OpenAI Ads and check that they arrive in OpenAI Ads Manager.

The OpenAI Ads destination sends client-side and server-side event data from Eyk to OpenAI Ads. Use it to measure and optimize campaigns that run in ChatGPT.

## Before you start

You need:

* Access to the [OpenAI Ads Manager](https://ads.openai.com/) for your account.
* Access to the **Tracking** page in Eyk.

Setup has two parts. First you collect a pixel ID and create a conversion key in OpenAI Ads Manager. Then you enter both in Eyk. The pixel ID identifies the data source that receives your events.

## Part 1: Get your credentials from OpenAI

**1. Open Conversions**

Go to [OpenAI Ads Manager](https://ads.openai.com/) and open **Tools** >> **Conversions**.

**2. Check for an existing data source**

On the **Data Source** tab, check whether a data source already exists. If it does, open it, copy its **ID** and skip to the step "Create a conversion key". If the tab reads **You have not set up data sources yet**, continue with the next step.

> [!WARNING]
>
> Conversion events and campaigns are bound to the data source they were created for and cannot switch. Reuse your existing data source to keep campaigns and their optimization intact.

**3. Create a data source**

Click **+ Create** in the top-right corner and select **Data Source**.

![Create menu with the Data Source option in OpenAI Ads Manager](https://mintcdn.com/eyk-data/YMG0B2EYRbuj40U-/images/destinations/openai/01-create-data-source-menu.png?fit=max\&auto=format\&n=YMG0B2EYRbuj40U-\&q=85\&s=1e140e6601385dc0375b4df3b696fe9d)

**4. Name the data source**

For **Data Source Name** enter `Eyk Pixel` and click **Create**.

![Create new data source dialog](https://mintcdn.com/eyk-data/YMG0B2EYRbuj40U-/images/destinations/openai/02-create-new-data-source.png?fit=max\&auto=format\&n=YMG0B2EYRbuj40U-\&q=85\&s=85e3b5dc67cfe808fd21b060ebea0f09)

**5. Copy the pixel ID**

The **Set up your data source** screen opens. Copy the **Pixel ID**. You need it in Part 2. Ignore the setup code and close the screen with the **X** in the top-right corner.

> [!NOTE]
>
> You do not need to install the setup code on your website. Eyk's tracking sends the events for you.

![Set up your data source screen with the Pixel ID field](https://mintcdn.com/eyk-data/YMG0B2EYRbuj40U-/images/destinations/openai/03-copy-data-source-id.png?fit=max\&auto=format\&n=YMG0B2EYRbuj40U-\&q=85\&s=2ad96b3f4a3092b43bf08ff29b6b55f5)

**6. Open conversion keys**

Back on the **Conversions** page, click the key icon next to **+ Create** in the top-right corner.

![Conversions page with the key icon next to the Create button](https://mintcdn.com/eyk-data/YMG0B2EYRbuj40U-/images/destinations/openai/04-open-conversion-keys.png?fit=max\&auto=format\&n=YMG0B2EYRbuj40U-\&q=85\&s=f219045f7d4bdb466f096a7db9df8e70)

**7. Create a conversion key**

In the **Conversion keys** panel, click **+ Create new key**.

![Conversion keys panel with the Create new key button](https://mintcdn.com/eyk-data/YMG0B2EYRbuj40U-/images/destinations/openai/05-create-new-conversion-key.png?fit=max\&auto=format\&n=YMG0B2EYRbuj40U-\&q=85\&s=2eec2ea29a064ec3e6c50ddb8bd42211)

**8. Name the conversion key**

For **Name** enter `Eyk` and click **Create**.

![Create new conversion key dialog](https://mintcdn.com/eyk-data/YMG0B2EYRbuj40U-/images/destinations/openai/06-conversion-key-name.png?fit=max\&auto=format\&n=YMG0B2EYRbuj40U-\&q=85\&s=8f2f7e734ea72838450ba52a5acaf347)

**9. Save the key**

On the **Save your key** screen, click **Copy** and store the key somewhere safe. You need it in Part 2.

> [!WARNING]
>
> OpenAI shows this key only once. If you lose it, create a new key.

![Save your key screen](https://mintcdn.com/eyk-data/YMG0B2EYRbuj40U-/images/destinations/openai/07-save-your-key.png?fit=max\&auto=format\&n=YMG0B2EYRbuj40U-\&q=85\&s=2a38ba481fd31b08587f0e65e5623393)

## Part 2: Add the destination in Eyk

**1. Add a destination**

In Eyk, go to **Tracking** and click **+ Add destination**.

![Destinations page in Eyk with the Add destination button](https://mintcdn.com/eyk-data/ufKTM4ECbWXOgsq3/images/destinations/add-destination-button.png?fit=max\&auto=format\&n=ufKTM4ECbWXOgsq3\&q=85\&s=2269883c12159d7204da56296bc8d327)

**2. Select OpenAI Ads**

In the **Destination library**, click **Add** next to **OpenAI Ads**.

**3. Select your stores**

Under **Stores**, select the stores that send events to OpenAI Ads.

**4. Enter your credentials**

Enter the **Pixel ID** and the **Conversions API key** from Part 1.

![OpenAI Ads destination form in Eyk with the Pixel ID and Conversions API key fields](https://mintcdn.com/eyk-data/ufKTM4ECbWXOgsq3/images/destinations/openai/08-eyk-form.png?fit=max\&auto=format\&n=ufKTM4ECbWXOgsq3\&q=85\&s=a801257a119492538ae3a1f5ebbe25b2)

**5. Publish the destination**

Click **Publish**. Eyk starts sending events to OpenAI Ads right away.

> [!WARNING]
>
> After you publish this destination, pause or remove all existing OpenAI Ads tracking. Otherwise conversions are tracked twice.

## Check it worked

In OpenAI Ads Manager, go to **Tools** >> **Conversions** and open the **Event Stream** tab. Events from Eyk appear here shortly after visitors trigger them on your website.

If you created a new data source, click **+ Create** >> **Conversion Event** once events appear and select that data source. Campaigns can only optimize on a conversion event.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.