GA4 and Google Tag Manager Setup for Small Businesses: Full Guide
Set up GA4 and Google Tag Manager on a small business site: create the property, add the container, track WhatsApp clicks and forms as key events.

"My website gets visitors, but I have no idea where they come from or whether they end up contacting me." I hear this a lot from business owners. The answer usually lies in two free Google tools: Google Analytics 4 (GA4) for measuring, and Google Tag Manager (GTM) for adding tracking code without editing the website's code every time. In this article I walk through a GA4 and Google Tag Manager setup step by step, until you can see how many people click your WhatsApp button and where they came from.
Menu names in GA4 and GTM change from time to time, so treat this guide as accurate as of late 2026. Links to the official guides are in the Sources section.
Before you start, prepare these
- A Google account owned by the business or its owner, not an employee's or developer's personal account. This account owns the GA4 property and the GTM container.
- Admin access to the website, such as WordPress, a builder panel, or the source code and hosting.
- A list of the visitor actions that matter, such as WhatsApp clicks, form submissions, phone clicks or purchases. Two to five is enough to start.
- Check for existing code. If the site already has Google Analytics code from a plugin or theme, note it so it does not get installed twice.
Step 1: Create a GA4 property
- Open Google Analytics, go to Admin, and create a new account and property.
- Enter the property name, the time zone (for Indonesia, (GMT+07:00) Jakarta) and your currency.
- Fill in the business details, then choose the Web platform.
- Enter the website URL and a name for the data stream.
- Make sure enhanced measurement is on. It automatically records page views, scrolls, outbound clicks, site search, file downloads and a few other interactions.
- Copy the Measurement ID that starts with
G-. You will need it in the next steps.
Step 2: Create a Google Tag Manager container
- Open Google Tag Manager and create a new account named after your business.
- Create a container named after your domain, then choose the Web platform.
- GTM gives you two code snippets: one goes in the
<head>, the other right after the opening<body>tag. - Add both to every page of the website. On WordPress, this is usually done with a code-insertion plugin or theme settings.
From here on, almost all tracking can be managed from the GTM dashboard without touching the website code again.
Step 3: Add the Google tag through GTM
- In GTM, open Tags and create a new tag.
- Choose the Google tag type and enter your
G-...Measurement ID. - Choose the Initialization - All Pages trigger so the tag runs on every page.
- Save. Do not publish yet; we will test once all the tags are ready.
Step 4: Track WhatsApp button clicks
For many small businesses, a WhatsApp click is the most important action. To track it:
- Open Variables, click Configure, and enable the built-in Click URL variable.
- Open Triggers, create a Click - Just Links trigger, choose Some Link Clicks, and set the condition: Click URL matches RegEx
wa\.me|api\.whatsapp\.com. - Open Tags, create a Google Analytics: GA4 Event tag, enter the Measurement ID and name the event
whatsapp_click. - Attach the trigger from step 2 to this tag, then save.
Event names work best in lowercase with underscores, no spaces, and kept consistent. If it is whatsapp_click today, do not make it WA Click tomorrow.
Step 5: Track forms and purchases
- Contact forms: the most reliable approach is to send visitors to a thank-you page after the form is submitted. Create a Page View trigger where Page Path contains
/thank-you, then send agenerate_leadevent, one of Google's recommended events for leads. - Online store purchases: many e-commerce platforms and plugins can already send a
purchaseevent with the transaction value. Check what your platform offers before building it from scratch.
Step 6: Test in Preview mode, then publish
- Click Preview in GTM. Tag Assistant opens your website in debug mode.
- Click the WhatsApp button and submit a test form. Make sure the right tags appear under Tags Fired.
- In GA4, open DebugView or the Realtime report to see the events arrive.
- If everything is right, click Submit, name the version something like "GA4 + WA clicks", and Publish.
A container that has not been published sends nothing for real visitors. This is a very common mistake.
Step 7: Mark the important events as key events
In GA4, what used to be called "conversions" are now key events. Go to Admin, open the events list, and mark whatsapp_click and generate_lead as key events. Newly created events sometimes do not show up in the list right away, but you can create a new key event with the same event name ahead of time.
Important settings people often miss
- Data retention: change it from 2 months to 14 months so you can compare data over a longer period in explorations.
- Internal traffic filter: register your office IP so your own visits are not counted.
- Link Google Search Console so organic search data shows up in GA4. I cover its reports in how to use Google Search Console.
- Link Google Ads if you advertise, so key events can be used as ad conversions.
- Privacy policy: mention that the website uses Google Analytics and cookies, in line with the data protection rules that apply to you. If you have visitors from Europe, the consent rules are stricter.
The most useful reports for a small business
- Traffic acquisition: where visitors come from, such as Google, Instagram or ads.
- Events: how often
whatsapp_clickandgenerate_leadhappen. - Key events by source: which sources bring in the most chats or leads.
- Pages and screens: the most viewed pages, and the ones that lead people to get in touch.
Check once a month and compare with the previous month. The direction of the numbers matters more than any single figure.
Common mistakes
- Code installed twice (through a plugin and through GTM), so page views are double-counted.
- Forgetting to publish the container after testing.
- Inconsistent event names, which splits the data.
- Measuring too many things until the reports become confusing.
- Expecting old data to appear. GA4 only records from the moment the tag is installed and cannot backfill.
FAQ
Are GA4 and Tag Manager free?
Yes, the standard versions are free. The paid version (Analytics 360) is meant for large companies and is not something a small business needs.
Do I have to use Tag Manager?
No. You can install the GA4 code directly. But as soon as you want to track WhatsApp clicks, forms or ad pixels, GTM makes everything much easier to manage.
Why do GA4 numbers differ from the number of chats I get?
Some visitors use ad blockers, decline cookies or switch devices. Use GA4 to see trends and compare sources, not as an exact count.
Final thoughts
A GA4 and Google Tag Manager setup does not have to be complicated. Start with a GA4 property, a GTM container, one WhatsApp click event and one form event. That alone lets you answer the most important question: where visitors come from, and which sources actually bring in customers.
If you would like this set up and tested properly, there is a Google Analytics 4 setup service from IDR 600,000, with a GA4 + GTM + Conversions package if you also want WhatsApp clicks and forms tracked. If you want to use the data straight away to optimize ads, see the Google Ads management service.
Sources
Read next
NEW
AdSense Rejected? Common Reasons and How to Fix Them
AdSense rejected for low value content, site down or navigation? What each reason means, how to fix it, and when to apply again.
Read more
NEW
Landing Page vs Company Profile vs Online Store: Which Do You Need?
Landing page, company profile or online store? How they differ, when each fits, and five questions to pick the right kind of website.
Read more
NEW
How to Verify AI-Generated Code: Lessons From Claude Code
How to verify AI-generated code before shipping client work: a freelancer checklist built from the Claude Code team's approach to tests, runs and reviews.
Read more