Click Event
The click event sends tracking data when a visitor clicks their mouse on an element on a page. You can specify a full click and release, mousedown, or mouseup trigger.
See the full list of available events.
Prerequisites
- utag v4.38 or higher. For additional information, see How to upgrade utag.js.
How it works
The click event tracks visitors for a full click-and-release, mousedown, or mouseup event on a specified element. When a visitor performs the action, the tracking call is triggered.
Event triggers
Event triggers are the specific actions the event listener tracks.
The click event can track the following event triggers:
- Click – Trigger when the user clicks and releases the element.
- Mousedown – Trigger when the user clicks the element.
- Mouseup – Trigger when the user releases the mouse from the element.
Event trigger variables
Event trigger variables are the values the event listener sends with the tracking call. The click event has the following default event trigger variables:
Click
Identifier | Description |
---|---|
tealium_event="click" |
The visitor clicked and released the specified element. |
Example
{
"tealium_event" : "click"
}
Mousedown
Identifier | Description |
---|---|
tealium_event="mousedown" |
The visitor clicked the specified element. |
Example
{
"tealium_event" : "mousedown"
}
Mouseup
Identifier | Description |
---|---|
tealium_event="mouseup" |
The visitor released a click from the specified element. |
Example
{
"tealium_event" : "mouseup"
}
This page was last updated: January 30, 2023