How to Set Up Google Tag Manager: A Beginner’s Guide
Table of Contents
Create Your GTM Account and Container
Google Tag Manager (GTM) is the central hub that every modern website needs for managing tracking codes, analytics tags and marketing pixels. Learning how to set up google tag manager correctly from the start saves significant time and prevents tracking errors that can compromise your marketing data. Instead of embedding individual code snippets directly into your website for every tool you use, GTM lets you manage them all from a single, user-friendly interface without touching your website’s source code.
For marketing teams in Singapore, GTM is transformative. It eliminates dependency on developers for adding or modifying tracking tags, speeds up implementation from days to minutes and reduces the risk of broken tracking caused by code conflicts. For businesses running multiple digital marketing campaigns simultaneously, GTM is essential infrastructure.
Start by navigating to tagmanager.google.com and signing in with your Google account. Use a company account rather than a personal one to ensure ongoing access. Click Create Account, enter your company name, select Singapore as your country and set up your container with your website domain. Select Web as the target platform.
After accepting the Terms of Service, GTM displays the container installation code. Before proceeding, set up user permissions under Admin and User Management. GTM offers four permission levels: Read, Edit, Approve and Publish. For most team members, Edit access is sufficient with Publish reserved for senior marketers who can review changes before they go live.
Install the Container Code
GTM provides two code snippets that must be installed on every page of your website. The first goes in the head section as high as possible. The second goes immediately after the opening body tag. Correct installation is crucial when learning how to set up google tag manager for your Singapore business.
WordPress: Use a plugin like “Insert Headers and Footers” or “GTM4WP”. Install the plugin, navigate to its settings and paste the respective code snippets. The plugin ensures the code appears on every page automatically.
Shopify: Go to Online Store, Themes, then Edit code. Open the theme.liquid file and paste the first snippet in the head section and the second after the body tag.
Custom websites: Paste the snippets into your master template file that wraps all pages. For single-page applications built with React, Vue or Angular, install GTM in your root HTML file and push virtual page view events to the data layer when routes change.
After installation, verify GTM is working by installing the Tag Assistant Chrome extension. Visit your website and the extension should show your GTM container ID with a green indicator confirming proper installation. If you see a red or yellow indicator, check that both snippets are installed on every page and no JavaScript errors are blocking GTM from loading. Professional web design ensures these technical elements are handled correctly from the start.
Understand Tags, Triggers and Variables
GTM operates on three core concepts that you must understand before configuring any tracking.
Tags are pieces of code that execute on your website. Each tag performs a specific action such as sending data to Google Analytics, firing a Meta Pixel event, loading a chat widget or tracking a conversion. Common tag types include GA4 Configuration, GA4 Event, Google Ads Conversion Tracking, Custom HTML and Google Ads Remarketing.
Triggers define when a tag fires. They listen for specific events or conditions. Common trigger types include Page View (fires on page load), Click (fires on user clicks), Form Submission (fires when a form is submitted), Scroll Depth (fires at specific scroll percentages), Timer and Custom Event (fires on data layer events).
Variables are dynamic values that tags and triggers use. They capture information from the page including the URL, clicked element text, form field values or data layer data. Enable built-in variables by going to Variables, then Configure. At minimum, enable all Click, Form and Page variables.
The relationship works like this: a trigger detects that something happened (a page loaded, a button was clicked), a variable captures contextual information (which page, which button) and a tag sends that information to a destination (GA4, Google Ads, Meta). Understanding this relationship is fundamental to using GTM effectively for your Google Ads and analytics tracking.
Set Up the GA4 Tag
Setting up Google Analytics 4 through GTM is one of the most common and important configurations. In GTM, click Tags then New. Name the tag “GA4 – Configuration”. Select Google Analytics: GA4 Configuration and enter your GA4 Measurement ID (format: G-XXXXXXXXXX) found in your GA4 property under Admin, Data Streams.
Set the trigger to All Pages to ensure GA4 loads on every page. Save the tag. For custom events beyond what enhanced measurement captures, create additional GA4 Event tags referencing your Configuration tag. Enter the event name and any parameters you want to track.
Use GTM’s Preview mode to verify the GA4 tag fires correctly on all pages and that data appears in your GA4 Realtime report. Once verified, click Submit, add a version name and publish. If you previously had GA4 installed via the gtag.js snippet, remove the hardcoded snippet to avoid duplicate data collection.
Configure Conversion Tracking
Conversion tracking tells your advertising platforms when a valuable action occurs on your website, enabling them to optimise ad delivery. Setting up conversion tracking correctly in GTM is critical for the performance of your how to set up google tag manager implementation.
Google Ads conversion tracking: In Google Ads, create a new conversion action to obtain a Conversion ID and Conversion Label. In GTM, create a Google Ads Conversion Tracking tag, enter these values and set the trigger. For form submissions, use a trigger that fires on the thank-you page or on form submission events.
Google Ads remarketing: Create a Google Ads Remarketing tag with your Conversion ID and set the trigger to All Pages. This populates your remarketing audiences for retargeting Singapore website visitors.
Meta Pixel via GTM: Get your Pixel code from Meta Events Manager. In GTM, create a Custom HTML tag, paste the Pixel base code and set the trigger to All Pages. For standard events like Lead or Purchase, create separate tags with appropriate triggers. Use the Meta Pixel Helper Chrome extension alongside GTM’s Preview mode to verify events. A well-configured setup supports all your social media marketing campaigns with accurate data.
Track Form Submissions
Form submissions are among the most important conversion events for lead generation businesses in Singapore. GTM offers multiple methods depending on how your forms are built.
GTM Form Submission trigger: This built-in trigger listens for the native HTML form submission event. Create a trigger, select Form Submission and filter by form attributes. Works well for standard HTML forms.
Thank-you page trigger: If your form redirects to a thank-you page, create a Page View trigger that fires when the URL contains your thank-you page path. This method is reliable regardless of form technology.
Custom event trigger: For AJAX forms that submit without page reloads, have your developer push a custom event to the data layer on successful submission. Create a Custom Event trigger in GTM that listens for this event.
Element visibility trigger: If your form displays a success message after submission, create an Element Visibility trigger that fires when the success message appears. This works regardless of form technology and requires no developer involvement.
Once form tracking is set up, create GA4 Event tags and conversion tags that fire on these triggers. For businesses where form enquiries are the primary conversion, accurate tracking is essential for optimising your SEO and advertising investment.
Implement Scroll and Click Tracking
Scroll depth and click tracking provide granular insight into how Singapore users interact with your pages, helping you understand engagement quality beyond simple page views.
Scroll depth tracking: Create a Scroll Depth trigger with vertical thresholds at 25%, 50%, 75% and 90%. Enable the Scroll Depth Threshold built-in variable. Create a GA4 Event tag named “scroll_depth” with parameters for scroll threshold and page path. This data reveals how far users scroll on each page, informing your content marketing optimisation decisions.
Click tracking: Enable all Click-related built-in variables. Create Click triggers filtered for specific elements such as phone number clicks (Click URL contains “tel:”), CTA button clicks (Click Classes contains “cta-button”) or WhatsApp clicks (Click URL contains “wa.me”). For Singapore businesses, tracking WhatsApp click-to-chat events is particularly valuable as it reveals which pages drive the most enquiries.
Debug with Preview Mode
GTM’s Preview mode is your essential tool for testing before publishing changes. Never publish without testing first as a misconfigured tag can break tracking, inflate analytics data or impact website performance.
Click Preview to open your website with a debugging panel showing an events timeline, tags fired and not fired for each event, variable values and data layer contents. Follow this workflow for every change: enter Preview mode, navigate to relevant pages, perform the triggering action, confirm the tag fired correctly, verify data appears in the destination platform and only publish when everything is verified.
Preview mode runs a draft version invisible to live website visitors, making it completely safe to test extensively without impacting real users or data in your Singapore business analytics.
Frequently Asked Questions
Does Google Tag Manager slow down my website?
GTM itself adds minimal load time as the container script is lightweight and loads asynchronously. However, tags within your container can impact performance if you load too many heavy scripts. Only include tags you actively use, set appropriate triggers and remove unused tags regularly.
Can I use GTM without any coding knowledge?
Yes, for basic implementations. GTM’s visual interface handles Google Analytics, conversion tracking and remarketing tags without code. More advanced tracking like custom events and e-commerce tracking may require some HTML and JavaScript knowledge or developer support.
What happens if I make a mistake in GTM?
GTM includes version history so you can always roll back. Go to Admin, Container, Versions, find the last working version and publish it. This immediately reverts all changes, making mistakes easily reversible without developer intervention.
Should I install tracking codes directly or through GTM?
For the vast majority of implementations, GTM is the better approach. It centralises management, enables testing before publishing, provides version control and reduces developer dependency. The main exceptions are rare cases where a tag must load before GTM.
How many tags can I add to GTM?
There is no hard limit but best practice is keeping your container lean. Most business websites need 10-30 active tags. Regularly audit your container and remove tags that are no longer needed.
Can I use GTM for multiple websites?
Yes, create separate containers within the same GTM account for each website. Each container has its own set of tags, triggers and variables appropriate for that specific site.
How do I track phone calls through GTM?
Create a Click trigger where Click URL contains “tel:” to track phone number clicks. Fire a GA4 Event tag with the event name “phone_click” and include the phone number as a parameter. This captures call intent from your website, which is especially valuable for Singapore service businesses.
Is GTM compatible with WordPress, Shopify and other platforms?
Yes, GTM works with virtually every website platform. WordPress has dedicated plugins for easy installation. Shopify requires manual code placement in the theme.liquid file. Custom platforms simply need the two GTM snippets added to the site template. The platform does not affect GTM’s functionality once installed.



