---
title: Track UTM Parameters and Click IDs using Google Tag Manager
description: Ensure UTM parameters and Click IDs are tracked on any click in managed digital properties with Google Tag Manger.
---

[Skip to content](https://knowledge.demand-iq.com/track-utm-parameters-google-tag-manager#main-content)

English

Show submenu for translations

[CONTACT SUPPORT](https://knowledge.demand-iq.com/kb-tickets/new?hsLang=en)

![Horizontal DIQ Logo with Wordmark light@3x.png\]](https://knowledge.demand-iq.com/hs-fs/hubfs/Horizontal%20DIQ%20Logo%20with%20Wordmark%20light@3x.png?height=36&name=Horizontal%20DIQ%20Logo%20with%20Wordmark%20light@3x.png)

Open main navigation

Close main navigation

- English
  
  Show submenu for translations
- [CONTACT SUPPORT](https://knowledge.demand-iq.com/kb-tickets/new)
- [Demand IQ](https://demand-iq.com/)

[Demand IQ](https://demand-iq.com/)

 Search the knowledge base...

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

1. [Knowledge Base](https://knowledge.demand-iq.com/?hsLang=en)
2. [Integrations](https://knowledge.demand-iq.com/integrations?hsLang=en)
3. [Google](https://knowledge.demand-iq.com/integrations?hsLang=en#google)

# Track UTM Parameters and Click IDs using Google Tag Manager

## Ensure UTM parameters and Click IDs are tracked on any click in managed digital properties with Google Tag Manger.

#### **What You'll Need**

- Admin access to your Google Tag Manager 
- [Template GTM Trigger](https://knowledge.demand-iq.com/hubfs/Template%20GTM%20Trigger?hsLang=en) 
- [Template GTM Tag](https://knowledge.demand-iq.com/hubfs/Template%20GTM%20Tag.html?hsLang=en)

If you're using buttons or other non-Demand IQ calls-to-action (CTAs) on your managed web properties such as your website or landing pages, you might be dropping critical marketing data contained in the URL parameters of clicks (such as UTM parameters) from tracking with the associated leads. 

**This article will show you how to pass UTM parameters, click IDs and other query parameters via button clicks to Demand IQ on any managed digital property where you can deploy Google Tag Manager. **

If you're only using Demand IQ-provided CTAs such as the banner or embedded versions of Demand IQ, this article does not apply to your marketing data. Demand IQ created widgets and snippets have this functionality natively integrated. 

### **Instructions**

### **Part 1: Edit Google Tag Manager Tag**

1. **Download** the [Template GTM Trigger](https://knowledge.demand-iq.com/hubfs/Template%20GTM%20Trigger?hsLang=en) and [Template GTM Tag](https://knowledge.demand-iq.com/hubfs/Template%20GTM%20Tag.html?hsLang=en).
2. **Open Template GTM Tag** in a code or text editor. Locate the URLs as shown in the red box below. 
3. **Enter your company domain** in each instances of *SOLARCOMPANY*. Your script should now look similar:

![Screen Shot 2022-07-28 at 2.32.24 PM](https://knowledge.demand-iq.com/hs-fs/hubfs/Screen%20Shot%202022-07-28%20at%202.32.24%20PM.png?width=688&name=Screen%20Shot%202022-07-28%20at%202.32.24%20PM.png)

### Part 2: Google Tag Manager - Tag Configuration

1. **Sign in** to your [Google Tag Manager](https://tagmanager.google.com/) account. 
2. Click **New Tag**, then Edit Tag Configuration (pencil icon) \> Custom HTML.
3. **Paste your edited script** into the HTML field.

![Screen Shot 2022-07-28 at 2.36.12 PM](https://knowledge.demand-iq.com/hs-fs/hubfs/Screen%20Shot%202022-07-28%20at%202.36.12%20PM.png?width=688&name=Screen%20Shot%202022-07-28%20at%202.36.12%20PM.png)

![Screen Shot 2022-07-28 at 2.39.36 PM](https://knowledge.demand-iq.com/hs-fs/hubfs/Screen%20Shot%202022-07-28%20at%202.39.36%20PM.png?width=688&name=Screen%20Shot%202022-07-28%20at%202.39.36%20PM.png)

### Part 3: Google Tag Manager - Trigger Configuration

Triggers occur when ALL conditions are met, meaning you'll need different triggers for various types of query parameters.

#### Trigger on UTM Parameter

1. Scroll to **Triggering \> Edit (pencil icon)**.
2. Click **Add New Trigger (+ icon)**. 
3. Select **Page View - DOM Ready** as the event trigger.
4. Add the other settings as found in [Template UTM Trigger](https://knowledge.demand-iq.com/hubfs/Template%20GTM%20Trigger?hsLang=en): 
     1. Some DOM events, Page URL, matches RegEx (ignore case), utm\_(medium|source|campaign|term|content)= 
5. **Save changes** to the trigger. 

![Screen Shot 2022-07-28 at 2.47.56 PM](https://knowledge.demand-iq.com/hs-fs/hubfs/Screen%20Shot%202022-07-28%20at%202.47.56%20PM.png?width=688&name=Screen%20Shot%202022-07-28%20at%202.47.56%20PM.png)

#### Trigger on FBCLID or GCLID Parameter

1. **Add a new Trigger** in Google Tag Manager. 
2. Select **Page View - DOM Ready** as the event trigger.
3. Select "Page URL" contains "fbclid" or "gclid" for Meta and Google respectively. 
4. **Save changes** to the trigger. 
5. **Apply to the Trigger to the Tag** you created in Part 2. 

![Screen Shot 2023-12-18 at 10.15.52 AM](https://knowledge.demand-iq.com/hs-fs/hubfs/Screen%20Shot%202023-12-18%20at%2010.15.52%20AM.png?width=688&height=360&name=Screen%20Shot%202023-12-18%20at%2010.15.52%20AM.png)

![Screen Shot 2023-12-18 at 10.16.08 AM](https://knowledge.demand-iq.com/hs-fs/hubfs/Screen%20Shot%202023-12-18%20at%2010.16.08%20AM.png?width=688&height=356&name=Screen%20Shot%202023-12-18%20at%2010.16.08%20AM.png)

 

**You’re all set!** UTM parameters will now be passed to Demand IQ on button clicks by decorating the link with any existing UTM parameters or click IDs. 

 

- [Getting Started](https://knowledge.demand-iq.com/getting-started?hsLang=en#main-content)

    - [Configure Your Tool](https://knowledge.demand-iq.com/getting-started?hsLang=en#configure-your-tool)
    - [Integrate Your Website](https://knowledge.demand-iq.com/getting-started?hsLang=en#integrate-your-website)
- [Integrations](https://knowledge.demand-iq.com/integrations?hsLang=en#main-content)

    - [Google](https://knowledge.demand-iq.com/integrations?hsLang=en#google)
    - [Zapier](https://knowledge.demand-iq.com/integrations?hsLang=en#zapier)
- [HERO](https://knowledge.demand-iq.com/hero?hsLang=en#main-content)

    - [Getting Started with Hero](https://knowledge.demand-iq.com/hero?hsLang=en#getting-started-with-hero)
    - [Using the Hero App](https://knowledge.demand-iq.com/hero?hsLang=en#using-the-hero-app)
    - [Hero Admin Portal](https://knowledge.demand-iq.com/hero?hsLang=en#hero-admin-portal)
    - [Hero Integrations](https://knowledge.demand-iq.com/hero?hsLang=en#hero-integrations)
- [Legacy Journeys (Stella)](https://knowledge.demand-iq.com/legacy-journeys-stella?hsLang=en#main-content)

    - [Billing](https://knowledge.demand-iq.com/legacy-journeys-stella?hsLang=en#billing)
    - [Integrations](https://knowledge.demand-iq.com/legacy-journeys-stella?hsLang=en#integrations)
- [Best Practices](https://knowledge.demand-iq.com/best-practices?hsLang=en#main-content)

    - [Performance Marketing Tracking](https://knowledge.demand-iq.com/best-practices?hsLang=en#performance-marketing-tracking)
    - [Demand IQ Landing Page](https://knowledge.demand-iq.com/best-practices?hsLang=en#demand-iq-landing-page)

[![Chill listening crop-3](https://knowledge.demand-iq.com/hs-fs/hubfs/Marketing%20Services/Demand%20IQ%20Wide.png?width=224&height=55&name=Demand%20IQ%20Wide.png "Chill listening crop-3")](https://portal.demand-iq.com)

Demand IQ © 2021. All Rights Reserved.

Copyright © 2026, Demand IQ