Google Tag Manager (GTM) is a tag management system that lets you add, edit, and fire marketing and analytics tags on your website without editing the site code each time. You install one container snippet once, then manage everything else (Google Analytics, Google Ads conversions, Meta Pixel, remarketing tags) from a web dashboard. For UAE businesses running paid campaigns, this means deploying conversion tracking in hours instead of waiting on a developer for every change.
This guide covers the full setup: creating a container, installing the snippets, understanding tags, triggers, and variables, wiring GA4 and Google Ads conversion tracking, testing, handling consent, and publishing. The steps are the same on WordPress, Shopify, Salla, Zid, or a custom React build.
What is Google Tag Manager and how is it different from Google Analytics?
Google Tag Manager is the delivery system. Google Analytics is one of the things it delivers.
GTM holds your tags and decides when they fire. Google Analytics 4 (GA4) is a tag that GTM can load, which then collects and reports website traffic and behavior. You can run GA4 without GTM by pasting its code directly, but GTM is the better choice when you plan to run more than one tracking tool. It keeps every tag in one place, gives you version control, and lets you change tracking logic without touching the site. Google Analytics, Google Ads conversion tags, and Meta Pixel are all separate tags living inside one GTM container.
How do I create a GTM container and install the snippets?
A container is the box that holds all your tags for one website. Each website (or app) gets its own container.
-
Go to
tagmanager.google.comand sign in with your Google account. -
Click Create Account. Enter your company name and set the country to United Arab Emirates.
-
Under Container name, enter your domain (for example
bigalc.ae). Set the target platform to Web. -
Accept the terms. GTM shows two code snippets and a container ID that looks like
GTM-XXXXXXX.
Install both snippets on every page. The first goes high in the <head>. The second goes immediately after the opening <body> tag as a fallback for browsers that block JavaScript.
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-XXXXXXX');</script>
<!-- End Google Tag Manager -->
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-XXXXXXX"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
On WordPress use a header-and-footer or GTM plugin instead of editing theme files. On Shopify, Salla, or Zid, use the theme code editor or script settings. If you run paid campaigns and need this done properly, our performance marketing team handles the install and QA.
What are tags, triggers, and variables?
These are the three building blocks of GTM. Every setup is made of them.
Tags are the snippets of code that do something: send data to a tool or load a pixel. Examples: a GA4 event tag, a Google Ads conversion tag, a Meta Pixel tag.
Triggers are the rules that tell a tag when to fire. A trigger listens for an event such as a page load, a button click, a form submission, or a scroll. Every tag needs at least one trigger, or it never runs.
Variables are the values GTM reads or reuses: your GA4 Measurement ID, the text of a clicked button, or a purchase value from the page.
In short: a trigger fires a tag, and the tag uses variables to know what data to send.
Built-in variables vs user-defined variables
Built-in variables ship with GTM and cover common values: Page URL, Page Path, Click Text, Click URL, Form ID, and similar. You switch them on from the Variables screen rather than building them.
User-defined variables are the ones you create for your own needs. Common types include a Constant (a fixed value like a conversion ID) and a Data Layer Variable (reads a value your site pushes into the dataLayer). You create these when no built-in variable exists, such as an order total on a thank-you page.
How do I set up GA4 through GTM?
GA4 in GTM uses two kinds of tags: one configuration tag and any number of event tags. The configuration uses the Google Tag tag type:
-
In your GA4 property (
analytics.google.com), copy the Measurement ID. It looks likeG-XXXXXXXXXX. -
In GTM, create a Tags entry, choose Google Tag, and paste the Measurement ID.
-
Set the trigger to Initialization - All Pages so it loads first on every page.
That single tag starts sending pageviews to GA4. To track a specific action, add an event tag:
-
Create a tag of type Google Analytics: GA4 Event.
-
Enter an event name such as
generate_leadorcontact_click. -
Add a trigger. For a form, use a Form Submission trigger. For a button, use a Click trigger filtered to that button.
Tag: GA4 Event
Event: generate_lead
Trigger: Form Submission (Form ID equals contact-form)
Decide on an event naming pattern before you build, so your GA4 reports stay clean.
How do I add a Google Ads conversion tag and conversion linker?
Google Ads conversion tracking needs two tags working together: the conversion tracking tag and the conversion linker. Skipping the linker is one of the most common reasons UAE advertisers see fewer conversions than they should.
The conversion linker reads the ad click identifier (the GCLID) from the landing page URL and stores it in a first-party cookie. Without it, Google Ads cannot connect a later conversion back to the click that paid for it.
-
In Google Ads, create a conversion action and copy the Conversion ID and Conversion Label.
-
In GTM, create a tag of type Conversion Linker and set its trigger to All Pages. It only needs to exist once.
-
Create a tag of type Google Ads Conversion Tracking. Enter the Conversion ID and Conversion Label.
-
Trigger the conversion tag on the completed action, for example the thank-you page load or form submission.
Tag 1: Conversion Linker Trigger: All Pages
Tag 2: Google Ads Conversion Trigger: Page View (Page Path equals /thank-you)
To send an order value, create a Data Layer Variable that reads the value your site pushes, then map it into the conversion tag. For a deeper account walk-through, see our Google Ads Dubai service, and for stores wiring purchase tracking, our e-commerce development team sets up the dataLayer correctly.
How do I test tags with Preview mode?
Preview mode lets you see exactly which tags fire before real visitors do. Always test here before publishing.
-
In GTM, click Preview (top right).
-
Enter your website URL and click Connect. Your site opens with a debug badge, and Tag Assistant opens alongside it.
-
Click through your site: load pages, submit the form, complete a test purchase.
-
In Tag Assistant, each event shows Tags Fired and Tags Not Fired. Confirm your GA4 tag fires on page load and your conversion tag fires only on the thank-you step.
You can also use the Google Ads conversion diagnostics inside the account to confirm the tag reports back. If you did not see a tag fire in Preview, treat it as not working.
What is Consent Mode v2 and do UAE sites need it?
Consent Mode v2 is a Google framework that adjusts how tags behave based on whether a visitor has consented to analytics and advertising cookies.
It is mandatory for advertisers serving the European Economic Area and the UK. It is not legally forced on UAE-only audiences today, but the UAE Personal Data Protection Law (PDPL) sets real expectations around consent, and many UAE sites also receive EEA traffic. A consent banner with Consent Mode is the safe default.
In practice, a consent management platform (CMP) sets consent signals and GTM reads them. When advertising consent is denied, Google tags send cookieless pings (a modeled, privacy-safe signal) rather than firing fully. You configure this by enabling consent checks on your tags and connecting a CMP through GTM's consent settings.
How do I publish a version in GTM?
Nothing you build goes live until you publish. Preview changes are only visible to you.
-
Click Submit (top right).
-
Give the version a clear name and description, for example
GA4 + Ads conversion setup. -
Click Publish.
GTM saves every publish as a numbered version. If a new version breaks tracking, open the Versions screen and roll back in a few clicks. Name every version, because a blank changelog is useless three months later.
What are the most common GTM mistakes to avoid?
- Double-tagging. Running GA4 both hardcoded and again through GTM inflates pageviews and corrupts data. Pick one method; if you use GTM, remove the hardcoded tag.
- Firing tags on all pages by mistake. A conversion tag set to All Pages counts every pageview as a conversion. Trigger conversion tags only on the completion step.
- Missing the conversion linker. Without it, Google Ads loses attribution and reports fewer conversions, which starves smart bidding of data.
- No naming convention. Vague names like "Tag 1" and inconsistent event names make the container impossible to maintain.
- Publishing without Preview. Always test in Preview mode first.
Clean tracking is the foundation of every profitable campaign. If your GA4 numbers and ad platform numbers never agree, the fix is almost always in the tags. Our Meta ads and Google teams audit and rebuild tracking as part of every engagement.
Frequently Asked Questions
Does Google Tag Manager cost anything?
The standard version of Google Tag Manager carries no license cost for the vast majority of websites. You only pay for the tools you deploy through it, and Google Analytics 4 also has no standard license cost. A paid enterprise tier (Tag Manager 360) exists for very large organizations, but standard GTM covers what most UAE businesses need.
Do I still need Google Analytics if I have GTM?
Yes. GTM does not collect or report any data on its own; it only fires tags. You still need a Google Analytics 4 property to receive and report data, and GTM is what loads the GA4 tag onto your pages. They work together, not as substitutes.
Where do I put the GTM code on my website?
The first snippet goes as high as possible inside the <head> of every page. The second (noscript) snippet goes right after the opening <body> tag. Both must be on every page you want to track. On WordPress, Shopify, Salla, or Zid you can add them through a plugin or the theme's script settings.
Why is my Google Ads conversion tracking not working?
The most common cause is a missing conversion linker. Without a Conversion Linker firing on all pages, Google Ads cannot store the click identifier and cannot attribute conversions. Check that you have both the Conversion Linker (on All Pages) and the conversion tag (on the completion step), and confirm both fire in Preview mode.
What is the dataLayer in GTM?
The dataLayer is a JavaScript object that holds information your site passes to GTM, such as a purchase value, a product ID, or a user action. Your site pushes values into it, and GTM reads them through Data Layer Variables. It is how dynamic values like order totals reach your tags.
How do I know if my tags are firing correctly?
Use Preview mode. Click Preview in GTM, connect to your site, and interact with it while Tag Assistant shows which tags fired on each event. For conversions, also confirm the status inside Google Ads or GA4 after a test action. Never assume a tag works without seeing it fire.
Can I use one GTM container for multiple websites?
It is possible but not recommended. Best practice is one container per website. Sharing a container across sites mixes triggers and variables, makes debugging harder, and risks firing the wrong tag on the wrong domain. Create a separate container per site and manage them under one GTM account.
Related
Sources & References
Official references used in this article.
Frequently Asked Questions
Q. Does Google Tag Manager cost anything?
The standard version of Google Tag Manager carries no license cost for the vast majority of websites. You only pay for the tools you deploy through it. A paid enterprise tier (Tag Manager 360) exists for very large organizations, but standard GTM covers what most UAE businesses need.
Q. Do I still need Google Analytics if I have GTM?
Yes. GTM does not collect or report any data on its own. It only fires tags. You still need a Google Analytics 4 property to receive and report data, and GTM is what loads the GA4 tag onto your pages. They work together, not as substitutes.
Q. Where do I put the GTM code on my website?
The first snippet goes as high as possible inside the head of every page. The second noscript snippet goes right after the opening body tag. Both must be on every page you want to track. On WordPress, Shopify, Salla, or Zid you can add them through a plugin or the theme's script settings.
Q. Why is my Google Ads conversion tracking not working?
The most common cause is a missing conversion linker tag. Without a Conversion Linker firing on all pages, Google Ads cannot store the click identifier and cannot attribute conversions. Check that you have both the Conversion Linker on All Pages and the conversion tag on the completion step, and confirm both fire in Preview mode.
Q. What is the dataLayer in GTM?
The dataLayer is a JavaScript object that holds information your site passes to GTM, such as a purchase value, a product ID, or a user action. Your site pushes values into it, and GTM reads them through Data Layer Variables. It is how dynamic values like order totals reach your conversion and analytics tags.
Q. How do I know if my tags are firing correctly?
Use Preview mode. Click Preview in GTM, connect to your site, and interact with it while Tag Assistant shows which tags fired on each event. For conversions, also confirm the status inside the Google Ads or GA4 interface after a test action. Never assume a tag works without seeing it fire.
Want a complimentary audit of your Google Ads or Meta Ads account?
30-minute call. We review your account, point out the 3 biggest leaks, and tell you exactly what to fix, whether you hire us or not.
Google Partner · UAE & KSA · Arabic + English