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

2. Direct_installation

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

3. Direct_installation

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

  • 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

You can learn more about our pixel installation and configuration of events on our blog.