GTM Overview

Google Tag Manager (GTM) is a tag management system that allows you to deploy and manage marketing tags on your website without modifying code. Using GTM to deploy Bing Ads UET tags provides flexibility and centralized management.

Prerequisites

  • Google Tag Manager container installed on your website
  • Microsoft Advertising account with UET tag ID
  • Admin access to GTM container

Deployment Steps

Step 1: Get UET Tag ID

In Microsoft Advertising, go to Tools → UET tags. Note your UET tag ID (a numeric ID like 123456789).

Step 2: Create Tag in GTM

  1. In GTM, go to "Tags" → "New"
  2. Name the tag (e.g., "Bing Ads UET - Page View")
  3. Choose tag type: "Custom HTML" or use the built-in Microsoft Advertising UET tag template
  4. If using Custom HTML, paste the UET tag JavaScript

Step 3: Configure Trigger

Set the trigger to "All Pages" (or "Window Loaded") for the base page view tag.

Step 4: Create Conversion Event Tags

Create separate tags for each conversion event:

Tag NameTriggerCustom HTML
UET - PurchaseThank You Page URLuetq.push({event: 'purchase', ...})
UET - Add to CartClick on Add to Cart buttonuetq.push({event: 'add_to_cart', ...})
UET - LeadForm submissionuetq.push({event: 'lead', ...})

Step 5: Publish and Verify

  1. Click "Submit" in GTM to publish changes
  2. Use UET Tag Helper extension to verify tags fire correctly
  3. Check "Preview" mode in GTM to debug tag firing

Custom HTML Example

<script>
window.uetq = window.uetq || [];
window.uetq.push({
  'ec': 'purchase',
  'ea': 'order_complete',
  'el': 'Order #' + orderId,
  'ev': orderValue,
  'gv': orderValue,
  'gc': 'USD'
});
</script>

Advantages of GTM Deployment

  • No code changes needed: Deploy and update tags from GTM interface
  • Version control: Roll back tag changes easily
  • Testing: Preview mode for debugging before publishing
  • Centralized management: Manage all marketing tags in one place
Related: For platform-specific UET deployment guides, see Shopify Plus, Shoplazza, Shopline, and WordPress.

Related Articles


← Back to Home