A event is a user interaction in your website. We collect various events automatically as the user navigate through out your website.
Page Closeevents are automatically collected as navigates through your website. This also works for Single Page Applications that use client side routing, with
You can configure to track certain interactions like clicking buttons or links, submitting forms, watching videos, from the GingerTag dashboard without writing any additional code.
But in some cases you need to send custom events to track user interactions. You can do this in two ways:
You can track interaction on HTML elements in your website by adding
If the element trigger the configured
data-gt-trigger event, an event with the name
data-gt-event is captured.
While the above two are possible by creating from dashboard, you can choose to do it during development time.
You can also use triggers other than
submit if needed.
You can call the
event function in the
You can also send additional data with the events like:
You can see metrics on the event data in the GingerTag dashboard when you select a specific event. You can send any key value pair as event data, and not restricted to just Category, Action, Label and Value like in Google Analytics.
You can also send nested objects. However we store and report them in flattened format.
In the dashboard you will see event data keys as
If an even has a
value key in the data, they are stored and displayed separately in the dashboard. You can get metrics
Average value in the dashboard.
This can be used to track a monetary value on events like