> For the complete documentation index, see [llms.txt](https://support.gamoshi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.gamoshi.com/gamoshi-wiki/how-to-guides/how-to-implement-third-party-pixel-tracking.md).

# How to Implement Third-Party Pixel Tracking

## Availability

Third-party pixel tracking is available in:

* DSP accounts.
* PE Enterprise accounts using internal DSP campaigns.

***

## Overview

This article explains how to implement third-party click and impression tracking pixels on advertiser creatives in DSP campaigns.

Configure third-party tracking in the creative form under the **Tracking and Conversions** section.

Before adding a third-party tracking URL, replace its macros with the corresponding Gamoshi macro syntax. For the available macros, refer to [**Macros Help**](/gamoshi-wiki/general-information/macro-help.md).

## Configure a Click-Through URL

To implement third-party click tracking:

{% stepper %}
{% step %}

### Open the creative form

Open the creative creation or editing form.
{% endstep %}

{% step %}

### Navigate to Tracking and Conversions

Navigate to the **Tracking and Conversions** section.
{% endstep %}

{% step %}

### Add the tracking URL

Insert the third-party tracking URL into the **Click-through URL** field.
{% endstep %}

{% step %}

### Replace macros

Replace the third-party macros with the corresponding Gamoshi macros. Refer to [**Macros Help**](/gamoshi-wiki/general-information/macro-help.md).
{% endstep %}

{% step %}

### Test the URL

Test the URL using the creative preview.
{% endstep %}
{% endstepper %}

The URL must notify the third-party tracking provider, then redirect the user to the advertisement’s landing page.

***

## Configure Impression-Tracking URLs

To implement third-party impression tracking:

{% stepper %}
{% step %}

### Open the creative form

Open the creative creation or editing form.
{% endstep %}

{% step %}

### Navigate to Tracking and Conversions

Navigate to the **Tracking and Conversions** section.
{% endstep %}

{% step %}

### Enable impression tracking URLs

Enable the **Set impression tracking URLs** switch.
{% endstep %}

{% step %}

### Add impression-tracking URLs

Insert the third-party impression-tracking URLs.
{% endstep %}
{% endstepper %}

You can add multiple impression trackers.

Make sure that all third-party macros are replaced with the corresponding Gamoshi macros. Refer to [**Macros Help**](/gamoshi-wiki/general-information/macro-help.md).

***

## Add an Impression Pixel to HTML Creative Code

You can also implement a third-party impression pixel within HTML creative code.

To configure it:

{% stepper %}
{% step %}

### Open the creative form

Open the creative creation or editing form.
{% endstep %}

{% step %}

### Select the media type

Select **Banner** from the **Media Type** drop-down menu.
{% endstep %}

{% step %}

### Select the creative template

In the **Creative Design** section, select **Image** from the **Creative Template** drop-down menu.
{% endstep %}

{% step %}

### Upload the creative image

Upload the relevant creative image.
{% endstep %}

{% step %}

### Copy the image URL

After the upload is completed, copy the generated image URL.
{% endstep %}

{% step %}

### Change the template to HTML

Change the **Creative Template** value to **HTML**. The uploaded image URL will appear in the HTML text box.
{% endstep %}

{% step %}

### Add the image URL and impression pixel

Add the image URL and third-party impression-tracking pixel to the HTML template provided below.
{% endstep %}

{% step %}

### Paste the completed template

Paste the completed template into the HTML text box, replacing its existing content.
{% endstep %}

{% step %}

### Replace pixel macros

Replace all third-party pixel macros with the corresponding Gamoshi macros. Refer to [**Macros Help**](/gamoshi-wiki/general-information/macro-help.md).
{% endstep %}
{% endstepper %}

The \[CLICK\_URL] macro uses the URL entered in the **Click-through URL** field under **Tracking and Conversions**.

***

## HTML Template

Before using the template:

{% stepper %}
{% step %}

### Replace the image source

Replace %%IMAGE\_SOURCE%% with the uploaded image URL.
{% endstep %}

{% step %}

### Replace the impression pixel URL

Replace %%THIRD\_PARTY\_IMP%% with the third-party impression-tracking pixel URL.
{% endstep %}
{% endstepper %}

```html
<a href="\[CLICK\_URL\]">

 <img src="%%IMAGE\_SOURCE%%" width="\[ADW\]" height="\[ADH\]">

</a>

<imp src="%%THIRD\_PARTY\_IMP%%" width="0" height="0" style="display:none">
```

***

## Related articles

* [Macro help](/gamoshi-wiki/general-information/macro-help.md)
* [Click URL overview](/gamoshi-wiki/general-information/click-url-overview.md)
* [How to create a Creative](/gamoshi-wiki/how-to-guides/how-to-create-a-creative.md)
* [How to Implement Conversion Tracking](/gamoshi-wiki/how-to-guides/how-to-implement-conversion-tracking.md)
* [How to Set Up Postback Conversion Tracking](/gamoshi-wiki/how-to-guides/postback-conversion-tracking.md)
