Measure. Investigate. Decide.
Web analytics: a practical guide to measuring what matters
Web analytics helps you understand how people find your website, what they do, and whether those visits produce useful outcomes. Start with a business question, collect the evidence you need, and use it to make a decision.
This beginner guide covers measurement planning, Google Analytics 4 (GA4), Google Tag Manager (GTM), campaign tracking, funnels, ecommerce, reporting, and troubleshooting. Use a test website and fictional records for the implementation exercises.
1. Learn the fundamentals and write a measurement plan
A user represents a person as recognised by your analytics system; it is not a perfect count of unique human beings. A session groups activity within a visit under the tool’s rules. An event records an interaction. A dimension describes data, such as device category, while a metric measures it, such as session count.
Define a conversion as a meaningful business outcome: an accepted enquiry, completed registration, or paid order. In GA4, important events can be marked as key events. Google Ads conversions have their own configuration; do not assume that marking a GA4 event automatically completes your advertising setup. See Google’s events overview.
Begin with a question you can act on
For a workshop website, ask: “Which campaigns bring visitors who complete registration?” Write down the objective, audience, outcome, event definition, reporting breakdowns, owner, and intended decision.
Business objective: Increase completed workshop registrations. Primary outcome: A confirmed registration saved by the application. Event: sign_up, sent after successful registration. Useful parameters: workshop_id and registration_method. Breakdowns: session source/medium, landing page, device category. Checks: No success event on validation failure or button click alone. Decision: Investigate weak steps before changing campaign spend. Owner: Assign one person to review the weekly report.
Try it: write a one-page measurement plan for your own site. Define the denominator for every rate. For example, sessions with at least one registration divided by eligible sessions is different from registration event count divided by sessions.
2. Set up GA4 and Google Tag Manager deliberately
GA4 collects and reports analytics data. GTM manages tags and the conditions under which they run. Installing GTM alone does not create a complete measurement implementation.
- Inventory the current setup. Check for existing tags, plugins, containers, and consent controls before adding another installation.
- Configure the property and web data stream. Confirm ownership, access, reporting time zone, currency, and the intended website.
- Choose an installation route. Use a Google tag through your selected method and avoid accidental duplicate page-view collection from multiple installations.
- Review automatic collection. Check enabled enhanced measurement features so your custom implementation does not repeat the same interaction.
- Validate before publishing. Use a test property where appropriate, inspect tag behaviour, and confirm that data arrives in the intended destination.
- Document the release. Record the container version, changes, expected events, and rollback plan.
A tag sends or processes information; a trigger controls when it runs; a variable supplies a value. GTM Preview lets you test a container draft before publication. Preview can still send real requests, so choose your test destination carefully. Follow Google’s preview and debugging guide.
Check: load a test page, inspect its page-view behaviour, navigate to another page, and confirm the expected events and destination. For a single-page application, also test navigation that does not reload the document.
3. Track events, business outcomes, and ecommerce
Choose meaningful event definitions
Build an event specification with the name, exact firing condition, parameters, consent expectations, and test steps. Prefer an appropriate existing recommended event before inventing a custom name. Google documents recommended events, including lead and registration actions.
- Clicks: measure interest in a call to action, while keeping the completed outcome separate.
- Forms: verify submission success from the application rather than relying on a submit-button click.
- Downloads and video: define what the interaction proves. A download click does not prove a document was read.
- Key events: mark the actions central to your objective and verify their counting rules.
Use stable identifiers such as a workshop code. Do not send names, email addresses, free-text form answers, or other personal information as analytics parameters.
Measure the ecommerce journey
Plan product views, cart additions, checkout starts, purchases, and refunds. Ecommerce needs an explicit implementation; a standard page-view tag does not supply all purchase information. Match event names and parameters to the official ecommerce specification.
For purchase testing, verify a unique transaction ID, value, currency, and item details. Compare test orders with your order system, test revisiting the confirmation page, and check refund handling. Your order system remains the reference for actual orders; analytics collection can be incomplete.
Try it: test a successful registration, a failed submission, repeated clicks, and a confirmation-page refresh. Document when the success event should occur and identify any duplicates.
4. Understand traffic acquisition and campaign tracking
Acquisition analysis explains where measured visits come from: search, advertising, email, social platforms, referrals, and other sources. Direct traffic is not proof that every visitor typed your URL; it can include visits without usable source information.
Distinguish first-user acquisition from session acquisition. A person might first discover your site through search and return through email. These answer different questions, so select a report and scope that match your analysis. See Google’s acquisition report comparison.
Create a campaign naming convention
Example external newsletter link: https://example.com/workshop?utm_source=newsletter&utm_medium=email&utm_campaign=analytics_intro&utm_content=hero_button source: The publisher or platform. medium: The channel type, using an agreed naming convention. campaign: The initiative you want to compare. content: The link or creative variation.
Use consistent spelling and case, keep a campaign register, and verify that redirects preserve the parameters. Do not add campaign UTMs to internal navigation. Where ad integrations use automatic tagging, confirm how it works with your manual conventions before adding parameters.
Try it: build three external campaign links, visit each in a controlled test, and confirm the landing URL and expected attribution. Allow for reporting processing before deciding that a campaign is missing.
5. Analyse funnels, journeys, segments, and cohorts
A funnel measures progression through defined steps, such as landing page → registration start → confirmed registration. Specify the population, step order, time window, and whether users may enter after the first step. Without those definitions, two funnel reports can give different answers to seemingly identical questions.
Path analysis explores common navigation sequences. It suggests where to investigate, but a path alone does not explain why a visitor acted. Pair the numbers with usability observations and feedback.
- Segments: compare meaningful groups such as mobile and desktop visitors or campaign audiences.
- Cohorts: group users by a shared starting point, such as first activity week, and compare later behaviour.
- Engagement: interpret activity in the context of the page’s purpose. More time can indicate either interest or difficulty.
Try it: identify the largest registration drop-off, split it by device, and inspect that step on a phone. Write one observation, two possible explanations, and one check that distinguishes them.
6. Evaluate landing pages, content, and SEO
Judge each page against its intended task. A guide may answer a question and lead to another useful article; a registration page should help an eligible visitor complete registration. Page views alone cannot tell you whether either page succeeds.
For SEO, use search performance data to understand visibility and clicks, then use on-site analytics to study measured behaviour and outcomes. Search Console clicks and GA4 sessions have different definitions and collection methods; do not expect them to match exactly.
Try it: select three landing pages and record their purpose, acquisition sources, relevant outcome rate, and a proposed improvement. Check device mix and traffic changes before concluding that the content caused a performance change.
7. Understand attribution and build decision-focused reports
Attribution assigns credit for outcomes to touchpoints according to a model. It does not, by itself, prove that a channel caused incremental sales. Scope, lookback windows, identity, consent, and collection gaps can affect the result.
A weekly dashboard should show the objective, outcome count, a clearly defined rate, useful breakdowns, and data limitations. Include date ranges, comparison periods, time zones, and annotations for releases and campaigns.
Weekly reporting template Question: Are eligible visitors completing registration? Evidence: Sessions, sessions with registration, and completion rate. Breakdown: Session source/medium, landing page, and device. Change: Compare equivalent weekdays and campaign conditions. Uncertainty: Note tracking changes, processing, and missing data. Next step: State the investigation or decision and its owner.
Check: recompute one rate independently. Explain whether each chart counts users, sessions, events, or orders. Include lead quality or revenue from the business system when those outcomes matter more than form volume.
8. Diagnose data quality problems before changing strategy
A sudden traffic drop can reflect a collection change, a channel classification change, an actual audience decline, or a combination. Compare independent evidence before settling on a story.
- Locate the change. Find the date and affected pages, channels, devices, and events.
- Review releases. Look for tag, consent, redirect, website, filter, and campaign changes.
- Reproduce the journey. Check browser requests, tag triggers, parameters, and the intended property using debugging tools.
- Compare independent records. Inspect orders, accepted enquiries, ad clicks, search clicks, or server evidence as appropriate.
- Check report assumptions. Confirm date ranges, time zones, scope, filters, processing, and data-quality notices.
- Document the diagnosis. Record evidence, fix, verification, and which historical comparisons are affected.
Try it: investigate a fictional case where recorded sessions fall sharply while confirmed orders remain steady. Propose a tracking explanation and a business explanation, then identify evidence that would support or weaken each.
9. Plan privacy, consent, access, and retention
Record what information you collect, why you need it, who can access it, and how long you intend to keep it. Inspect URLs and event parameters so personal information does not leak through page locations or form values. Use approved test data while learning.
Consent mode adjusts Google tag behaviour based on consent signals; it does not supply a consent banner. Choose a consent implementation that fits your requirements and test initial, accepted, rejected, and changed choices. See Google’s consent mode overview.
Review property permissions and retention settings. Retention settings affect particular user-level and event-level uses; they should not be treated as a single expiry switch for every report or exported copy. Check the data retention documentation for your setup.
Check: document what your implementation sends under each consent state and verify that behaviour in the browser, rather than relying on the banner’s appearance.
10. Learn experimentation and advanced analytics
A/B testing and conversion optimisation
Write a hypothesis, primary metric, guardrail metrics, eligible audience, and decision rule before starting. Randomise consistently and allow sufficient observations for the effect you need to detect. Avoid repeatedly checking results and stopping at the first favourable difference.
Exercise: propose a clearer registration form and define how you would evaluate completed registrations and lead quality. Use qualitative feedback when there is too little traffic for a useful experiment.
Cross-domain measurement
For a journey that moves between your website and a controlled booking domain, plan how continuity will be maintained. Test redirects, link decoration, consent, and unwanted self-referrals. Confirm what the third-party platform actually lets you configure.
Server-side tagging
A server container can provide more control over routing and processing measurement requests. It introduces hosting, configuration, and monitoring responsibilities. It does not remove consent obligations or guarantee complete data.
BigQuery and SQL
Learn event-level data structures, nested parameters, timestamps, joins, and cost-aware querying. Define user and session logic explicitly, and reconcile findings with interface reports before assuming a difference is an error. Start with sample data and bounded queries.
A practical web analytics project and learning plan
Project: measure a fictional workshop website from campaign click to accepted registration. Produce evidence that another person can review.
- Week 1 — plan. Define the objective, KPIs, event specification, campaign conventions, and privacy expectations.
- Week 2 — implement and validate. Configure a test destination, instrument the core journey, and test successful, failed, duplicate, and consent scenarios.
- Week 3 — analyse. Build an acquisition report and funnel. Compare devices and landing pages, and reconcile outcomes with accepted registrations.
- Week 4 — communicate. Create a dashboard, investigate one anomaly, and propose an improvement with a measurable hypothesis.
Your handover should include the measurement plan, event dictionary, test results, campaign register, dashboard definitions, known limitations, and one recommended next investigation.
If you are comparing a web analytics course, GA4 course, or GTM workshop, ask whether you will implement tracking, debug your own work, and explain a business decision from the evidence. Confirm access requirements and whether you will work in a safe test environment.
Common beginner questions
Do I need to know coding?
You can begin with measurement planning and reporting without coding. Reliable custom tracking benefits from understanding HTML, JavaScript events, and the data layer. Work with a developer when business outcomes need application confirmation.
Why do analytics tools disagree?
They may use different definitions, attribution, time zones, collection methods, filters, and consent handling. Identify which metric each system actually measures before comparing totals.
Should every interaction be a key event?
Choose meaningful outcomes tied to your objectives. Keep supporting interactions available for diagnosis without treating every click as a business success.
Can AI help with analysis?
AI can help draft questions, explain a formula, or propose competing explanations. Check calculations and supporting evidence yourself, and use approved data. See the Practical AI guide for a repeatable review workflow.