How to Set Up Google Analytics 4 and Google Tag Manager for Your Business Website

A step-by-step guide to implementing GA4 and GTM on your website, covering account setup, data streams, event tracking, conversion goals, and custom dashboards for actionable business insights.

google-analyticsga4gtmanalyticsbusiness

By Keegan Kelly

Why GA4 and GTM Matter for Your Business

If you're running a business website without proper analytics, you're essentially flying blind. Google Analytics 4 (GA4) and Google Tag Manager (GTM) are the industry-standard tools for understanding how visitors interact with your site, which marketing channels drive results, and where you're losing potential customers.

Having implemented GA4 and GTM configurations for dozens of clients, I've seen firsthand how proper analytics setup can transform decision-making. Here's a comprehensive guide to getting it right from the start.

Step 1: Create Your GA4 Property

Start by heading to analytics.google.com and creating a new property:

  1. Click Admin in the bottom-left corner
  2. Select Create Property
  3. Enter your property name (e.g., "Your Business Name - Website")
  4. Set your reporting timezone and currency
  5. Choose your business category and size

Configure Your Data Stream

After creating the property, you'll need to set up a web data stream:

  1. Click Data Streams under your property
  2. Select Web
  3. Enter your website URL and stream name
  4. Enable Enhanced Measurement — this automatically tracks page views, scrolls, outbound clicks, site search, video engagement, and file downloads

Copy your Measurement ID (starts with G-). You'll need this in the next step.

Step 2: Set Up Google Tag Manager

GTM is the container that manages all your tracking tags without touching your website code directly. This is crucial for maintaining clean code and making future tracking changes easy.

  1. Go to tagmanager.google.com
  2. Create a new account and container (select "Web")
  3. Install the GTM snippet on your site — the code goes in the <head> and after the opening <body> tag

Connect GA4 to GTM

Create your first tag:

  1. In GTM, go to TagsNew
  2. Select Google Analytics: GA4 Configuration
  3. Enter your Measurement ID from Step 1
  4. Set the trigger to All Pages
  5. Save and publish

Step 3: Configure Key Events

GA4 is event-based, meaning every interaction is tracked as an event. Here are the essential events to configure for most business websites:

Form Submissions

Track when visitors submit your contact form, quote request, or newsletter signup:

  • Event name: form_submission
  • Parameters: form_name, form_location
  • Use a GTM trigger that fires on form submission (CSS selector or form ID)

Button Clicks

Track clicks on important CTAs like "Get a Quote" or "Book a Call":

  • Event name: cta_click
  • Parameters: button_text, page_location
  • Use a GTM Click trigger with appropriate CSS selectors

Phone Number Clicks

If your site displays a phone number, track when users tap to call:

  • Event name: phone_click
  • Trigger: Click URL contains tel:

Step 4: Set Up Conversions

In GA4, mark your most important events as conversions:

  1. Go to AdminEvents
  2. Find your key events (e.g., form_submission, phone_click)
  3. Toggle the Mark as conversion switch

This tells GA4 which events represent business value, enabling you to:

  • See which traffic sources drive conversions
  • Calculate conversion rates by channel
  • Optimize your marketing spend

Step 5: Build Your First Dashboard

GA4's built-in reports are a good start, but for actionable insights, I recommend building custom dashboards in Looker Studio (formerly Google Data Studio). Connect your GA4 property as a data source and create visualizations for:

  • Traffic overview: Users, sessions, and page views over time
  • Channel performance: Which sources (organic, paid, social, direct) drive the most conversions
  • Top pages: Which pages get the most traffic and engagement
  • Conversion funnel: Where users drop off before completing a form submission

Common Mistakes to Avoid

  1. Not filtering internal traffic — Exclude your own IP address to keep data clean
  2. Ignoring cross-domain tracking — If you have multiple domains, configure cross-domain measurement
  3. Too many custom events — Focus on events that drive business decisions, not vanity metrics
  4. Not testing before publishing — Always use GTM's Preview mode to verify tags fire correctly
  5. Skipping data retention settings — Set your data retention to 14 months in GA4 Admin

Next Steps

Once your basic setup is in place, consider these advanced configurations:

  • Custom dimensions for user segmentation (e.g., customer type, industry)
  • E-commerce tracking if you sell products online
  • Server-side tagging for improved data accuracy and performance
  • BigQuery export for advanced analysis with SQL

Need help setting up GA4 and GTM for your business? I've implemented analytics solutions for businesses of all sizes. Get in touch to discuss your project, or explore my portfolio to see data engineering projects I've delivered.

Let's Build Something Together

Whether you need a web application, analytics dashboard, or data pipeline — I'm here to help. Fill out the form below, or reach out directly via WhatsApp or phone.