Website Analytics Setup: How to Track Everything That Matters
- Tarık Tunç

- a few seconds ago
- 6 min read
Why Most Website Analytics Setups Are Broken
⠀
Website analytics setup is done correctly on a minority of business websites. Most setups are incomplete (tracking pageviews but missing the conversion events that reveal revenue impact), misconfigured (double-counting, cross-domain issues, or bot traffic distorting data), or outdated (running Universal Analytics configurations that haven't been updated to GA4).
The consequence is organizational decisions made on bad data. A business looks at declining pageview numbers and makes content changes, when the real issue is a checkout flow problem that no one can see because conversion tracking was never implemented. Or a team celebrates high traffic numbers without knowing that 60% of that traffic is from bots.
A correct analytics setup turns your website into a decision-making engine. Every campaign, every design change, every content investment can be evaluated by its contribution to real business outcomes — leads, sales, calls, signups — not just pageviews and sessions.
⠀
Google Analytics 4: The Current Standard ve Website Analytics Setup
⠀
Google Analytics 4 (GA4) is the current standard for website analytics, having replaced Universal Analytics in 2024. If you're still running on a Universal Analytics property, you're working with an unsupported platform that should have been migrated.
GA4 is built around an event-based data model rather than the session-based model of Universal Analytics. Everything is an event: pageviews, clicks, form submissions, video plays, file downloads, scroll depth milestones. This provides more granular, flexible tracking than Universal Analytics — but requires more intentional configuration to capture the events that matter.
GA4 basic setup checklist:
Create a GA4 property in Google Analytics
Set up a data stream for your website
Install the GA4 measurement ID on your site
Verify data is flowing (check Realtime reports)
Configure basic enhanced measurement events (automatically tracks scrolls, outbound clicks, site search, video engagement, file downloads)
Connect Search Console to your GA4 property for integrated SEO data
⠀
This basic setup captures behavioral data but not conversion data. Conversion tracking requires additional configuration.
⠀
Google Tag Manager: The Implementation Layer
⠀
Google Tag Manager (GTM) is the recommended implementation method for GA4 and all other tracking scripts. Rather than adding tracking codes directly to your website's HTML, GTM provides a container script that loads all other tags.
The benefits of GTM:
Deploy tracking changes without code modifications
Test tags in preview mode before publishing
Manage all third-party scripts from one interface
Reduce page load impact through asynchronous loading and consolidated script management
Maintain a clear audit trail of what's installed and when
⠀
GTM basic setup:
Create a GTM account and container
Add the GTM snippet to every page of your website (in <head> and <body>)
Create a GA4 Configuration tag that fires on all pages
Publish the container
⠀
With GTM installed and the GA4 configuration tag live, all enhanced measurement events flow to GA4 automatically. Additional conversion tracking is configured as additional tags in GTM.
⠀
Tracking the Events That Matter
⠀
The default GA4 setup tracks pageviews and enhanced measurement events automatically. But the events that actually drive business decisions require custom configuration.
Form submission tracking: Track every form submission on your website as a conversion event. For GA4, trigger a generate_lead event (or custom event name) when a form successfully submits. Configure this event as a conversion in GA4.
Implementation via GTM: Create a trigger that fires on form submission confirmation (the thank-you page URL or a form submission event from your form plugin). Create a GA4 event tag that sends generate_lead with relevant parameters (form location, form type).
Click-to-call tracking: For businesses where phone calls are conversions, track clicks on tel: links as conversion events. GTM's built-in click triggers can detect clicks on elements with href attributes beginning with tel:.
⠀
⠀
E-commerce event tracking: GA4's e-commerce model tracks the full purchase funnel: view_item, add_to_cart, begin_checkout, purchase. Implementing these events requires passing product data (name, price, category, SKU) with each event. Most e-commerce platforms (Shopify, WooCommerce) have plugins or native integrations that handle this.
Scroll depth tracking: GA4's enhanced measurement includes scroll tracking (fires when a user scrolls 90% of the page). For more granular data, configure custom scroll depth triggers in GTM that fire at 25%, 50%, and 75% in addition to 90%.
Video engagement tracking: If you embed videos on your site, tracking play rate and completion rate reveals how much visitors engage with video content. GA4 automatically tracks YouTube embeds; for other video players (Vimeo, HTML5 video), custom GTM triggers are needed.
Chat widget engagement: Configure tracking for chat initiation events (when a visitor clicks the chat widget and begins a conversation). This allows you to measure chat conversion rates in GA4.
⠀
Configuring Conversions in GA4
⠀
Conversions in GA4 are specific events that you mark as high-value business outcomes. GA4 automatically tracks purchases as conversions; all other conversion events require manual configuration.
To mark an event as a conversion in GA4: go to Admin > Events, find the event you want to mark, and toggle "Mark as conversion."
Key conversions to configure:
Form submissions (generate_lead)
Phone call clicks
Chat initiations
E-commerce purchases
Newsletter signups
Video plays on key demo/explainer content
⠀
Once marked as conversions, these events appear in the Conversions report and can be used as optimization objectives in Google Ads campaigns.
⠀
Attribution Models and Data Accuracy
⠀
Understanding how GA4 attributes credit for conversions is essential for making correct marketing decisions.
GA4's default attribution model is data-driven attribution — a machine-learning model that distributes credit across multiple touchpoints based on their contribution to conversion. For accounts with insufficient conversion data, it falls back to last-click attribution.
Cross-domain tracking: If your website spans multiple domains (your marketing site on yourcompany.com and your checkout on shop.yourcompany.com), configure cross-domain tracking in GA4 to prevent sessions from breaking at the domain boundary. Without this configuration, conversions on the shop domain appear as direct traffic, hiding which marketing channels drove those sales.
Internal traffic exclusion: Your own team's visits inflate traffic metrics and distort behavioral data. Exclude internal traffic in GA4 (Admin > Data Streams > Configure tag settings > Define internal traffic) by specifying your office IP addresses.
Bot traffic filtering: Enable GA4's built-in spam and bot filtering (Admin > Reporting Identity > check the bot filtering option). This removes known bot traffic from your reports without custom filters.
⠀
Setting Up Google Analytics 4 Audiences
⠀
GA4 audiences are segments of users defined by behavior, demographics, or events. They serve two purposes: segmented reporting (understanding how different user types behave) and remarketing (targeting ad campaigns to specific behavioral segments).
Useful audiences to create:
Visitors who viewed pricing page but didn't convert
Visitors who initiated checkout but didn't purchase
Visitors who submitted a contact form (your converted leads)
Visitors from organic search
Visitors from paid campaigns
⠀
Once created, these audiences are available in your GA4 reports for segmented analysis and can be shared with Google Ads for targeted remarketing campaigns.
⠀
⠀
⠀
GA4 and Search Console Integration
⠀
Connecting Google Search Console to your GA4 property creates an integrated view of organic search performance and on-site behavior.
The integration adds a "Search Console" section to GA4 that shows:
Queries (search terms) that bring visitors to your site and their on-site behavior
Landing page performance (clicks, impressions, CTR from Search Console combined with sessions, bounce rate, and conversions from GA4)
⠀
This integration reveals critical insights: which search queries drive converting visitors vs. high-bounce visitors, and which landing pages have strong organic traffic but poor conversion rates (revealing optimization opportunities).
Blakfy integrates Search Console with GA4 as a standard step in every analytics setup, because the organic search context it adds is essential for making informed SEO and content decisions.
⠀
Frequently Asked Questions
⠀
How do you verify that GA4 is working correctly?
Use the GA4 Realtime report to verify event tracking is working: perform the actions you've configured as events (submit a form, click a CTA, scroll to 90% depth) and check whether they appear in the Realtime report within 30 seconds. Use GA4's Debug View (enable via browser extension or GTM preview mode) for granular event inspection during testing.
Should every business use Google Tag Manager?
GTM is recommended for most businesses with more than basic pageview tracking requirements. For very simple sites with only a GA4 pageview requirement, adding GA4 directly via script tag is acceptable. But as soon as you need conversion tracking, multiple marketing pixels, or A/B testing scripts, GTM's centralized management provides immediate organizational value.
How do you handle analytics tracking consent in GDPR-regulated markets?
In EU markets, analytics tracking (which sets cookies and processes personal data) requires user consent before activating. Implement a cookie consent management platform (CMP) — OneTrust, Cookiebot, or Complianz are popular options — that gates analytics tags in GTM behind user consent. Configure GTM's consent mode to adjust data collection based on user consent status.
