Google Tag Manager Setup for a Malaysian SME Website
Home  /  Blog

Google Tag Manager Setup for a Malaysian SME Website

The Short Answer: A Google Tag Manager setup starts with an account, a web container and two code snippets on every page. Inside the container, add the Google tag for GA4, a conversion tag for each ad platform and events for your lead actions. Test everything in Preview mode, publish, then delete any old hard-coded tracking, or every event will count twice. For most SMEs, the first working setup takes an afternoon.

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.

Bottom Line: Tag Manager pays off when tracking changes often. Take an inventory of existing tags first, because a setup built on top of forgotten code is the most common cause of double counting.

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.

Benchmark Briefing 1: A Starter Tag Manager Container for a Malaysian SME Lead Website
Starter Google Tag Manager container for a Malaysian SME lead website. Google tag for GA4: tag type Google Tag, trigger Initialization – All Pages, needed always. Conversion Linker: tag type Conversion Linker, trigger All Pages, needed when running Google Ads. Google Ads conversion: tag type Google Ads Conversion Tracking, trigger form thank-you page or form submission, needed when running Google Ads. Meta Pixel: community template or custom HTML, trigger All Pages plus Lead event on form submission, needed when running Meta ads. GA4 event for WhatsApp click: tag type Google Analytics GA4 Event, trigger link click where Click URL contains wa.me, needed when WhatsApp is a lead channel. GA4 event for phone click: GA4 Event, trigger link click where Click URL starts with tel:, needed when calls are a lead channel. Aggregated by IZI Digital Marketing from Tag Manager Help and Meta Business Help Centre, checked 4 October 2026.
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.

Bottom Line: Start with six tags, not sixty. A small container that tracks every real lead beats a large one nobody can explain.

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.

  1. 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-“.
  2. 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.
  3. 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.
  4. 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.
  5. Add lead events. Create GA4 event tags for form submissions, WhatsApp clicks and phone clicks. Check: event names are lowercase with underscores.
  6. 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.
  7. 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.
Consultant’s Note: Step 7 is where most DIY setups go wrong. The owner installs Tag Manager, adds GA4, sees data, and forgets the old GA4 code still sitting in the theme header. Every page view and purchase now counts twice, conversion rates look healthy, and ad budgets get raised on numbers that were never real. Delete old code the same day you publish.
Bottom Line: Seven steps, seven checks. A Google Tag Manager setup that skips the checks is a guess with a container ID.

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.

Benchmark Briefing 2: GTM Install Routes by Website Type, Failure Points and Checks
Google Tag Manager install routes by website type. WordPress: a header-and-footer code plugin or a plugin with a GTM ID field; failure point is a second plugin also loading GA4; check page source for one GTM- ID. Custom-coded site: paste into the shared header template; failure point is pages built on a different template missing the code; check landing pages and thank-you pages. Hosted builder such as Wix or Squarespace: the builder’s custom code or marketing integrations area; failure point is the noscript block not being supported; check with Preview mode. Shopify: theme layout file or the platform’s customer events area for checkout; failure point is checkout pages not loading theme code; check a test purchase. Placement rules from Tag Manager Help; failure points are IZI Digital Marketing editorial observations.
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

Bottom Line: A homepage test proves very little. Test the pages where money changes hands.

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.

Bottom Line: Build shared triggers for each lead action, then attach every platform’s tag to them. One definition of a lead keeps GA4, Google Ads and Meta closer to agreement.

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.

Benchmark Briefing 3: Tag Manager Consent Types and the Starter Tags They Affect
Google Tag Manager consent types and the starter tags they affect, grouped into advertising and analytics. Advertising: ad_storage controls advertising cookies and affects Google Ads conversion and Conversion Linker; ad_user_data controls sending user data to Google for advertising and affects Google Ads conversion; ad_personalization controls personalised advertising such as remarketing and affects Google Ads remarketing. Analytics and site: analytics_storage controls analytics cookies and affects the Google tag for GA4; functionality_storage controls storage that supports site features such as language settings and affects site functions rather than marketing tags. Aggregated by IZI Digital Marketing from Tag Manager Help consent mode support, checked 4 October 2026.
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.

Bottom Line: Consent settings are far easier to add on day one than to retrofit. Decide your consent approach before you publish the first version.

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.

Bottom Line: Never publish a container you have not walked through in Preview. Fired once is the only correct answer for a lead tag.

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.

Benchmark Briefing 4: Cumulative Site-Code Edits Over 12 Months, Hard-Coded vs Tag Manager
Illustrative model of cumulative website code edits needed for tracking changes over 12 months. Month 1, GA4 and Google Ads conversion: hard-coded 2 edits, Tag Manager 1 edit for the container install. Month 3, Meta Pixel added: hard-coded 3, Tag Manager 1. Month 4, WhatsApp and phone click events: hard-coded 5, Tag Manager 1. Month 6, TikTok pixel test: hard-coded 6, Tag Manager 1. Month 9, website redesign: hard-coded 11 because every tag is re-added, Tag Manager 2 because only the container is re-added. Month 12, new form and consent banner: hard-coded 13, Tag Manager 2. Illustrative model by IZI Digital Marketing; assumed scenario, not measured client data.
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.

Bottom Line: Tag Manager’s value is not the first install. It is every change after it that no longer needs a developer.

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:

  1. Name everything by pattern. For example “GA4 – Event – whatsapp_click” and “Trigger – Click – wa.me”, so anyone can read the container.
  2. Give access carefully. Keep ownership on a company Google account, and give agencies and freelancers their own user access, not your password.
  3. Write a version note every time. One line on what changed and why.
  4. 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.

Book my free consultation

Have a campaign in mind? Let's talk.