This article covers the available options to track conversions in MGID Ads.
Introduction
There are a few options you can choose to track conversions.
- MGID Pixel (JS code): This is one effective way to track the performance of your campaigns. When a user clicks on your ad and lands on your website, the pixel records when the user performs the desired action, such as making a purchase. This data is then sent back to MGID, where it can be used to optimize your campaign and improve its performance. MGID pixel code allows you to display ads to visitors who have previously interacted with your site.
- MGID Pixel via GTM (Google Tag Manager): For those who don’t know how to code, Google Tag Manager allows you to implement the MGID pixel code to your site and set up conversions.
- Postback (S2S): Server-to-server integration reports a user's action on a website or app. Postback is the most precise method, as it allows you to track multiple conversions and usually requires a tracker.
For the MGID Pixel and MGID Pixel via GTM options, ensure that adclid parameter is transferred through all pages of the funnel for successful conversion tracking. The adclid parameter will be added to the link automatically.
MGID Pixel (JS code)
This option only works when you have access to the offer's page source code and can implement the JavaScript code.
- Open the campaign settings in the Dashboard and navigate to the Conversion tracking section.
- Activate the MGID Pixel option. Then, get the Pixel code.
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:
For Event code, enter the event name and click on the Get event code button. You will be able to choose from two options: onclick (script that fires when a user clicks on a specific button/area) or window script (script that fires when a specific page is loaded).
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 such in the tracking tags: adclida=beautiful.
You can learn more about our pixel installation and configuration of events on our blog.
Google Tag Manager (GTM)
If you wish to utilize Google Tag Manager on your website or if you have access to the GTM container already, you may use this quick and easy-to-use tracking option.
There is no need to copy/paste the JS pixel code from your MGID account if you are planning to set up Pixel with Google Tag Manager (GTM). Instead, select the MGID pixel template in the GTM Template Gallery.
Postback, S2S
If you don't have access to the offer's page source code, you can use a third-party tracking system to track your sales/leads/conversions/subscriptions/registrations, or you can utilize your own tracking tool for postbacks.
Our system requires that you include the {click_id} parameter in the tracking link. This is done to optimize the campaign's performance (increase/decrease the traffic from several sources) and track conversions successfully.
You can set a specific event in your system, and depending on the event (the action performed by the visitor), you can insert the required data in your postback URL. For instance, if the event is a lead, we would include the following data in the request URL: https://a.mgid.com/postback?c={click_id}&e=lead(+client ID)&r.
Where r is the amount of revenue (if applicable).