Skip to content
Back to Blog
Analytics4 min read15 September 2022

Google Tag Manager basics for Indian website owners

Google Tag Manager lets you add tracking codes to your website without editing code every time. Here is how to set it up and why it saves enormous time.

Google Tag Manager basics for Indian website owners

Before Google Tag Manager, every time you wanted to add a tracking pixel, a remarketing tag, or an event tracking code to your website, you had to ask a developer to touch the code. This created a bottleneck. Campaigns got delayed. Tracking was incomplete. Billing accumulated.

Google Tag Manager changes this. Once a single snippet of code is added to your website, your marketing team can add, edit, and remove tracking tags without going back to the developer each time. It is one of the highest-impact free tools in the Google ecosystem.

The three core concepts in Tag Manager

Tags are the pieces of code you want to fire on your website. A Meta Pixel is a tag. A Google Analytics 4 tracking code is a tag. A LinkedIn Insight Tag is a tag. Instead of pasting each of these into your website's HTML, you configure them inside Tag Manager, and Tag Manager fires them for you.

Triggers are the conditions that tell a tag when to fire. "Fire on all pages" is the simplest trigger, used for analytics codes. "Fire when someone clicks the submit button on the contact form" is a more specific trigger, used for conversion tracking.

Variables are values that change depending on the page or action. The page URL is a variable. The click text is a variable. Variables let you create flexible triggers without hardcoding specific values.

How to set up Google Tag Manager

Go to tagmanager.google.com and create a free account. Add your website as a container. Tag Manager will give you two snippets of code to paste into your website's HTML. One goes in the head, one goes in the body. In WordPress, the Insert Headers and Footers plugin (or your theme's header/footer settings) handles this without touching theme files.

Once the snippet is live, install the Tag Manager preview extension in Chrome. This lets you see exactly which tags are firing and which triggers are activating as you navigate your site. Always preview before publishing.

Setting up Google Analytics 4 through Tag Manager

In Tag Manager, create a new tag. Choose Google Analytics 4 Configuration as the tag type. Enter your GA4 Measurement ID (which starts with G-). Set the trigger to "All Pages." Save and publish.

Your GA4 tracking is now live. Any future GA4 event tags can reference this configuration tag, so you only ever maintain one Measurement ID in one place.

Tracking WhatsApp click events

For Indian businesses, tracking WhatsApp button clicks is one of the most useful things you can do in Tag Manager. Create a new trigger. Choose "Click, All Elements" as the trigger type. Add a filter: "Click URL contains wa.me or api.whatsapp.com." Save this trigger.

Create a new GA4 Event tag, name the event "whatsapp_click," and attach the trigger. Now every time someone clicks your WhatsApp button, the event fires in Google Analytics. You can see how many people click WhatsApp, from which pages, and on which devices.

What not to do in Tag Manager

Do not give everyone on your team publish access. A misconfigured tag published to your live website can break tracking across your entire site or, in worst cases, slow your site down. Use a workflow where someone creates or edits tags, a second person reviews, and only one or two people can publish.

Do not let old, unused tags accumulate. Audit your Tag Manager container quarterly and remove or pause tags from campaigns that have ended.

Frequently asked questions

Does Google Tag Manager slow down my website?

The Tag Manager snippet itself is loaded asynchronously, meaning it does not block page rendering. However, the tags it fires can slow the page depending on what they load. Heavy pixel scripts from multiple ad platforms add up. Audit which tags are firing and remove unnecessary ones.

Can I use Google Tag Manager with a website builder like Wix or Squarespace?

Wix and Squarespace both support Google Tag Manager through their integrations settings. The process is simpler than manual installation. Shopify requires adding the GTM snippet manually through the theme code, but there are also GTM apps in the Shopify app store that handle it.

What is the difference between Google Tag Manager and Google Analytics?

Google Tag Manager is a container that manages and deploys tracking codes. Google Analytics is the tool that collects and reports on your website data. GTM is how you install GA4 on your site more efficiently. You need both to work together.

Published 15 September 2022
Start a Project