> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://helpdesk.ezmob.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Image Pixel Tracking Implementation

## Image Pixel Tracking Implementation on EZmob

Image pixel tracking is a **client-side conversion tracking** method that is useful when server-to-server postbacks are not feasible. This guide will assist you in implementing image pixel tracking on your website to ensure accurate conversion tracking through the EZmob platform.

---

### Implementation Guide

#### Step 1: Copy Pixel Code from EZmob

1. Navigate to your EZmob dashboard at [Postbacks](https://dashboard.ezmob.com/advertiser/postbacks).
2. Select the **Image Pixel** tab.
3. Copy the provided pixel code.

*Tip: Consider adding a screenshot of the Image Pixel tab highlighting the pixel code copy area for visual guidance.*

---

#### Step 2: Understand Code Components

The pixel code consists of an `<img>` tag and may include optional JavaScript logic for enhanced tracking. The `src` attribute of the image tag contains the URL to the pixel, along with parameters for tracking conversions, such as `{click_id}`. This parameter will dynamically replace with the actual click ID when the pixel is activated.

**Example Code:**
```html
<img src="https://tracking.ezmob.com/pixel.gif?click_id=YOUR_CLICK_ID_PARAMETER" style="display:none;">
```

---

#### Step 3: Implement on Conversion Pages

* Paste the copied pixel code into the HTML of your conversion page(s), ideally just before the closing `</body>` tag.
* Ensure that the `click_id` parameter is dynamically replaced with the actual click ID captured by your tracking setup.

---

#### Step 4: Test Pixel Firing

1. Visit your conversion page where the pixel has been implemented.
2. Use browser developer tools (specifically the Network tab) to verify that the pixel.gif request is made upon conversion.
 
*Tip: Adding a screenshot of the browser developer tools showing the pixel.gif request can enhance understanding.*

---

#### Step 5: Verify Conversion Tracking in Dashboard

* Go to your EZmob dashboard at [Metrics](https://dashboard.ezmob.com/advertiser/metrics) to confirm that conversions are being accurately tracked.

---

### Advanced Implementation

* **Conditional Pixel Firing:** Utilize JavaScript to trigger the pixel only under specific conditions, such as a successful form submission.

  **Example:**
```javascript
  if (formSubmitSuccess) {
      document.body.appendChild(pixelElement);
  }
```

* **Multiple Conversion Tracking:** Implement multiple pixels for different conversion types, ensuring that each has a unique `click_id` parameter.

---

### Best Practices

* **Pixel Placement:** Place the pixel code as close to the user action confirmation as possible to ensure accurate tracking.
* **Loading Optimization:** Use `style="display:none;"` to prevent the pixel from affecting page layout or loading times.
* **Privacy Compliance:** Stay compliant with privacy regulations by informing users about tracking practices and obtaining necessary consents.

---

### Troubleshooting

* If conversions are not being tracked:
* Confirm that the pixel's `src` URL is correctly formatted and that the `click_id` parameter is properly replaced.
* Ensure that the pixel code remains unaltered during page edits.

---

## Related Articles

[Track conversions with EZmob Pixel](https://helpdesk.ezmob.com/en/article/track-conversions-with-ezmob-pixel-i68o1i)
[Setting Up Conversion Tracking with Postback URLs](https://helpdesk.ezmob.com/en/article/setting-up-conversion-tracking-with-postback-urls-13skgx1)
[Troubleshooting Conversion Tracking Issues](https://helpdesk.ezmob.com/en/article/troubleshooting-conversion-tracking-issues-15rhk9q)
[Welcome to EZmob's advertiser interface](https://helpdesk.ezmob.com/en/article/welcome-to-ezmobs-advertiser-interface-6bansc)
[EZmob Publisher : Getting Started](https://helpdesk.ezmob.com/en/article/ezmob-publisher-getting-started-8gyat6)
