---
title: "MGID Pixel via Google Tag Manager: URL-based conversions"
description: "Follow these simple steps to set up MGID Pixel via Google Tag Manager (GTM):  2. During the conversion tracking setup, select MGID Pixel via GTM as your preferred tracking method and save the campaign"
---

[Skip to content](https://help.mgid.com/mgid-pixel-via-google-tag-manager-url-based-conversions#main-content)

- [English](https://help.mgid.com/mgid-pixel-via-google-tag-manager-url-based-conversions)
- [Italiano](https://help.mgid.com/it/mgid-pixel-tramite-google-tag-manager-conversioni-basate-su-url)
- [Português - Brasil](https://help.mgid.com/pt-br/mgid-pixel-via-google-tag-manager-conversões-baseadas-em-url)

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](https://help.mgid.com/mgid-pixel-via-google-tag-manager-url-based-conversions)
    - [Italiano](https://help.mgid.com/it/mgid-pixel-tramite-google-tag-manager-conversioni-basate-su-url)
    - [Português - Brasil](https://help.mgid.com/pt-br/mgid-pixel-via-google-tag-manager-conversões-baseadas-em-url)

  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 via Google Tag Manager: URL-based conversions

Follow these simple steps to set up MGID Pixel via Google Tag Manager (GTM):

1. Open MGID Ads Dashboard and either create or edit a campaign.

![1.GTM\_URL](https://help.mgid.com/hs-fs/hubfs/1.%20Help%20Center%20(website)/Advertisers/1.%20English%20language%20articles/MGID%20Pixel%20via%20GTM/URL-based/1.GTM_URL.png?width=670&height=366&name=1.GTM_URL.png)

2\. During the conversion tracking setup, select Pixel as your preferred tracking method. Select how to add a pixel: Google Tag Manager.  Save the campaign.

![Pixel\_via\_GTM\_new](https://help.mgid.com/hs-fs/hubfs/1.%20Help%20Center%20(website)/Advertisers/1.%20English%20language%20articles/MGID%20Pixel%20via%20GTM/URL-based/Pixel_via_GTM_new.png?width=670&height=344&name=Pixel_via_GTM_new.png)

 

### Configuring Conversion Tracking in Google Tag Manager

1\. Log in to your Google Tag Manager account.

After creating a GTM container for your website, the first step in configuring conversion tracking is to add the MGID Pixel code to all pages. If you have previously used the MGID Pixel template and see a notification like the one in the screenshot below, update the template before proceeding.

![3.GTM\_URL](https://help.mgid.com/hs-fs/hubfs/1.%20Help%20Center%20(website)/Advertisers/1.%20English%20language%20articles/MGID%20Pixel%20via%20GTM/URL-based/3.GTM_URL.png?width=670&height=283&name=3.GTM_URL.png)

2\. Navigate to the Tags section and then click New.

![4.GTM\_URL](https://help.mgid.com/hs-fs/hubfs/1.%20Help%20Center%20(website)/Advertisers/1.%20English%20language%20articles/MGID%20Pixel%20via%20GTM/URL-based/4.GTM_URL.png?width=670&height=393&name=4.GTM_URL.png)

3\. Add the Tag name (e.g., MGID Pixel) and click the pencil icon to edit the tag configuration.

![5.GTM\_URL](https://help.mgid.com/hs-fs/hubfs/1.%20Help%20Center%20(website)/Advertisers/1.%20English%20language%20articles/MGID%20Pixel%20via%20GTM/URL-based/5.GTM_URL.png?width=670&height=356&name=5.GTM_URL.png)

4\. Navigate to the Template Gallery and enter MGID in the search bar. Then, select MGID Pixel. 

![6.GTM\_URL](https://help.mgid.com/hs-fs/hubfs/1.%20Help%20Center%20(website)/Advertisers/1.%20English%20language%20articles/MGID%20Pixel%20via%20GTM/URL-based/6.GTM_URL.png?width=670&height=361&name=6.GTM_URL.png)

5\. Next, fill in the **MGID Client ID** field (locate your MGID Client ID by clicking on your profile icon within the MGID Ads dashboard) and select the **Base Pixel** option.

![7.GTM\_URL](https://help.mgid.com/hs-fs/hubfs/1.%20Help%20Center%20(website)/Advertisers/1.%20English%20language%20articles/MGID%20Pixel%20via%20GTM/URL-based/7.GTM_URL.png?width=670&height=350&name=7.GTM_URL.png)

6\. In the **Triggering** section, choose **All Pages** (Page view trigger type).

![8.GTM\_URL](https://help.mgid.com/hs-fs/hubfs/1.%20Help%20Center%20(website)/Advertisers/1.%20English%20language%20articles/MGID%20Pixel%20via%20GTM/URL-based/8.GTM_URL.png?width=670&height=369&name=8.GTM_URL.png)

7\. Click Save to save changes.

![9.GTM\_URL](https://help.mgid.com/hs-fs/hubfs/1.%20Help%20Center%20(website)/Advertisers/1.%20English%20language%20articles/MGID%20Pixel%20via%20GTM/URL-based/9.GTM_URL.png?width=670&height=364&name=9.GTM_URL.png)

### Configuring URL-Based Conversion in Google Tag Manager

1\. To create a **URL-based conversion** in Google Tag Manager, navigate to the **Tags** section and then click New.

![10.GTM\_URL](https://help.mgid.com/hs-fs/hubfs/1.%20Help%20Center%20(website)/Advertisers/1.%20English%20language%20articles/MGID%20Pixel%20via%20GTM/URL-based/10.GTM_URL.png?width=670&height=393&name=10.GTM_URL.png)

2\. Add the Tag name and click on the pencil icon to edit the tag configuration.

![11.GTM\_URL](https://help.mgid.com/hs-fs/hubfs/1.%20Help%20Center%20(website)/Advertisers/1.%20English%20language%20articles/MGID%20Pixel%20via%20GTM/URL-based/11.GTM_URL.png?width=670&height=356&name=11.GTM_URL.png)

3\. Navigate to the Template Gallery and enter MGID in the search bar. Then, select MGID Pixel. 

![12.GTM\_URL](https://help.mgid.com/hs-fs/hubfs/1.%20Help%20Center%20(website)/Advertisers/1.%20English%20language%20articles/MGID%20Pixel%20via%20GTM/URL-based/12.GTM_URL.png?width=670&height=361&name=12.GTM_URL.png)

4\. Fill in the MGID Client ID field and choose the Main goal under the Event Pixel option.

This process mirrors the MGID Ads Dashboard settings — the main goal is the bottom of your funnel. You have the flexibility to define **additional goals** to track mid-funnel and top-funnel conversions as well.

![13.GTM\_URL](https://help.mgid.com/hs-fs/hubfs/1.%20Help%20Center%20(website)/Advertisers/1.%20English%20language%20articles/MGID%20Pixel%20via%20GTM/URL-based/13.GTM_URL.png?width=670&height=350&name=13.GTM_URL.png)

5\. In the **Triggering** section, select the **Page URL** trigger from the list. 

If you are unable to find a suitable trigger within the list, simply click the “+” icon to create a custom trigger that fits your needs.

![14.GTM\_URL](https://help.mgid.com/hs-fs/hubfs/1.%20Help%20Center%20(website)/Advertisers/1.%20English%20language%20articles/MGID%20Pixel%20via%20GTM/URL-based/14.GTM_URL.png?width=670&height=383&name=14.GTM_URL.png)

6\. Add the trigger name and select the Page View trigger type for it.

![15.GTM\_URL](https://help.mgid.com/hs-fs/hubfs/1.%20Help%20Center%20(website)/Advertisers/1.%20English%20language%20articles/MGID%20Pixel%20via%20GTM/URL-based/15.GTM_URL.png?width=670&height=368&name=15.GTM_URL.png)

7\. At this stage, you need to determine which part of the link (or the entire link) will be used for the trigger. 

![16.GTM\_URL](https://help.mgid.com/hs-fs/hubfs/1.%20Help%20Center%20(website)/Advertisers/1.%20English%20language%20articles/MGID%20Pixel%20via%20GTM/URL-based/16.GTM_URL.png?width=670&height=30&name=16.GTM_URL.png)

8\. Complete the fields as shown below, replacing the placeholders with your actual data, then click Save to confirm your settings.

Once all steps are completed, here’s how the configured tag should appear if it's set up correctly.

![17.GTM\_URL](https://help.mgid.com/hs-fs/hubfs/1.%20Help%20Center%20(website)/Advertisers/1.%20English%20language%20articles/MGID%20Pixel%20via%20GTM/URL-based/17.GTM_URL.png?width=670&height=362&name=17.GTM_URL.png)

To apply any changes made within your container, be sure to click Submit.

![19.GTM\_URL](https://help.mgid.com/hs-fs/hubfs/1.%20Help%20Center%20(website)/Advertisers/1.%20English%20language%20articles/MGID%20Pixel%20via%20GTM/URL-based/19.GTM_URL.png?width=670&height=359&name=19.GTM_URL.png)

 

- [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.