Most Malaysian SME websites collect tracking code the way a drawer collects receipts. A web designer pasted the Google Analytics code in 2021, a freelancer added the Meta Pixel through a plugin, and someone else stuck a Google Ads tag into the footer. Nobody knows which one is still working, and every change means waiting for a developer. Google Tag Manager (GTM) fixes that by giving you one container that holds every tag, with a test mode and a version history.
This guide from IZI Digital Marketing walks through a Google Tag Manager setup step by step, with what to check at each stage, using Google’s and Meta’s own documentation. If you want the wider picture of how tracking feeds budget and conversion decisions, our analytics and CRO service page explains how we approach measurement.
Not sure what tracking is already on your site?
Send us your website address. We will list every tag we can find, which ones are duplicated, and which ones should move into Tag Manager. Ask for a tag inventory
The short video below, from Google Analytics’ own channel, shows GA4 being connected through Tag Manager. Watch it for the screens, then use the sections that follow for the decisions and the checks.
Setting Up GA4 With Google Tag Manager
Source video: Watch on YouTube
PART 1 · DIAGNOSE
Do You Need Google Tag Manager at All?
IN BRIEFYou need Tag Manager once you run more than one tracking tool or plan to track actions beyond page views, such as form submissions and WhatsApp clicks. A site with only GA4 and no ads can live without it. If your GA4 numbers already look wrong, start with why GA4 direct traffic runs too high.
Tag Manager does no tracking of its own. Think of it as a container that loads other tools (GA4, Google Ads, Meta Pixel, TikTok Pixel, LinkedIn Insight Tag) and decides when each one fires. That makes it worth the setup effort in some situations and overkill in others.
DECISION BOX · HOW SHOULD YOUR SITE LOAD ITS TRACKING?
| Option | Best when | Watch out for |
|---|---|---|
| Platform’s built-in integration | You run GA4 only, on a hosted builder, with no ads | Little control over custom events |
| Hard-coded tags in the theme | A developer is on hand and tags rarely change | Every change waits for a code edit; theme updates can wipe tags |
| Google Tag Manager | You run two or more ad platforms or track leads, calls and WhatsApp clicks | Old hard-coded tags must be removed, or events double |
Verdict: If you advertise on more than one platform or measure leads, use Tag Manager. If you only want visitor counts, a built-in integration is enough.
Before you start, write down every tracking tool currently on the site. Open your homepage, view the page source and search for “gtag”, “fbq” and “GTM-“. Anything you find will either move into Tag Manager or be deleted at Step 7. Our guide to Google tag detection problems shows how to read what is already firing.
BENCHMARK BRIEFING 1
Tags, Triggers and Variables: The Starter Set for an SME
IN BRIEFEvery Tag Manager setup is built from three parts. Tags are the tracking codes, triggers decide when they fire, and variables hold values such as a page URL or a click target. A typical SME needs six tags or fewer. If an event later goes missing, debug it with the GA4 events-not-firing checklist.
The table below is the starter container we would expect on a lead-generation website in Malaysia. Tag types and trigger names follow Google’s and Meta’s documentation; the “needed when” column is our judgement.
| Tag | Trigger | Needed when |
|---|---|---|
| Google tag (GA4) | Initialization – All Pages | Always |
| Conversion Linker | All Pages | Running Google Ads |
| Google Ads Conversion Tracking | Thank-you page view or form submission | Running Google Ads |
| Meta Pixel | All Pages, plus a Lead event on form submission | Running Meta ads |
| GA4 Event: whatsapp_click | Link click, Click URL contains wa.me | WhatsApp is a lead channel |
| GA4 Event: phone_click | Link click, Click URL starts with tel: | Calls are a lead channel |
Aggregated by IZI Digital Marketing from Tag Manager Help: set up Google Analytics in Tag Manager, Tag Manager Help: Google Ads conversions and Meta Business Help Centre: add Meta Pixel in Google Tag Manager, checked 4 October 2026. “Needed when” is IZI Digital Marketing’s editorial judgement.
The two highlighted rows are the ones Malaysian sites most often skip. WhatsApp and phone clicks are where a large share of local enquiries start, yet a page-view-only setup cannot see them. Both are simple link-click triggers, so there is little reason to leave them out.
PART 2 · DESIGN
How to Set Up Google Tag Manager Step by Step
IN BRIEFThe Google Tag Manager setup sequence is: create the account and container, install both snippets, add the Google tag, add conversion tags, test in Preview, publish, then remove old code. Do the steps in that order. Once campaign links are live, tag them properly using UTM parameters explained.
Each step below includes the check that tells you it worked. Skip the checks and problems surface weeks later, usually as a campaign report that makes no sense.
- Create the account and container. At tagmanager.google.com, create one account for your business and one Web container named after your domain. Google’s create an account and container guide covers the screens. Check: you can see a container ID starting with “GTM-“.
- Install the two snippets. Google’s web container installation guide says to place the script as high in the <head> as possible and the noscript block immediately after the opening <body> tag, on every page. Check: the container ID appears in the page source of a few different pages.
- Add the Google tag. Create a Google Tag, paste your GA4 measurement ID and use the Initialization – All Pages trigger. Check: GA4 Realtime shows your own visit.
- Add conversion tags. Add a Conversion Linker and Google Ads conversion tag if you run Google Ads, and the Meta Pixel if you run Meta ads. Check: each tag has exactly one trigger tied to a real lead action.
- Add lead events. Create GA4 event tags for form submissions, WhatsApp clicks and phone clicks. Check: event names are lowercase with underscores.
- Test in Preview, then publish. Click Preview, browse the site, submit a test form, and confirm each tag fires once. Then Submit with a clear version name. Check: the version appears in the Versions list.
- Remove old hard-coded tags. Delete the old GA, Ads and Pixel code from the theme or plugins. Check: page source shows only the GTM container, not separate gtag or fbq code.
BENCHMARK BRIEFING 2
Where to Install the GTM Code on WordPress, Shopify and Custom Sites
IN BRIEFThe two GTM snippets must sit on every page: the script high in the head and the noscript block straight after the opening body tag. How you get them there depends on your platform, and each route has its own failure point. Shops tracking orders should also read fixing broken GA4 e-commerce tracking.
The table sets out the common install routes for Malaysian SME sites, what goes wrong with each, and how to confirm the install worked. Placement rules come from Google; the failure points are what we see most often in audits.
| Website type | Usual install route | Common failure point | Check |
|---|---|---|---|
| WordPress | Header-and-footer code plugin, or a plugin with a GTM ID field | A second plugin still loading GA4 directly | One GTM- ID in page source |
| Custom-coded | Shared header template | Landing pages built on a separate template | Test ad landing and thank-you pages |
| Hosted builder (Wix, Squarespace) | Custom code or marketing integrations area | Body snippet not supported in all plans | Preview mode connects |
| Shopify | Theme layout file, plus the platform’s own checkout event tools | Checkout pages do not load theme code | Run a test order |
Placement rules from Tag Manager Help: install a web container, checked 4 October 2026. Install routes and failure points are IZI Digital Marketing’s editorial observations; menus differ by platform version.
The pattern across every row is the same: the install fails on the pages that matter most. Ad landing pages, thank-you pages and checkout often sit outside the main template. Always test those pages directly, not just the homepage.
Installed GTM but conversions still look wrong?
Share your container in Preview mode with us. We will check which tags fire on your landing, thank-you and checkout pages, and where the gaps are. Request a container review
PART 3 · DEPLOY
Adding Google Ads and Meta Pixel Tags in GTM
IN BRIEFGoogle Ads needs a Conversion Linker on all pages and a conversion tag with its ID and label on the lead action. Meta Pixel needs a base tag on all pages and standard events such as Lead. The browser pixel alone misses some conversions, which is why the Conversions API exists.
Google Ads. Google’s Google Ads conversions in Tag Manager guide asks for a Conversion ID and Conversion Label from a conversion action you create in Google Ads. It notes that automatically created conversion actions do not give you a standalone label, so create the action manually. Add a transaction ID where you have one to stop duplicates. If conversions still show zero after publishing, work through the Google Ads conversions-not-tracking checklist.
Meta Pixel. Meta’s guide to adding the Meta Pixel in Google Tag Manager covers the partner integration route. Fire the base code on all pages, then a Lead or Contact event on your form or WhatsApp trigger. If the pixel goes quiet afterwards, our Meta Pixel not firing diagnosis walks through the checks in order.
One habit makes both platforms easier to manage: use one trigger per lead action and share it. A single “Form submitted” trigger can fire the GA4 event, the Google Ads conversion and the Meta Lead event together. When the form changes, you fix one trigger, not three.
BENCHMARK BRIEFING 3
Consent Settings in Tag Manager: What Each Type Controls
IN BRIEFTag Manager can hold tags back until a visitor gives consent, using a Consent Initialization trigger that fires before every other tag. Each consent type controls a different kind of data. Whether you need it depends on your visitors and how you use their data, but it is good practice, and your measurement design should plan for it.
Google’s documentation lists the consent types Tag Manager understands. The table shows what each one governs and which tags in the starter container it affects.
| Consent type | What it controls | Starter tags affected |
|---|---|---|
| ADVERTISING | ||
| ad_storage | Advertising cookies | Google Ads conversion, Conversion Linker |
| ad_user_data | Sending user data to Google for ads | Google Ads conversion |
| ad_personalization | Personalised ads such as remarketing | Remarketing audiences |
| ANALYTICS AND SITE | ||
| analytics_storage | Analytics cookies | Google tag (GA4) |
| functionality_storage | Storage for site features, such as language | Site functions, not marketing tags |
Aggregated by IZI Digital Marketing from Tag Manager Help: consent mode support, checked 4 October 2026. Google lists further types for personalisation and security; the mapping to starter tags is IZI Digital Marketing’s editorial summary.
Google also notes that Tag Manager works with consent management platforms, so you can add a cookie banner through a template instead of custom code. Whether you need a banner depends on who visits your site and how you use the data. If you sell to visitors outside Malaysia, especially from Europe, treat consent as part of the setup, not an add-on, and take advice on your own obligations.
PART 3 · DEPLOY
How to Test GTM in Preview Mode Before You Publish
IN BRIEFPreview mode opens your site through Tag Assistant as if the draft container were live, and lists which tags fired on each action. Run one full customer journey and confirm every lead tag fires exactly once. A tag that fires twice is the root of duplicate GA4 transactions.
Google’s preview and debug guide explains that Preview lets you browse your site as if the draft were deployed, and you can share a preview link with a colleague. Use it to walk through these checks:
- Page load. The Google tag, Conversion Linker and Meta base code appear under “Tags Fired” on every page you open.
- Lead actions. Submit a test form, tap the WhatsApp button and tap the phone number. Each should fire its event once, not zero times and not twice.
- Thank-you page. The Google Ads conversion fires here (or on form submission), never on every page.
- GA4 DebugView. Events from your preview session appear in GA4’s DebugView with the names you chose.
- Version name. When everything passes, Submit with a version name such as “Initial setup: GA4, Ads, Pixel, lead events”.
Named versions matter later. Google’s publishing and versions guide describes each version as a snapshot you can return to, so a bad change can be rolled back in minutes.
BENCHMARK BRIEFING 4
How Much Developer Time Does Tag Manager Save in a Year?
IN BRIEFWith hard-coded tracking, every new tag, event or campaign change needs a code edit. With Tag Manager, only the first install touches the site code. Over a year of normal marketing changes, that difference adds up, especially for businesses running creator campaigns alongside paid ads, as in influencer marketing rates in Malaysia.
The model follows a typical SME through twelve months of tracking changes: launching Google Ads, adding Meta ads, tracking WhatsApp clicks, a website redesign and so on. It counts the site-code edits each approach needs. The figures are illustrative, not measured.
| Month and change | Cumulative code edits |
|---|---|
| M1 · GA4 + Google Ads | Hard-coded 2 Tag Manager 1 |
| M3 · Meta Pixel | Hard-coded 3 Tag Manager 1 |
| M4 · WhatsApp and phone events | Hard-coded 5 Tag Manager 1 |
| M6 · TikTok pixel test | Hard-coded 6 Tag Manager 1 |
| M9 · Website redesign | Hard-coded 11 Tag Manager 2 |
| M12 · New form + consent banner | Hard-coded 13 Tag Manager 2 |
Illustrative model by IZI Digital Marketing; an assumed twelve-month scenario counting one edit per tag change, not measured client data. Rust bars show hard-coded tracking, ink bars show Tag Manager.
The redesign at month nine is the telling row. A redesign wipes hard-coded tags, and the person rebuilding the site rarely knows every one that existed. With Tag Manager, the new site only needs the container snippet back, and every tag returns with it. That is the strongest practical case for a Google Tag Manager setup before any redesign.
PART 4 · DRIVE
Keeping Your Tag Manager Container Clean
A container that works on launch day can drift into a mess within a year. Keep it healthy with a short routine:
- Name everything by pattern. For example “GA4 – Event – whatsapp_click” and “Trigger – Click – wa.me”, so anyone can read the container.
- Give access carefully. Keep ownership on a company Google account, and give agencies and freelancers their own user access, not your password.
- Write a version note every time. One line on what changed and why.
- Review quarterly. Pause tags for platforms you no longer use, and check that lead events still match GA4 key events and ad platform conversions.
With the container in order, the next step is closing the gaps a browser tag cannot see, which is where server-side signals such as Conversions API come in, and making sure every campaign link carries clean UTM tags.
FAQ
Frequently Asked Questions
1. Is Google Tag Manager free?
Yes, the standard version is free. It depends on your scale, but only large organisations need the paid Tag Manager 360, which adds features such as approval workflows.
2. How long does a Google Tag Manager setup take?
An afternoon for a basic setup. It depends on how many platforms and lead actions you track, but GA4, one ad platform and three lead events usually take a few hours including testing.
3. Do I still need the GA4 code if I use Tag Manager?
No, not hard-coded. It depends on your current setup, but the Google tag inside Tag Manager replaces it, and keeping both will double count every page view and event.
4. Where do I put the Google Tag Manager code?
On every page of the site. It depends on your platform, but Google says the script goes as high in the head as possible and the noscript block straight after the opening body tag.
5. Why are my tags not firing after I published?
Usually the trigger or the install is wrong. It depends on the tag, but check that the page loads the container, that the trigger matches the action, and test again in Preview mode.
6. Can I track WhatsApp clicks with Google Tag Manager?
Yes, with a link-click trigger. It depends on how your button is built, but a trigger where the Click URL contains wa.me, attached to a GA4 event tag, counts most WhatsApp button clicks.
7. Should I give my agency access to my GTM container?
Yes, as a user, never as owner. It depends on the work, but keep the account on a company Google login so you keep the container if you change agencies.
Want tracking you can actually trust?
Book a free Blueprint consultation. We will diagnose what your current tags miss or double count, design a Tag Manager container around your real lead actions, and help you decide which numbers your ad budgets should follow.