Advanced Google Analytics Flashcards
How does G.A. collect website data?
Google Analytics collects data from websites using a snippet of JavaScript tracking code embedded on each page of the site.
This tracking code is responsible for monitoring user interactions on the website, such as page views, clicks, and other events.
How are users tracked?
When a user visits a website with the tracking code, Google Analytics places a cookie in the user’s browser.
This cookie is associated with the domain of the website and any related subdomains, allowing Analytics to track user activity within that domain.
How does G.A. count the users across the website and its subdomains?
The tracking code defines the website’s domain as a “site” in the reports of Google Analytics.
By default, Analytics tracks traffic on a single website URL domain or subdomain separately.
If the same tracking code is installed on pages with different domains, Analytics counts users and sessions separately.
What happens when multiple domains have the same tracking ID (Web Property ID)?
Analytics will count users and traffic sources separately for each one.
EX: If a user navigates from one subdomain to another, G.A. will consider this as referral traffic.
If a user visits both the main domain and the subdomain, they will be counted as separate users for each domain.
What is Web Property ID?
- The Web Property ID (also known as Tracking ID) is a unique identifier assigned to each property in Google Analytics.
- It is a string of characters that is used to distinguish one website or mobile app from another within a Google Analytics account.
- When you create a new property in your Google Analytics account, you are given a Web Property ID that you need to include in the tracking code installed on your website or app.
How to track users across different domains?
Cross-domain tracking
What is a domain?
Web address used to identify a specific location on the internet.
What are the 2 parts of a domain?
1) Domain name- example.com (domain name= example)
2) Top-level domain (TLD)- .com, .org, .UK etc.
What is a hit?
A “hit” is a URL string containing parameters of useful information about the user’s activity on the website.
When are hits generated?
With each user interaction, the tracking code sends a “hit” to Google Analytics.
What information is passed in hits?
Hits contain data such as the user’s browser language, viewed page name, screen resolution, and Analytics ID.
Other information, like a randomly-generated user identifier, distinguishes between new and returning users.
What are the most common hits?
1) Pageview hit- occur when a user loads a webpage with the tracking code.
2) Event hit- tracks user interaction with particular elements on the website.
3) Transaction hit/ E-commerce hit- records data about e-commerce purchases, transaction IDs and Stock Keeping Units (SKU)
Event hits pass 4 parameters of data in the URL:
- Action: if a user clicks on a “Play” button for a video, the action might be labeled as “Play Video.”
- Category: groups similar types of actions or interactions together for organizational purposes.
all video-related interactions might be grouped under the category “Videos.” - Label: additional context or description for the action being tracked.
It adds specificity to the action by providing details such as the name of the video, the URL of the clicked link, or the title of the downloaded file. - Value: quantifies the significance or impact of the event, providing a measure of its value or importance.
This parameter is optional and can be used to track metrics such as revenue, time spent, or the number of items purchased.
Enhanced Ecommerce
Enhanced Ecommerce allows passing additional ecommerce data to Google Analytics, such as:
- product category
- products added/ removed from shopping cart
- product views
Other hits
Social hits: When users engage with social sharing buttons. ex: like, comment, share
Page timing hits: time taken for certain user actions/ processes. ex: loading time etc
How does G.A. use hits?
Google Analytics combines hit data with additional sources like IP addresses, server logs, and ad-serving data.
This widened data includes user location, browser details, demographics, and referral sources.
What are dimensions?
Ways to categorise or contextualise metric data.
How does G.A. process data (3 steps)?
1) Determines New vs. returning users.
2) Categorises hits into sessions
3) Combines data from the tracking code with other data sources.
How does G.A. distinguish between new and returning users?
1) The user arrives on site with the tracking code
2) G.A. creates a unique, random ID that gets associated with the user’s browser cookie.
3) each unique code= separate user
New ID detected= new visitor
Existing ID detected= returning vistor
What are the limitations to tracking users using browser cookies?
1) Loss of user information if the user clears or blocks cookies on their browser.
2) G.A. doesn’t recognise users who visit the site from different devices by default.
each device= unique user
To track users across devices
Enable User ID feature
What are sessions?
periods of user engagement with a website
When does a session begin?
A session begins when a user accesses a page with the tracking code and generates a “pageview” hit.
What are the 2 methods by which a session ends?
1) Time-based expiration:
* After 30 mins of inactivity
* at midnight
2) Campaign change:
* if a user arrives via one campaign, leaves, and then returns via a different campaign.