---
title: MGID Pixel (JS code) Direct Installation
description: "This conversion tracking method only works when you have access to the offer's page source code and can implement the JavaScript code. Activate the Pixel tracking method.  Select how to add pixel: Man"
---

[Skip to content](https://help.mgid.com/mgid-pixel-js-code-direct-installation#main-content)

English

Show submenu for translations

![MGID\_Logo\_Help\_Center\_W\_R\_Swoosh.svg\]](https://help.mgid.com/hubfs/MGID_Logo_Help_Center_W_R_Swoosh.svg)

- [Advertisers](https://www.mgid.com/advertisers)
- [Publishers](https://www.mgid.com/publishers)
- [Contact Us](https://www.mgid.com/about#tabs-contactus)

Open main navigation

Close main navigation

- [Advertisers](https://www.mgid.com/advertisers)
- [Publishers](https://www.mgid.com/publishers)
- [Contact Us](https://www.mgid.com/about#tabs-contactus)
- English
  
  Show submenu for translations
- Contact us

 Contact us

 Welcome to MGID! How can we help you?

- There are no suggestions because the search field is empty.

1. [Help Center Home](https://help.mgid.com/?hsLang=en)
2. [Advertisers](https://help.mgid.com/advertisers?hsLang=en)
3. [Tracking with MGID Pixel](https://help.mgid.com/advertisers?hsLang=en#tracking-with-mgid-pixel)

# MGID Pixel (JS code) Direct Installation

This conversion tracking method only works when you have access to the offer's page source code and can implement the JavaScript code.

1. While setting up a campaign, navigate to the Conversion tracking section.
2. Activate the **Pixel** tracking method.  Select how to add pixel: **Manually**. Then, click **Get pixel code**.

![1. Direct\_installation](https://help.mgid.com/hs-fs/hubfs/1.%20Help%20Center%20(website)/Advertisers/1.%20English%20language%20articles/MGID%20Pixel%20via%20GTM/1.%20Direct_installation.png?width=688&height=358&name=1.%20Direct_installation.png)

![2. Direct\_installation](https://help.mgid.com/hs-fs/hubfs/1.%20Help%20Center%20(website)/Advertisers/1.%20English%20language%20articles/MGID%20Pixel%20via%20GTM/2.%20Direct_installation.png?width=688&height=359&name=2.%20Direct_installation.png)

3\. Ensure that the Pixel JavaScript code is *placed in the source code for all targeted pages*, starting from your Landing Page and ending with the Target page (e.g., “thank you”) of the promoted website. 

Place the Pixel JavaScript code high up in the web page’s body. This helps to avoid statistical discrepancies. 

4\. Set your Goals and add them to the conversion settings section to receive performance statistics.

For example, by selecting URL Contains option, you can set the **Thank you page** URL as a final sale page in your funnel and track it. See the example below:

![Available\_track\_opt\_3](https://help.mgid.com/hs-fs/hubfs/1.%20Help%20Center%20(website)/Advertisers/1.%20English%20language%20articles/Available%20Tracking%20Options/Available_track_opt_3.png?width=512&height=93&name=Available_track_opt_3.png)

![3. Direct\_installation](https://help.mgid.com/hs-fs/hubfs/1.%20Help%20Center%20(website)/Advertisers/1.%20English%20language%20articles/MGID%20Pixel%20via%20GTM/3.%20Direct_installation.png?width=688&height=361&name=3.%20Direct_installation.png)

When using event-based conversions, additional snippet codes must be placed below the base Pixel in your website code (in case of direct installation).

For the Event goal type, simply enter the event name and the system will automatically generate the Page load and Click-based tracking codes.

![4. Direct\_installation](https://help.mgid.com/hs-fs/hubfs/1.%20Help%20Center%20(website)/Advertisers/1.%20English%20language%20articles/MGID%20Pixel%20via%20GTM/4.%20Direct_installation.png?width=688&height=361&name=4.%20Direct_installation.png)

- **Page load tracking code** —tracks page views (similar to URL-based conversions). It’s typically used when URL-based tracking isn’t supported by an external integration tool, or page load tracking is the client’s preferred method.
- **Click-based tracking code (onclick)** — tracks clicks on specific page elements (e.g., buttons or links). Use it when a conversion is defined by an action rather than a page load. To connect this snippet directly to a specific element, a developer’s help may be required to identify and properly link it. However, this is rarely needed. In most cases, event-based conversions for specific actions are set up via external tools such as Campaign Manager 360 or Google Tag Manager (GTM). If you use GTM, additional snippet codes are not required, as all configuration happens directly within GTM.

Neither the Page Load nor Click-Based tracking codes will function without the base Pixel placed above them in the site code.

### Adclid/Adclida parameter

In the event you have a **specific parameter name** for our click\_id macro , our system will automatically add our tracking parameter **adclida**. You can see an example of this in the screenshot below. The parameter name “beautiful” is displayed alongside the tracking parameter adclida and would appear as such in the tracking tags: adclida=beautiful.

![5. Direct\_installation](https://help.mgid.com/hs-fs/hubfs/1.%20Help%20Center%20(website)/Advertisers/1.%20English%20language%20articles/MGID%20Pixel%20via%20GTM/5.%20Direct_installation.png?width=688&height=359&name=5.%20Direct_installation.png)

You can learn more about our pixel installation and configuration of events on our [blog.](https://www.mgid.com/blog/tracking-conversions-on-the-mgid-platform) 

- [Advertisers](https://help.mgid.com/advertisers?hsLang=en#main-content)

    - [Get started with MGID Ads](https://help.mgid.com/advertisers?hsLang=en#get-started-with-mgid-ads)
    - [Campaign Setup & Management](https://help.mgid.com/advertisers?hsLang=en#campaign-setup-management)
    - [CPA Tune](https://help.mgid.com/advertisers?hsLang=en#cpa-tune)
    - [Conversion tracking: general](https://help.mgid.com/advertisers?hsLang=en#conversion-tracking-general)
    - [Tracking with MGID Pixel](https://help.mgid.com/advertisers?hsLang=en#tracking-with-mgid-pixel)
    - [Postback & Trackers](https://help.mgid.com/advertisers?hsLang=en#postback-trackers)
    - [Affiliate Networks Integration](https://help.mgid.com/advertisers?hsLang=en#affiliate-networks-integration)
    - [Webhook tracking method & Integrations](https://help.mgid.com/advertisers?hsLang=en#webhook-tracking-method-integrations)
    - [Native integrations](https://help.mgid.com/advertisers?hsLang=en#native-integrations)
    - [Ad Creatives Management](https://help.mgid.com/advertisers?hsLang=en#ad-creatives-management)
    - [Campaign Optimization & Performance](https://help.mgid.com/advertisers?hsLang=en#campaign-optimization-performance)
    - [FAQ](https://help.mgid.com/advertisers?hsLang=en#faq)
    - [MGID Video Guides](https://help.mgid.com/advertisers?hsLang=en#mgid-video-guides)
- [Publishers](https://help.mgid.com/publishers?hsLang=en#main-content)

    - [General](https://help.mgid.com/publishers?hsLang=en#general)
    - [Prohibited content and practices](https://help.mgid.com/publishers?hsLang=en#prohibited-content-and-practices)
    - [Types of integration](https://help.mgid.com/publishers?hsLang=en#types-of-integration)
    - [Compliance](https://help.mgid.com/publishers?hsLang=en#compliance)
    - [Payment](https://help.mgid.com/publishers?hsLang=en#payment)
    - [FAQ](https://help.mgid.com/publishers?hsLang=en#faq)
- [Ad Quality Policies and Creative Guidelines](https://help.mgid.com/ad-quality-policies-and-creative-guidelines?hsLang=en#main-content)

    - [Ad Approval & Compliance Guidelines](https://help.mgid.com/ad-quality-policies-and-creative-guidelines?hsLang=en#ad-approval-compliance-guidelines)
    - [Creative AI Hub](https://help.mgid.com/ad-quality-policies-and-creative-guidelines?hsLang=en#creative-ai-hub)
    - [Creative Hub](https://help.mgid.com/ad-quality-policies-and-creative-guidelines?hsLang=en#creative-hub)
    - [Compliance & Security](https://help.mgid.com/ad-quality-policies-and-creative-guidelines?hsLang=en#compliance-security)
- [Advertisers Super Client Account](https://help.mgid.com/advertisers-super-client-account?hsLang=en#main-content)

    - [Clients](https://help.mgid.com/advertisers-super-client-account?hsLang=en#clients)
- [Fraud Prevention](https://help.mgid.com/fraud-prevention?hsLang=en#main-content)

    - [Fraud Prevention](https://help.mgid.com/fraud-prevention?hsLang=en#fraud-prevention)
- [API](https://help.mgid.com/api?hsLang=en)
- [DSP](https://help.mgid.com/dsp?hsLang=en)
- [SSP](https://help.mgid.com/ssp?hsLang=en)

- [Advertisers](https://www.mgid.com/advertisers)
- [Publishers](https://www.mgid.com/publishers)
- [Contact Us](https://www.mgid.com/about#tabs-contactus)

[![Chill listening crop-3](https://help.mgid.com/hubfs/MGID_Logo_Icon_HC.svg "Chill listening crop-3")](https://www.mgid.com)

Native performance through innovation

<https://facebook.com/mgidglobal/> <https://twitter.com/mgid/> <https://www.linkedin.com/company/mgid-inc->

Copyright © 2026, MGID Inc.