Blog
How to Set Up Google Analytics 4 on Your WordPress Website
If your WordPress site is getting traffic but you do not know which pages bring leads, GA4 can turn guesswork into useful decisions.
Google Analytics 4, usually called GA4, helps you see how visitors find your website, which pages they view, what actions they take, and where they drop off. For Canadian small businesses, it can help answer practical questions like: “Which service page brings phone calls?” “Are people finding us from Google?” and “Is our contact form page actually working?”
This guide explains how to set up GA4 on a WordPress website without getting buried in jargon. We will focus on the setup choices that matter, privacy considerations for Canadian websites, and how to avoid common mistakes that lead to messy data.
What GA4 Actually Tracks
GA4 is Google’s current analytics platform. Instead of focusing only on pageviews and sessions, GA4 is built around events.
An “event” is an action someone takes on your website. That can include viewing a page, clicking a link, submitting a form, scrolling, starting checkout, or completing a purchase.
For a typical Canadian business website, useful GA4 tracking may include:
- Pageviews on key service pages
- Contact form submissions
- Phone number clicks on mobile
- Email link clicks
- Quote request form activity
- Booking button clicks
- WooCommerce product views and purchases
- Traffic from Google Search, Google Ads, social media, and referrals
The goal is not to track everything just because you can. The goal is to track the actions that help you make better marketing decisions.
Tip: Before installing GA4, write down the top three actions you want visitors to take. For many small businesses, that is calling, filling out a form, or booking an appointment.
Before You Start: Decide What Success Looks Like
GA4 is much easier to understand when you define your goals first. Otherwise, you end up staring at charts without knowing what they mean.
Start with a short list of website goals. For example:
- A plumbing company may want quote requests and emergency call clicks.
- A law firm may want consultation form submissions and practice area page views.
- A restaurant may want menu views, reservation clicks, and online ordering activity.
- A real estate agent may want listing inquiries and buyer consultation form submissions.
- A healthcare practice may want appointment requests and clinic location page views.
Once you know what matters, GA4 becomes more useful. You can measure real business actions instead of obsessing over vanity metrics like raw visitor count.
Step 1: Create a GA4 Property
To use GA4, you need a Google Analytics account and a GA4 property for your website. Google changes its interface from time to time, so use Google’s official Analytics documentation for the most current screen-by-screen instructions.
Conceptually, the process is simple:
- Sign in to Google Analytics with the Google account you want to manage the property.
- Create a new account or choose an existing one.
- Create a GA4 property for your business website.
- Add your website as a web data stream.
- Copy the measurement details provided by Google.
Be careful about which Google account you use. If an employee, freelancer, or agency creates GA4 under their own account without giving your business proper access, you may have trouble later.
Ideally, your business should own the GA4 property. Agencies, developers, and marketing providers can be added as users instead of owning the account outright.
Step 2: Choose How You Will Add GA4 to WordPress
There are a few common ways to connect GA4 to WordPress. The right option depends on how technical you are and what else you need to track.
Option 1: Use a WordPress Analytics Plugin
This is usually the easiest option for non-technical website owners. Popular analytics plugins can help add the GA4 tracking code without editing theme files.
Some plugins also show basic reports inside WordPress. That can be handy, but remember that the most complete data usually lives inside Google Analytics itself.
The tradeoff is plugin bloat. Every plugin adds code, settings, updates, and potential conflicts. If you already have too many plugins, think carefully before adding another one.
If your site is feeling heavy, read our guide on How to Reduce WordPress Plugin Bloat before installing yet another tool.
Option 2: Use Google Tag Manager
Google Tag Manager is a more flexible way to manage tracking scripts. It lets you add GA4, advertising pixels, conversion tags, and other tracking tools from one place.
This is a good option if you run ads, track many events, or work with a marketing agency. It is also helpful when you want to add tracking without repeatedly touching the WordPress theme.
The downside is complexity. Tag Manager is powerful, but it is easy to misconfigure if you are guessing your way through it.
If you only need basic GA4 pageview tracking, Tag Manager may be more than you need. If you need form tracking, phone click tracking, ad conversions, and WooCommerce events, it may be worth using.
Option 3: Add the GA4 Code Manually
You can add GA4 manually to your WordPress site using your theme, a child theme, or a header/footer code tool. This avoids some plugin overhead, but it requires care.
Do not paste tracking code randomly into theme files unless you know what you are doing. Theme updates can overwrite changes, and a small mistake can break your site layout or tracking.
Manual installation is best handled by someone comfortable with WordPress development. If Ambrite maintains your site through one of our WordPress maintenance plans, we can help make sure tracking is added cleanly and tested properly.
Step 3: Install GA4 on Your WordPress Site
Once you have chosen your method, add the GA4 tracking to your site. The exact steps depend on the plugin or tool you use, so check the current official documentation for that tool.
No matter which method you choose, your goal is the same: every public page of your website should load the GA4 tracking code once.
Avoid these common mistakes:
- Installing GA4 twice through both a plugin and Tag Manager
- Adding the code only to the homepage
- Installing tracking on the staging site but not the live site
- Forgetting to remove old duplicate tracking snippets
- Using a plugin that has not been updated or maintained
Duplicate tracking is especially common. It can inflate pageviews and make your reports unreliable.
If you are not sure whether GA4 is installed once or twice, ask your developer or maintenance provider to check before you start making decisions based on the data.
Step 4: Test That GA4 Is Working
Do not assume GA4 is working just because you installed a plugin or pasted a tag. Test it.
GA4 includes real-time reporting that can help confirm whether your visits are being recorded. Open your website in a separate browser or device, click through a few pages, and check whether activity appears in GA4.
You can also use browser-based tag checking tools, but use the official documentation for whichever testing tool you choose. These tools change often, and the exact buttons or labels may not stay the same.
When testing, check these basics:
- Does GA4 record a visit to the homepage?
- Does it record visits to inner pages?
- Does it work on mobile?
- Is only one GA4 property firing?
- Are staging or development visits excluded if needed?
If your site uses caching, test after clearing your cache. WordPress caching can sometimes delay script changes from appearing on the live site.
For more on caching and performance, see WordPress Caching Explained: A Beginner's Guide.
Step 5: Set Up Key Events
Basic pageview tracking is useful, but it is not enough. You also want to track meaningful actions.
In GA4, important actions can be marked as key events. These are the actions you care about most.
Examples of useful key events include:
- Contact form submission
- Quote request submission
- Appointment request submission
- Phone number click
- Email link click
- Online order started
- Purchase completed
- Reservation button click
- Download of a brochure, menu, or PDF
How you configure these depends on your WordPress setup. Some form plugins can trigger events. Tag Manager can also track clicks and form submissions when configured properly.
Be careful with form tracking. Some forms submit through AJAX, some redirect to thank-you pages, and some display an on-page confirmation message. The best tracking method depends on how your form works.
Practical advice: If your form redirects users to a thank-you page, tracking that thank-you page is often simpler. If the form does not redirect, you may need event-based tracking instead.
Step 6: Connect GA4 with Google Search Console
GA4 tells you what visitors do on your site. Google Search Console helps show how your site appears in Google Search.
Using both gives you a clearer picture. For example, Search Console may show that a service page gets impressions for “emergency electrician in Calgary,” while GA4 can show whether visitors from that page actually contact you.
If you have not set up Search Console yet, follow our guide: How to Set Up Google Search Console for Your WordPress Website.
Once both tools are active, you can use them together to answer questions like:
- Which search queries bring visitors?
- Which landing pages attract organic traffic?
- Which pages get traffic but no leads?
- Which pages should be improved, rewritten, or expanded?
This is where analytics becomes useful for SEO. You are not just looking at rankings. You are looking at whether the traffic turns into business.
Step 7: Think About Canadian Privacy Requirements
Canadian businesses should take privacy seriously when using analytics tools. GA4 can collect information about how people use your website, and your privacy policy should explain that clearly.
For many Canadian private-sector businesses, PIPEDA may apply. Depending on your province, sector, and the type of data you collect, other privacy rules may also be relevant.
At a practical level, your website should usually explain:
- What types of information you collect
- Why you collect it
- Which third-party tools may receive data
- How visitors can contact you about privacy questions
- How cookies or analytics tools are used
If your site uses GA4, advertising pixels, remarketing, heatmaps, or call tracking, your privacy policy should not pretend those tools do not exist.
For a Canadian-focused overview, read How to Comply with PIPEDA: Essential Privacy Policy Requirements for Canadian Websites.
Do You Need a Cookie Banner?
The answer depends on your site, your visitors, the tools you use, and your legal obligations. A simple brochure website using basic analytics may have different needs than an e-commerce store running remarketing campaigns.
If you serve visitors in regions with stricter consent rules, or if you use advertising cookies, you may need a more detailed consent setup. Speak with a privacy professional if you are unsure.
From a technical perspective, cookie consent tools can sometimes block GA4 until the visitor accepts analytics cookies. That is expected behaviour when configured that way, but it also means your analytics data may show fewer visitors than your server logs.
That is not automatically a problem. It is better to have privacy-respecting analytics than inflated numbers collected in a questionable way.
What to Track for Different Types of WordPress Sites
Service Business Websites
For trades, consultants, clinics, agencies, and local service businesses, lead tracking matters most.
Track phone clicks, quote forms, service page visits, and contact page visits. If you have service area pages, compare which locations generate traffic and leads.
Do not obsess over blog traffic if those visitors never contact you. A page with fewer visits but more leads is often more valuable.
Law Firm Websites
Law firms should track consultation requests, phone clicks, practice area pages, and attorney bio page visits.
Be careful with privacy. Avoid sending sensitive form details into analytics platforms. You usually want to track that a form was submitted, not the confidential content inside the form.
Healthcare and Dental Websites
Healthcare practices should be especially cautious. Track appointment request actions and page performance, but do not send personal health information into analytics tools.
If your intake forms collect sensitive information, your tracking setup should be reviewed carefully.
Restaurant Websites
Restaurants often benefit from tracking menu views, reservation clicks, online ordering clicks, and location page visits.
If you use a third-party ordering or reservation platform, tracking may become more complicated because visitors leave your website. Some platforms offer analytics or conversion tracking options, but check their current documentation instead of assuming everything carries over automatically.
WooCommerce Stores
For WooCommerce, GA4 can help track product views, cart actions, checkout steps, and purchases when configured properly.
This setup is more involved than a basic brochure website. You may need a WooCommerce-compatible analytics plugin, Tag Manager configuration, or help from a developer.
Do not assume revenue tracking is accurate until you test it. Place test orders, check whether purchases appear correctly, and compare GA4 data against WooCommerce reports.
Common GA4 Mistakes on WordPress
Tracking Everything but Understanding Nothing
GA4 can collect a lot of data. That does not mean all of it matters.
Start with a few key events. Once those are accurate, add more detail if needed.
Not Filtering Internal Traffic
If your team visits the website every day, your own activity can distort reports. This is especially true for small sites with modest traffic.
GA4 has options for identifying internal traffic, but the setup depends on your network and business situation. Check Google’s current documentation before configuring filters.
Forgetting About Staging Sites
If your staging site loads the same GA4 code as your live site, test visits can pollute your data.
This is common during redesigns, maintenance work, and plugin testing. If you use a staging environment, make sure analytics is handled intentionally.
Using Analytics to Avoid Talking to Customers
GA4 can show what people do. It cannot always explain why they do it.
If a page gets traffic but no leads, analytics can flag the issue. You may still need to review the page content, offer, design, speed, and calls to action.
Ignoring Site Speed
Analytics scripts are useful, but they are still scripts. Too many tracking tools can slow down your site, especially if you pile on multiple pixels, heatmaps, chat widgets, and ad tags.
If your WordPress site is already slow, fix the performance problem before adding more marketing scripts. Ambrite’s cloud web hosting uses LiteSpeed, NVMe SSD storage, and Imunify360 to help WordPress sites run quickly and securely. Hosting starts at $7.99/month CAD.
How Long Before GA4 Data Becomes Useful?
You can usually confirm basic tracking shortly after installation, but useful marketing patterns take time.
For a small business website, look at trends over several weeks instead of reacting to one random day. Traffic can fluctuate because of weekends, holidays, weather, seasonality, ad campaigns, and local events.
Do not panic if your numbers look low at first. A local service business does not need thousands of visitors to get value from analytics. It needs the right visitors taking the right actions.
When Not to Set Up GA4 Yourself
GA4 is manageable for basic websites, but there are times when DIY setup may not be worth the frustration.
Consider getting help if:
- You run paid ads and need accurate conversion tracking
- Your site uses WooCommerce
- You have multiple contact forms with different goals
- You need phone click tracking across several locations
- You use a booking system, CRM, or third-party checkout
- You have privacy-sensitive forms
- You are not sure whether GA4 is installed more than once
- Your reports do not match what you see in WordPress or WooCommerce
Bad analytics can be worse than no analytics because it gives you confidence in the wrong numbers. If you are making advertising or SEO decisions from the data, it is worth setting it up properly.
A Simple GA4 Setup Checklist
Use this checklist before you consider the job done:
- Create a GA4 property owned by your business.
- Add your website as a web data stream.
- Choose one installation method: plugin, Tag Manager, or manual code.
- Confirm GA4 loads on all important public pages.
- Check that GA4 is not installed twice.
- Test real-time reporting.
- Set up key events for leads, bookings, calls, or purchases.
- Review your privacy policy and cookie messaging.
- Connect GA4 with Google Search Console where appropriate.
- Review reports monthly instead of obsessing daily.
What to Review Each Month
Once GA4 is installed, set a simple monthly routine. You do not need to live inside analytics every day.
Review:
- Top traffic sources
- Top landing pages
- Pages that bring leads
- Pages with traffic but weak engagement
- Mobile versus desktop behaviour
- Form submissions, calls, bookings, or purchases
- Any sudden traffic drops or unusual spikes
Then pick one improvement. Rewrite a weak service page. Add a clearer call-to-action. Improve a slow landing page. Fix a broken form. Analytics is only useful when it leads to action.
If you would rather have someone handle the technical side, Ambrite can help with WordPress analytics setup, maintenance, hosting, and performance improvements for Canadian small businesses. You can contact Ambrite if you want help setting up GA4 correctly on your WordPress website.
This article was written with the help of AI and reviewed by the Ambrite team. Pricing, features, and technical details may change — always verify with official sources before making decisions.
Was this article useful?
Related Articles
If you're a plumber, electrician, or HVAC contractor, you've probably noticed something...
Your law firm's practice area pages are goldmines waiting to be discovered—or expensive...
If you're running a restaurant in 2026, you've probably claimed your Google Business Profile....
Your phone rings at 8 AM. Another customer found you through Google search, ready to book your...
Getting found on Google isn't about gaming the system or knowing secret tricks. It's about...
