"How does
Google Analytics track data?
Google Analytics tracks all of its data by a unique tracking code that you install on every page of your website. This code is a small snippet of Javascript, or a coding language that runs in viewers’ browser when they visit those pages.
Google Analytics Snippet
The Javascript code works with a larger JavaScript file on the
Google server to collect information on the user’s activity on the site. Each time they visit the site, the code tracks information about their visit. The code also sets a cookie on each visitor’s computer, which provides anonymous information to create user i.d.s.
To get more in-depth information, you can use UTM parameters. These are tags that you add to the end of your URL to provide
Google Analytics with more information about your links, such as what campaign your content is coming from and which social channel is driving the most revenue."