Analytics ·

Google Tag Manager Setup Guide for Small Businesses

Google Tag Manager lets you add and change website tracking without editing code each time. Here is how to set it up properly and avoid the common mistakes.

Set Up Tag Manager Right

Google Tag Manager is a free tool that lets you manage tracking codes on your website from one place. To set it up, create a GTM account and container, install the container code on every page of your site, add a Google tag for GA4, create triggers for the actions you care about, such as form submissions, WhatsApp clicks and phone clicks, test everything in preview mode, and then publish. Once it's in place, you can add or change tracking without asking a developer to edit the website each time.

For a Kenyan business running Google Ads, Meta ads and Google Analytics 4, GTM keeps all that tracking organised. It also makes it much easier to track the actions that matter here, such as WhatsApp chats and calls, which the default GA4 setup can miss.

What does Google Tag Manager do?

Websites use small pieces of code, called tags, to send information to tools like Google Analytics, Google Ads and Meta. Without GTM, each tag has to be added to the website code by hand. Every change means another developer task.

GTM puts one piece of code on your site, the container. You then add, edit and remove tags inside GTM's web interface. It doesn't replace GA4 or your ad platforms. It's the system that sends data to them.

Key terms in plain English

  • Account: usually one per business.
  • Container: holds all the tags for one website or app. Most small businesses need one web container.
  • Tag: a piece of code that sends data somewhere, such as a GA4 event or a Google Ads conversion.
  • Trigger: the rule that decides when a tag fires, such as "on every page" or "when someone clicks a WhatsApp link".
  • Variable: a piece of information GTM can use, such as the page address, the link clicked or the text of a button.
  • Version: a saved snapshot of your container. Publishing a version makes it live.

Step 1: Create your account and container

  1. Go to Google Tag Manager and sign in with a Google account the business controls.
  2. Create an account with your business name and country.
  3. Create a container named after your website, and choose "Web" as the platform.
  4. Accept the terms of service.

GTM then shows two pieces of code to install on your website.

Step 2: Install the container code

The container code has two parts. One goes as high as possible in the head section of every page, and the other goes just after the opening body tag. Your developer can add them, or your website platform may have a setting or plugin for GTM.

Make sure the code is on every page, including thank-you pages and checkout pages. Install GTM only once. Having the same container installed twice, for example by a theme and a plugin, causes double counting.

If GA4 is already installed directly in your website code, plan to remove that copy once GTM is sending GA4 data. Otherwise every page view will be counted twice.

Step 3: Add the Google tag for GA4

  1. In GTM, create a new tag and choose "Google tag".
  2. Enter your GA4 Measurement ID, which starts with "G-".
  3. Set the trigger to "All Pages".
  4. Save.

This sends page views and enhanced measurement events to GA4.

Step 4: Turn on built-in variables

Click tracking needs variables such as "Click URL" and "Click Text". In GTM, go to Variables, click Configure next to built-in variables, and turn on the click variables. Also turn on the form variables if you'll track forms.

Step 5: Track WhatsApp clicks

For many Kenyan businesses, this is the most important event to add.

  1. Create a click trigger of the "Just Links" type.
  2. Set it to fire on some link clicks, where Click URL contains "wa.me". Add a second condition, or a second trigger, for "api.whatsapp.com" if your site uses that format.
  3. Create a GA4 event tag named "whatsapp_click", and attach the trigger.
  4. Optionally, add the page address as an event parameter, so you can see which pages start chats.

Step 6: Track phone clicks

  1. Create a "Just Links" click trigger where Click URL starts with "tel:".
  2. Create a GA4 event tag named "phone_click" with that trigger.

On mobile, many customers tap your number rather than fill in a form, so this event often reveals enquiries you weren't counting.

Step 7: Track form submissions

Forms are harder, because they work differently on different websites. Choose the most reliable method available.

  • Thank-you page: if your form sends people to a thank-you page, trigger a "generate_lead" event on page views of that page. This is the most reliable method.
  • Form submission trigger: GTM's built-in form trigger works with some forms but not others. Test it carefully.
  • Success message: if the form shows a message without changing the page, your developer can push an event to the data layer when the submission succeeds, and GTM can listen for it.

Avoid counting clicks on the submit button as leads. Many of those clicks fail validation and never become enquiries.

Step 8: Add ad platform tags

GTM can also manage tags for Google Ads and Meta.

  • Google Ads conversions: use the Google Ads conversion tag with your conversion ID and label, or import GA4 key events into Google Ads instead. Pick one approach for each action, to avoid counting it twice.
  • Conversion linker: add this tag on all pages when using Google Ads conversion tracking.
  • Meta Pixel: add the pixel code using a custom HTML tag or a community template, with standard events such as Lead fired on the same triggers as your GA4 events.

Step 9: Test in preview mode

Never publish without testing.

  1. Click Preview in GTM and enter your website address.
  2. Tag Assistant opens your site in a connected window.
  3. Click a WhatsApp link, tap a phone link and submit a test form.
  4. Check in Tag Assistant that the right tags fired, once each.
  5. Check GA4's DebugView to confirm the events arrived.

Step 10: Publish with a clear name

Click Submit, give the version a clear name such as "Added WhatsApp and phone click tracking", add a short description, and publish. Clear version names make it easy to see what changed and roll back if something breaks.

Then mark your important events as key events in GA4, so they show up in your enquiry reports.

What about booking tools and online shops?

Many businesses use third-party tools for bookings, payments or online sales. These need extra care.

  • Booking tools embedded on your site sometimes run inside a frame that GTM can't see into. Check whether the tool offers its own GA4 integration, or sends people to a confirmation page on your site that you can track.
  • Online shops built on platforms such as Shopify or WooCommerce often have integrations that send purchase events with order values. Use them where they work well, and avoid adding a second purchase tag in GTM that counts the same sale again.
  • Payment pages on other domains, such as card payment gateways, can break the link between a visit and a sale. Ask your developer about cross-domain tracking or about returning customers to a confirmation page on your site after payment.

Test each tool with a real or test transaction before relying on its data.

Who should have access?

GTM controls what code runs on your website, so access matters.

  • Account administrators: at least two people from your business.
  • Publish rights: only people who understand the setup, such as your analytics provider or in-house specialist.
  • Edit or read access: for others who need to see or draft changes, without making them live.

When you change agencies or staff leave, update access the same week.

Consent and privacy

If your website uses a cookie banner, set up Google's consent mode so tags respect visitors' choices. Many consent tools connect to GTM directly. Kenya's Data Protection Act, 2019 applies to personal data you collect, and never send names, phone numbers or email addresses to GA4, which Google's policies prohibit.

Keep the container tidy

  • Name things consistently, such as "GA4 | Event | WhatsApp Click" and "Trigger | Click | WhatsApp".
  • Use folders for each platform.
  • Limit access. Give publish rights only to people who understand the setup.
  • Remove unused tags from old campaigns and tools.
  • Review the container every few months.

Common mistakes

  • Installing GA4 both directly and through GTM, which doubles the data
  • Publishing without preview testing
  • Tracking submit button clicks instead of successful submissions
  • Forgetting to mark events as key events in GA4
  • Leaving a former agency as the only container administrator
  • Giving many people publish rights without a review process

How Efficenture can help

Efficenture sets up Google Tag Manager and GA4 for Kenyan businesses, with WhatsApp, call and form tracking tested and documented. Learn more about our analytics and reporting service, or see how accurate tracking improves our ads management.

We're based in Nairobi and work with businesses across Kenya and East Africa. Book a consultation and we'll check what your current setup is tracking, and what it's missing.

Frequently asked questions

Is Google Tag Manager free?

Yes. The standard version of Google Tag Manager is free. Google also offers a paid version, Tag Manager 360, as part of its enterprise products.

Do I need Google Tag Manager if I have GA4?

Not strictly, but it makes tracking much easier to manage. GTM lets you add WhatsApp, phone and form tracking, plus ad conversion tags, without editing website code each time.

How do I track WhatsApp clicks with Google Tag Manager?

Create a link click trigger where the Click URL contains "wa.me" or "api.whatsapp.com", then attach it to a GA4 event tag such as "whatsapp_click". Test it in preview mode and mark the event as a key event in GA4.

Will Google Tag Manager slow down my website?

The container itself is light, but every tag you add loads extra code. Keep only the tags you need and remove old ones to keep pages fast.

What is preview mode in Google Tag Manager?

Preview mode opens your website connected to Tag Assistant, so you can see which tags fire as you click and submit forms. Use it to test every change before you publish.

Next step

Build a growth engine that can keep its promise.