From the course: Google Analytics Quick Start

Unlock the full course today

Join today to access over 23,200 courses taught by industry experts.

How does Google Analytics work

How does Google Analytics work

- Before you're able to make sense of any data, well, you have to capture it. And with Google Analytics, you'll be using the Analytics global site tag. This tag is a little piece of JavaScript code that you'll include on every webpage of the site that you want to collect data. The goal here is to track every interaction as it happens on your website. And by every interaction. I mean, things as simple as loading a page, to completing a specific step in a check-out process, all the way down to how long a particular video was watched. The tracking code will place a cookie in the user's browser for the domain it's installed on, and then any related subdomains. This makes it easy to track traffic on your main site and those subdomains, like blog.yoursite or shop.yoursite. Now, every user interaction will trigger the tracking tag to send data to Google Analytics, and we call this a hit. That hit we'll include all sorts of…

Contents