Task Analytics can be set up to feed intent data to Google Analytics, providing enhanced segmentation of behavioral data. This allows you to add a segment to filter out what the customers came for and whether they could complete the task they intended or not.
Enabling or disabling the integration
If you have Admin permissions you can toggle the integration on/off under Setup → Settings with the checkbox seen in the screenshot below:
Enabling the Google Analytics integration of Task Analytics in the "Settings" submenuHow does the integration work?
Task Analytics will check whether your website is running with Google Tag Manager or asynchronous Google Analytics. If Google Tag Manager is found, Task Analytics will push an event to the dataLayer. If there’s not dataLayer, Task Analytics will send an event to Google Analytics directly. If there’s an issue and Google Analytics cannot be found, the tracking will be submitted but will simply not be registered by Google Analytics. The end-user will not encounter an error.
The asynchronous Google Analytics event
The Google Analytics integration will publish events as:
- Event Category: Task Analytics
- Event Label: <Task name [unique task id]>
- Event Action: Completed or Gave In
The Google Tag Manager dataLayer push
The dataLayer push that's being pushed when Google Tag Manager is found:
- dataLayer.push({
- 'taskName': '<Task name [unique task id]>',
- 'taskResult': 'Completed' or 'Gave In',
- 'event': 'Task Analytics'
- });