With event tracking, you can listen for specific events on your website beyond which pages the visitor has seen. Events might include visitor actions like downloading a monthly statement on a banking website, clicking to chat with a live agent on a commerce site, and more.
Once captured, a record of these events is saved in a cookie on the participant’s browser so that this information can be used for Intercept logic or sent to your target website as Embedded Data.
Basic Event Tracking
If the elements on your website you’d like to track have HTML IDs, and if you are tracking clicks (as opposed to other events such as hovering), you can quickly set up event tracking with no website modifications needed.
To set up basic event tracking
- Open the Intercepts tab and select the Intercept to which you would like to add event tracking.
Qtip: If you’re running Zone Code, events tracked by one Intercept can be accessed by another and there is no need to add the same event tracking to multiple Intercepts.
- In the Manage Intercept menu, select Event Tracking.
- Click Add Element to add your first event.
- Type the name you would like to use for your event (any name will do) and enter the HTML ID of the element you would like to track.
- To include additional events, click the plus sign to the right of your event.
Advanced Event Tracking
If you would like to track events on your website that do not involve a visitor clicking (e.g., hovering over an item), or if you would like to track interaction with elements that don’t have an HTML ID, you can manually add the event tracking code to these elements on your website. These added codes will allow Site Intercept to know when the event has taken place.
To track an event on your website
- Identify the HTML element on your site you would like to track (the following example does not include an ID attribute).
<span>Chat with an agent.</span>
<span onclick=”...”>Chat with an agent.</span>
- Set the event equal to the following code:
window._qsie = window._qsie || ; window._qsie.push('eventName');
- The final HTML for your element may look something like this:
<span onclick=”window._qsie = window._qsie || ; window._qsie.push('InitiatedChat');”>Chat with an agent.</span>
- You can now add Intercept Display Conditions that target this event.
Using Tracked Events
Once you have set up event tracking, you can use these events in your Intercept Logic. You can also send event tracking information over to your target website or survey using Embedded Data.
To add logic based off of an event
- Click the plus sign to add a new logic condition.
- Select Website and choose Event Tracking.
- Enter the name of your event, followed by an event value, which will be the number of times the event must happen for the participant to qualify.
To save event information as Embedded Data
Event data can also be saved as Embedded Data, as described on the Embedded Data with SI page.
On the left, you’ll enter the name of the Embedded Data field, which can be anything you like. You’ll then set the field type to Event Tracking. On the right, you’ll enter the Event Name. The final Embedded Data value sent over to your target website will be the number of times the event occurred for that particular visitor.