This simple guide covers specific examples, scenarios, and best practices to ensure accurate tracking and actionable insights.
Goals in Universal Analytics measure completed actions like form submissions, purchases, or time spent on a page.
Use a Template (e.g., Make a Payment, Sign Up) or Custom for unique goals.
Configure Goal Type:
Destination: Track visits to a specific URL (e.g., a "Thank You" page).
Duration: Measure sessions lasting a specific time (e.g., >2 minutes).
Pages/Screens Per Session: Count sessions where users view multiple pages (e.g., >3 pages).
Event: Track actions like clicks, downloads, or video plays (requires event tracking setup).
Add Goal Details:
Example for Destination Goal:
/thank-you.html
. /cart > /checkout > /thank-you
). Save the Goal and Test It:
| Goal Name | Goal Type | Details |
|-----------------------------|------------------|-----------------------------------------------------------|
| Completed Purchase | Destination | URL: /thank-you.html
. |
| Engaged Users | Duration | Time spent on site > 3 minutes. |
| Content Engagement | Pages/Sessions | User views more than 5 pages in a session. |
| Newsletter Signup | Event | Tracks clicks on the "Sign Up" button. |
Events track user interactions, such as button clicks, downloads, or video plays. Events are set up using Google Tag Manager (GTM) or custom code.
Use Google Tag Manager (GTM) for simple setup:
Log in to GTM and create a new Tag.
Select Tag Type: Google Analytics: Universal Analytics.
Choose Track Type: Event.
Define Event Parameters:
Example:
Set up a Trigger:
Choose a trigger (e.g., Button Clicks, Page Views).
Configure the condition:
button text = "Download Now"
. Publish the Tag and Test:
Use GTM’s Preview Mode to ensure the event is firing correctly.
View Event Data:
| Event Name | Category | Action | Label |
|--------------------------|--------------------|---------------------|--------------------------|
| Download Ebook | Download | Click | Ebook_PDF |
| Watch Promo Video | Video | Play | Homepage_Video |
| Add to Cart | E-commerce | Click | Product_Add_To_Cart |
| Contact Us Submission | Form | Submit | Contact_Form |
GA4 handles goals and events differently. In GA4, Conversions are tracked through events.
Go to Admin > Events:
Click Create Event to define a custom event based on existing event parameters.
Example: Track form submissions:
form_submit
. page_location contains /thank-you
. Mark the Event as a Conversion:
Navigate to Configure > Conversions.
Click New Conversion Event and enter the custom event name (e.g., form_submit
).
GA4 automatically tracks certain events if Enhanced Measurement is enabled, such as:
Scrolls.
File downloads.
Outbound link clicks.
| Event Name | Description |
|----------------------|-----------------------------------------------------------|
| purchase | Tracks completed purchases (requires e-commerce setup). |
| page_view | Default event tracking page visits. |
| scroll | Tracks users who scroll 90% of a page. |
| video_start | Tracks when users start playing a video. |
| generate_lead | Tracks form submissions (e.g., leads captured). |
Goal: Measure how many users complete a form submission.
1. Destination Goal (Universal Analytics):
- Use the form’s thank-you page as the goal destination.
2. Event (GA4):
- Create a custom event for form_submit
.
- Trigger on the "Submit" button click or the thank-you page URL.
Goal: Track how often users add products to their cart.
1. Event in GTM:
- Event Name: add_to_cart
.
- Trigger: Click on the "Add to Cart" button.
2. E-commerce Tracking (GA4):
- Enable Enhanced E-commerce.
- Track add_to_cart
events with the product ID and category.
Goal: Understand how far users scroll on key pages.
1. Event in GTM:
- Event Name: scroll
.
- Trigger: Scroll depth set at 25%, 50%, 75%, and 100%.
2. GA4 Enhanced Measurement:
- Enable automatic scroll tracking.
Goal: Measure how many users start or complete a video.
1. Event in GTM:
- Event Name: video_play
.
- Trigger: Video starts playing (use a YouTube or video trigger in GTM).
2. GA4:
- Track video_start, video_progress, and video_complete events.