# Testing CPC Pixels

This article will walk you through how to test your CPC pixel.

* [Check Pixel Setup](#testingcpcpixels-checkpixelsetup)
* [Implement Import Click API on Funnel](#testingcpcpixels-implementimportclickapionfunnel)
* [Place a Test](#testingcpcpixels-placeatest)

***

### Check Pixel Setup <a href="#testingcpcpixels-checkpixelsetup" id="testingcpcpixels-checkpixelsetup"></a>

Before placing your first test, please ensure your pixel is setup properly by referring to [this article](https://help.checkoutchamp.com/crm/crm-setup/affiliate-setup/affiliate-pixels). The affiliate must be added to the campaign that the traffic is running to and there should be a CPC pixel added into the Pixels section of the affiliate profile.

<figure><img src="https://3790748257-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT43PzcNjyZtWby9yrGd3%2Fuploads%2FQLeHSmponish5ngWuBAC%2Fimage.png?alt=media&#x26;token=da4743b1-98c4-44fd-a330-97e6de902870" alt=""><figcaption></figcaption></figure>

Make sure the Pixel Content is correct, including proper use of the available pixel tokens.

### Implement Import Click API on Funnel <a href="#testingcpcpixels-implementimportclickapionfunnel" id="testingcpcpixels-implementimportclickapionfunnel"></a>

If you have not already, have your developer implement the [Import Click API ](https://apidocs.checkoutchamp.com/#e576c9e1-2606-49c2-8ac0-143a35c7add2)call on your funnel and follow our [Suggested API Flow](https://help.checkoutchamp.com/api-documentation/api-documentation/recommended-api-flow) documentation.

The very first Import Click call made in the session will fire the CPC pixel.

{% hint style="warning" %}
To make the CPC pixel fire, the Import Click call must pass the requestUri **(containing the affId and passedValues)** as well as the **campaignId** that the pixel is configured for.
{% endhint %}

Here is an example of an Import Click call which fired a CPC pixel:

<figure><img src="https://3790748257-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT43PzcNjyZtWby9yrGd3%2Fuploads%2FGmohh1biIXMhNdeY7BzE%2Fimage.png?alt=media&#x26;token=7f7627f4-4aca-4e18-8c2e-176f0bd2adba" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
Pass the returned sessionId on all subsequent API calls for this customer’s session.
{% endhint %}

### Place a Test <a href="#testingcpcpixels-placeatest" id="testingcpcpixels-placeatest"></a>

Now that you have the CPC pixel added and Import Click is implemented on your pages - To test you can simply click on the test link for that affiliate. Once the page loads, check with your affiliate to see if they saw the pixel fire.
