Sales And Marketing Skills

Configuring Goals And Events For Your Website In Google Analytics (GA4 and Universal Analytics)




This simple guide covers specific examples, scenarios, and best practices to ensure accurate tracking and actionable insights.


1. Configuring Goals in Universal Analytics

Goals in Universal Analytics measure completed actions like form submissions, purchases, or time spent on a page.

Steps to Set Up Goals

  1. Log in to Google Analytics and navigate to Admin > Goals under your property.
  2. Click + New Goal to create a goal.
  3. Choose a Goal Setup:
  4. Use a Template (e.g., Make a Payment, Sign Up) or Custom for unique goals.

  5. 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).

  6. Add Goal Details:

  7. Example for Destination Goal:

    • Destination = /thank-you.html.
    • Set the funnel steps if you’re tracking a multi-step process (e.g., /cart > /checkout > /thank-you).
  8. Save the Goal and Test It:

  9. Use Real-Time > Conversions to verify the goal is firing correctly.

Examples of Goals

| 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. |


2. Configuring Events in Universal Analytics

Events track user interactions, such as button clicks, downloads, or video plays. Events are set up using Google Tag Manager (GTM) or custom code.

Steps to Set Up Events in Universal Analytics

  1. 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.

  2. Define Event Parameters:

  3. Category: Group events (e.g., “Video”).
  4. Action: Specify the user interaction (e.g., “Play”).
  5. Label: Add context (e.g., “Homepage Video”).
  6. Example:

    • Category: Downloads.
    • Action: Click.
    • Label: Ebook_PDF.
  7. Set up a Trigger:
    Choose a trigger (e.g., Button Clicks, Page Views).
    Configure the condition:

    • Example: Trigger on all clicks with button text = "Download Now".
  8. Publish the Tag and Test:

  9. Use GTM’s Preview Mode to ensure the event is firing correctly.

  10. View Event Data:

  11. In Google Analytics, go to Behavior > Events > Overview to monitor event activity.

Examples of Events

| 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 |


3. Configuring Goals and Events in GA4

GA4 handles goals and events differently. In GA4, Conversions are tracked through events.

Steps to Set Up Events in GA4

  1. Log in to Google Analytics (GA4) and navigate to your property.
  2. Go to Admin > Events:
    Click Create Event to define a custom event based on existing event parameters.
    Example: Track form submissions:

    • Event Name: form_submit.
    • Parameter: page_location contains /thank-you.
  3. Mark the Event as a Conversion:
    Navigate to Configure > Conversions.
    Click New Conversion Event and enter the custom event name (e.g., form_submit).


Enhanced Measurement (Automatic Events)

GA4 automatically tracks certain events if Enhanced Measurement is enabled, such as:
Scrolls.
File downloads.
Outbound link clicks.


Examples of Events in GA4

| 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). |


4. Applying Goals/Events to Specific Scenarios

Scenario 1: Tracking Form Submissions

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.


Scenario 2: Tracking Add-to-Cart Behavior

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.


Scenario 3: Tracking Scroll Depth

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.


Scenario 4: Tracking Video Plays

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.


5. Testing Goals and Events

  • Use Real-Time Reports: Check in GA4 under Reports > Real-Time to confirm goals/events are firing correctly.
  • Google Tag Manager Debug Mode: Preview and troubleshoot tags before publishing.
  • Chrome Developer Tools: Inspect network requests to verify event hits are sent to Google Analytics.

If you liked this, consider supporting us by checking out Tiny Skills - 250+ Top Work & Personal Skills Made Easy