0Pricing
Digital Marketing Academy · Lesson

Tracking Website Visitors

Install analytics tools and understand who visits your site and what they do.

Tracking Website Visitors is a free Digital Marketing Academy lesson on CoddyKit — lesson 4 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Digital Marketing Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Why Analytics Are Essential

Without analytics, digital marketing is guesswork. Analytics tools tell you exactly how many people visit your site, where they come from, which pages they read, how long they stay, and whether they took the actions you wanted. This data is what separates intentional marketing from random activity.

Installing Google Analytics 4

Google Analytics 4 (GA4) is the current standard web analytics platform. To install it, create a GA4 property in Google Analytics, copy the provided JavaScript tag, and add it to every page of your website. Most website platforms like WordPress, Squarespace, and Webflow have built-in GA4 integration or plugins that simplify this process.

What the GA4 Overview Report Shows

The GA4 overview report gives you a snapshot of your website's recent performance: total users, new vs returning user ratio, average engagement time, events triggered, conversions recorded, and top traffic sources. Check this report regularly to spot unusual spikes or drops that require investigation.

Sessions vs Users vs Pageviews

In GA4, a user is a unique device or browser that visited your site. A session is a period of continuous activity by one user (typically ending after 30 minutes of inactivity). An event or pageview is a specific action or page load within a session. One user can have multiple sessions, each containing multiple pageviews.

Engagement Rate and Bounce Rate

GA4 replaced traditional bounce rate with engagement rate — the percentage of sessions lasting longer than 10 seconds, having a conversion event, or viewing 2 or more pages. An engagement rate above 60% is generally healthy. Low engagement rate suggests your landing pages are not matching visitor expectations or intent.

Traffic Source Breakdown

The traffic acquisition report shows where your visitors come from: organic search (SEO), direct (typed your URL or bookmark), referral (links from other websites), social (social media platforms), and paid search or paid social (your advertisements). Understanding your traffic mix helps you identify which channels to invest in more.

Top Pages Report

The pages and screens report reveals which content on your site receives the most traffic. Your highest-traffic pages deserve the most attention — ensure they have strong calls to action, good conversion rate optimization, and internal links guiding visitors to your most important offers. Improving your top pages has an outsized impact on overall results.

Goal Setup for Key Actions

In GA4, key actions like form submissions, button clicks, PDF downloads, and purchases are tracked as conversion events. Set up these conversions by marking the relevant events as conversions in the GA4 interface, or by creating custom events triggered by specific actions. Tracking conversions transforms analytics from traffic data into business performance data.

Google Search Console Overview

Google Search Console shows you exactly which search queries are bringing people to your site, your average position in search results, your click-through rate from search, and any technical issues Google found when crawling your pages. It is an essential companion tool to GA4 and completely free to use.

Using Data to Improve Your Website

Analytics value comes from the actions you take based on data. If organic search brings the most traffic, invest more in SEO. If your top blog post has a 90% exit rate, add a stronger CTA or internal link. If mobile users have significantly lower engagement, prioritize mobile experience improvements. Let the data guide your priorities.

Heatmaps and Session Recordings

Tools like Hotjar or Microsoft Clarity go beyond aggregate analytics to show exactly where visitors click, how far they scroll, and recordings of real browsing sessions. Heatmaps often reveal counterintuitive behaviors — visitors clicking on non-clickable elements, ignoring your main CTA, or leaving before seeing your key content — that raw numbers cannot explain.

Analytics Basics

Google Analytics 4 provides essential insights for understanding and improving website performance.

Lesson Recap

Install Google Analytics 4 and Google Search Console on every website as the baseline for data-driven marketing. Understand the difference between users, sessions, and pageviews. Monitor traffic sources to see which channels are working, review your top pages to optimize them further, and set up conversion events to track meaningful business actions. Supplement with heatmaps and session recordings to understand the qualitative "why" behind the quantitative data.

Frequently asked questions

Is the “Tracking Website Visitors” lesson free?

Yes — the full text of “Tracking Website Visitors” is free to read here on the web, and the Digital Marketing Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Digital Marketing Academy course, upgrade to CoddyKit PRO.

What will I learn in “Tracking Website Visitors”?

Install analytics tools and understand who visits your site and what they do. You practise Digital Marketing Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Digital Marketing Academy?

No prior experience is required. Digital Marketing Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 4 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Tracking Website Visitors” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Digital Marketing Academy lesson?

Yes. Every Digital Marketing Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Website Essentials for Marketing
  2. Landing Pages That Convert
  3. Basic On-Page SEO Techniques
  4. Tracking Website Visitors
← Back to Digital Marketing Academy