GoogleLesson 321Free preview
Google Set up Analytics
This lesson is part of How To · All levels
Summary
Google Analytics helps site owners understand the number of visits, traffic sources, and visitor behavior. The installation is done by adding the gtag.js tag containing the Measurement ID to the page head section. Once installed, monitor real-time reports to ensure data is actually in and respect user privacy rules.
Key points
- Measurement ID of Google Analytics 4 is started with G-
- Tag gtag.js is inserted in the head of each page to be tracked
- The gtag function sends configurations and events to Google services
- Real-time reports help verify the installation
- Include privacy notices and cookie permissions if necessary
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.