Unit 1 - Platform Fundamentals
Course overview
The platform components
Collection
For example, you’ll use the JavaScript tracking code to collect data from a website, but a Software Development Kit, called an SDK, to collect data from a mobile app.
Processing and Configuration
You can also configure Google Analytics to import data directly into your reports from other Google products, like Google AdWords, Google AdSense and Google Webmaster Tools. You can even configure Google Analytics to import data from non-Google sources, like your own internal data.
Reporting
Using the API you can build your own reporting tools or extract your data directly into third-party reporting tools.
The data model
Users: visitors
Sessions
Interactions: Individual interactions are called hits.
Each interaction that Google Analytics tracks belongs to a session, and each session is associated with a user.
Unit 2 - Collection
Data collection overview
<script>
(function(i,s,o,g,r,a,m){i[GoogleAnalyticsObject]=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,script,//www.google-analytics.com/analytics.js,ga);
ga(create, UA-12345-6, auto);
ga(send, pageview);
</script>
<!-- End Google Analytics
For your own account, you can find the tracking ID in the account administrative settings.
Sessions
Interactions: Individual interactions are called hits.
Each interaction that Google Analytics tracks belongs to a session, and each session is associated with a user.
Unit 2 - Collection
Data collection overview
- it’s the tracking code that gathers and sends the data back to your account for reporting
- Using hits to collect and send data
- In the example, everything after the question mark is called a parameter. Each parameter carries a piece of information back to Google’s analytic servers.
- utmul=, which shows the language that the user’s browser is set to.
- In addition to creating hits, the tracking code also performs another critical function. It identifies new users and returning users.
<script>
(function(i,s,o,g,r,a,m){i[GoogleAnalyticsObject]=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,script,//www.google-analytics.com/analytics.js,ga);
ga(create, UA-12345-6, auto);
ga(send, pageview);
</script>
<!-- End Google Analytics
For your own account, you can find the tracking ID in the account administrative settings.
Website data collection
Understand how the Google Analytics JavaScript website tracking code collects data.
To track data from a website, Google Analytics provides a standard snippet of JavaScript tracking code. This snippet references a JavaScript library calledanalytics.js that controls what data is collected.
- Adding the Google Analytics JavaScript code to your website
- Simply add the standard code snippet before the closing </head> tag in the HTML of every web page you want to track.
- Functions of the web tracking code
- The Google Analytics tracking code executes JavaScript asynchronously, meaning that the JavaScript runs in the background while the browser performs other tasks.
Mobile app data collection
- Using the Google Analytics mobile SDKs
- Instead of using JavaScript to collect data like you do on a website, youll use an SDK, or Software Development Kit, to collect data from your mobile app.
- Dispatching
- When a user navigates through an app, the Google Analytics SDK stores the hits locally on the device and then sends them to your Google Analytics account later in a batch process called dispatching.
- For these reasons, the SDKs automatically dispatch hits every 30 minutes for Android devices and every two minutes for iOS devices,
Measurement Protocol data collection
what if you want to collect data from some other kind of device? For example, you might want to track a point-of-sale system or user activity on a kiosk.
- Collecting and sending data with the Measurement Protocol
- For instance, let’s say we want to collect data from a kiosk. Here’s a sample hit that will track when a user views a screen on the kiosk:
- http://www.google-analytics.com/collect?v=1&tid=UA-XXXX-Y&cid=555&sr=800x600&t=pageview&dh=mydemo.com&dp=/home&dt=homepage
- Notice there is a parameter in the hit that contains the screen resolution. This particular parameter will become the dimension Screen Resolution during processing.
With the Measurement Protocol, you can use Google Analytics to collect data from any kind of device.
Unit 3 - Processing & Configuration
Processing & configuration overview
Processing data and applying your configuration settings
- Google Analytics organizes the hits you’ve collected into users and sessions.
- data from other sources can be joined with data collected via the tracking code. For example, you can configure Google Analytics to import data from Google AdWords, Google AdSense or Google Webmaster Tools.
- Google Analytics processing will modify your data according to any configuration rules you’ve added.
- the data goes through a process called “aggregation.”
Processing hits into sessions & users
- How hits are organized by users
- Google Analytics creates a random, unique ID that is associated with the device. Each unique ID is considered to be a unique user in Google Analytics.
- It’s possible for these IDs to get reset or erased. This happens if a user clears their cookies in a web browser, or uninstalls and then reinstalls a mobile app.
- How hits are organized into sessions
- A session in Google Analytics is a collection of interactions, or hits, from a specific user during a defined period of time.
- By default, a session ends after 30 minutes of inactivity.
Importing data into Google Analytics
The most common way to get data into Google Analytics is through your tracking code, but you can also add data from other sources.
- Importing data into Google Analytics
- Account linking
- Google AdWords
- Google AdSense
- Google Webmaster Tools
- Data Import
(1). Dimension Widening
- if you’re a publisher you might want to segment your data based on the author and topic of your online articles.
- With Dimension Widening, you could import author and topic as new dimensions for your content pages. You could use each article’s page URL as the “key” that links the new data to your existing Google Analytics data.
- You can add data using Dimension Widening either by uploading a file or by using the Google Analytics APIs. Uploading a file, like a spreadsheet or .CSV, is easy, but it can be time consuming if you need add data often. To save time, you can build a program that uses the APIs to automatically send data into Google Analytics on a regular basis.
(2). Cost Data Import
Although you’ll collect most of your data using the tracking code, account linking and data import are two powerful ways to add more context to your Google Analytics data. By choosing the right data sources to link or import into Google Analytics, you can better measure the performance of your business.
Transforming & aggregating data
Unit 4 - Reporting
Reporting overview
Building reports with dimensions & metrics
Understand how metrics and dimensions are combined to build reports and which dimensions and metrics can be used together
The reporting APIs
Report sampling
Final Assessment
- You use this feature specifically to add data that shows the amount of money you spent on your non-Google advertising. Importing cost data lets Google Analytics calculate the return-on-investment of your non-Google ads.
- The role of configuration settings during processing
- including data, excluding data, or modifying how data appears in a reporting View
- Filters, Goals, and Grouping.
- Common configuration settings: Filters
- Filters provide a flexible way you can modify the data within each view.
- Example, create a filter to exclude traffic from a particular IP address or to convert messy page URLs into readable text.
- Common configuration settings: Goals
- Goals let you specify which pageviews, screen views or other hits should be used to calculate conversions.
- Common configuration settings: Channel Grouping and Content Grouping
- aggregate certain pieces of data together so you can analyze the collective performance.
- You can create two types of groups in Google Analytics: Channel groups and Content groups.
- A Channel Group is a collection of common marketing activities. For example, Display Advertising, Social media, Email marketing, and Paid Search are four common channel groups that are each a roll-up of several marketing activities.
- Content Groups are like Channel Groups, except you use them to create and analyze a collection of content.
- Data aggregation
- During aggregation, Google Analytics creates and organizes your report dimensions into tables, called aggregate tables.
Unit 4 - Reporting
Reporting overview
- All Google Analytics reports are based on different combinations of dimensions and metrics.
- In addition to the reporting interface, you can use an API, or an Application Programming Interface, to extract your data directly from Google Analytics.
- Most of the time, when you request data from the reporting interface or the APIs you’ll receive your data almost immediately. But in some cases, where you request complex data, Google Analytics uses a process called sampling.
Building reports with dimensions & metrics
Understand how metrics and dimensions are combined to build reports and which dimensions and metrics can be used together
- Dimensions in Google Analytics
- a dimension of a session is the traffic source that brought the user to your site.
- Metrics in Google Analytics
- Metrics are the quantitative measurements of your data. They count how often things happen, like the total number of users on a website or app.
- Combining dimensions and metrics in reports
- Most commonly, you’ll see dimensions and metrics reported in a table, with the first column containing the values for one particular dimension, and the rest of the columns displaying the corresponding metrics.
The reporting APIs
- To use the reporting APIs, you have to build your own application. This application needs to be able to write and send a query to the reporting API. The API uses the query to retrieve data from the aggregate tables, and then sends a response back to your application containing the data that was requested.
- the reporting APIs give you the power to automate and streamline complex reporting tasks for your business.
Report sampling
- When does sampling happen?
- Google Analytics checks to see how many sessions should be included in your request. If the number of sessions is small enough, Google Analytics can calculate the data for your request using all of the sessions. If the number of sessions is too large, Google Analytics uses a sample to fulfill the request
- Adjusting the sample size
- The sampling limit
- Google Analytics sets a maximum number of sessions that can be used to calculate your reports. If you go over that limit, your data gets sampled.