Last Updated on August 16, 2024

“Sebo Events” Tracking Setup

Within the first month of a client being onboarded, we want to make sure that we put comprehensive data tracking in place. So, we want to set up some custom events (we’re calling them “Sebo Events”) as well as a custom report in Analytics to make sure we’re tracking the right things. This training will focus only on “events” (micro-conversions). There will be a separate training for “Sebo Key Events” (macro-conversions).

We will be setting up 4 tags in GTM and utilizing parameters to make sure we are capturing the info we want. This training will go over how to set up the following Sebo Events:

  1. Main Nav Link Clicks
  2. Body Content Link Clicks
  3. Offsite Link Clicks
  4. Scroll Depth

We will also need to set up the following in GA4:

  1. Custom dimensions
  2. “Sebo Events” custom report

Google Tag Manager

Variables

Configure “Click” and “Scrolling” Variables

  1. Click on “Variables” > “Configure” and make sure all options in the “Clicks” and “Scrolling” sections are selected.

Create “GA4 Tracking ID” Constant Variable

    1. Under “User-Defined Variables,” click the “New” button
    2. Click on the “Variable Configuration” box
    3. Select “Constant” from the list of variable types
    4. Enter your GA4 Measurement ID in the “Value” field
    5. Click on the variable name at the top and rename it to something descriptive like “GA4 Measurement ID”
    6. Click “Save”

Create “Google Tag: Event Settings” variable

    1. Under “User-Defined Variables,” click the “New” button
    2. Click on the “Variable Configuration” box
    3. Select “Google Tag: Event Settings”
    4. In the “Event Parameter” field, type “event_category”. In the Value field, type “sebo_events”
      1. Click “Add parameter”
    5. In the “Event Parameter” field, type “click_text”. In the “Value” field, add the “Click Text” variable (click the building block with ‘+ sign’ icon and select “Click Text” from the list.
    6. In the “Event Parameter” field, type “click_url”. In the “Value” field, add the “Click URL” variable.
    7. Name the variable “Sebo Events – Link Clicks”
    8. Click “Save”

Triggers

Create the “Main Nav Link Clicks” Trigger with the Correct Parameters

    1. Click on “New” > “Trigger Configuration” > “Just Links”
    2. Select “Some Link Clicks”
    3. Add the following conditions:
      1. Click Element | matches CSS selector | header a
      2. Click URL | contains | domain.com
    4. Name the trigger “Main Nav Link Clicks”

Create the “Body Content Link Clicks” Trigger With Correct Parameters

    1. Click on “New” > “Trigger Configuration” > “Just Links”
    2. Select “Some Link Clicks”
    3. Add the following conditions:
      1. Click Element | matches CSS selector | body a
      2. Click Element | does not match CSS selector | header a
      3. Scroll Depth Threshold | less than | 75
      4. Click URL | contains | domain.com
    4. Name the trigger “Body Content Link Clicks”

Create “Offsite Link Clicks” trigger

    1. Click on “New” > “Trigger Configuration” > “Just Links”
    2. Select “Some Link Clicks”
    3. Add the following conditions:
      1. Click URL | does not contain | domain.com
    4. Name the trigger “Offsite Link Clicks”

Create “Scroll Depth” Trigger

  1. Click on “New” > “Trigger Configuration” > “Scroll Depth”
  2. Check “Vertical Scroll Depths”
  3. Enter the following into the field exactly: 25, 50, 75, 90
    1. Set the trigger to fire on “All Pages”
  4. Name the trigger “Scroll Depth”

Tags

Create the “Main Nav Link Clicks” Tag With the Correct Parameters

  1. Click on “New” > “Tag Configuration” > “Google Analytics” > “Google Analytics: GA4 Event”
  2. In the “Measurement ID” field, click the “Add Variable” button > Select the “GA4 Measurement ID” constant variable that you made earlier
  3. Name the event: main_nav_link_clicks
  4. Click “Event Parameters”
  5. In the “Event Settings Variable” field, add the “Sebo Events – Link Clicks” variable that you made earlier
  6. Add the “Main Nav Link Clicks” trigger
  7. Name the tag “Main Nav Link Clicks”

Create the “Body Content Link Clicks” Tag With the Correct Parameters

  1. Click on “New” > “Tag Configuration” > “Google Analytics” > “Google Analytics: GA4 Event”
  2. In the “Measurement ID” field, click the “Add Variable” button > Select the “GA4 Measurement ID” constant variable that you made earlier
  3. Name the event: body_content_link_clicks
  4. Click “Event Parameters”
  5. In the “Event Settings Variable” field, add the “Sebo Events – Link Clicks” variable that you made earlier
  6. Add the “Body Content Link Clicks” trigger
  7. Name the tag “Body Content Link Clicks”

Create the “Offsite Link Clicks” Tag With the Correct Parameters

  1. Click on “New” > “Tag Configuration” > “Google Analytics” > “Google Analytics: GA4 Event”
  2. In the “Measurement ID” field, click the “Add Variable” button > Select the “GA4 Measurement ID” constant variable that you made earlier
  3. Name the event: offsite_link_clicks
  4. Click “Event Parameters”
  5. In the “Event Settings Variable” field, add the “Sebo Events – Link Clicks” variable that you made earlier
  6. Add the “Offsite Link Clicks” trigger
  7. Name the tag “Offsite Link Clicks”

Create the “Scroll Depth” Tag With the Correct Parameters

  1. Click on “New” > “Tag Configuration” > “Google Analytics” > “Google Analytics: GA4 Event”
  2. In the “Measurement ID” field, click the “Add Variable” button > Select the “GA4 Measurement ID” constant variable that you made earlier
  3. Name the event: scroll_depth_{{Scroll Depth Threshold}} (Use the “add variable” button to add the “scroll depth threshold” variable)
  4. Click “Event Parameters”
  5. In the “Event Parameter” field, type “event_category”. In the “Value field” type “sebo_events”
  6. Add the “Scroll Depth” trigger
  7. Name the tag “Scroll Depth”

Google Analytics

Custom Definitions

Create a Custom Definition for “click_text”

  1. In the correct Analytics account, click “Admin” > “Data Display” > “Custom Dimensions”
  2. Click “Create custom dimension”
  3. In the “Dimension name” field, type “Click Text”
  4. In the “Description” field, type “GTM click_text”
  5. In the “Event parameter” field, type “click_text”

Create a Custom Definition for “click_url”

  1. Click “Create custom dimension”
  2. In the “Dimension name” field, type “Click URL”
  3. In the “Description” field, type “GTM click_url”
  4. In the “Event parameter” field, type “click_url”

**Create a Custom Definition for “event_category”

**NOTE: by default, there should already be an “event_category” dimension in the analytics account. If for whatever reason there is not, you will need to create one.

  1. Click “Create custom dimension”
  2. In the “Dimension name” field, type “Click URL”
  3. In the “Description” field, type “GTM click_url”
  4. In the “Event parameter” field, type “click_url”

Custom “Sebo Events” Report

Create a “Sebo Events” Details Report

  1. From the Analytics Homepage, click “Reports” > “Library” > “Create New Report”
  2. Click “Create detail report”
  3. Select the “Events” template
  4. In the “Report Filter” section on the right, click “+ Add filter”
  5. In the Dimension field, put “Event Category”
  6. In the Match Type field, put “exactly matches” or “contains”
  7. In the Value field, select “sebo_events”
  8. Click “Apply”
  9. In the “Metrics” section, remove “Total users”, “Event count per user”, and “Total revenue”
    1. Add “Event count per session”
    2. Add “Event Value”
    3. Don’t add “Key Events” (that will be a separate report)
  10. Click “Save…”
  11. Name the report “Sebo Events”

Add “Sebo Events” Report to Main Menu

  1. From the “Collections” section of the “Library” screen, find the “Life cycle” collection (it might not be called “Life cycle”, but it will be the first collection that has the “Published to all” tag)
    1. Click the “3 dots” in the top right
    2. Click “Edit”
  2. In the “Detail reports” section, scroll all the way to the bottom until you find the “Sebo Events” report you just made”
  3. Drag it over to the left menu and place it just under “Events”