Skip to main content

Tag Managers and Tracking Data

R
Written by Reilen Millar
Updated over 3 weeks ago

Objective

Understand what data is provided to the various tag managers Coconut supports.

Tracking Data Object (Data Layer)

Coconut provides a standard set of data within a tracking data object. This is the data which is made available to the tag managers supported by Coconut. The content of the data layer is based upon the selections made by a customer/member during the Client View appointment booking process.

Here is an example of a tracking data object:

{
"event": "appointment_details",
"currentPage": "/details",
"siteSection": "tools",
"subSiteSection": "appointment scheduling",
"sitePlatform": "dotcom",
"language": "en",
"datasource": "pageView",
"appointmentCategory": "The Category",
"appointmentSubCategory": "Shovelling",
"appointmentSubCategoryExternalId": "Cy4LtxXPUCxpyFHY",
"referenceId": null,
"location": "Bedrock Quarry",
"locationExternalId": "wEZf6TTRufdFSVTF"
}

Reference

Attribute name

Description

Example

event

A description of the current step the customer/member is in. Each step has a specific value, depending on the value of currentPage

{
"/service": "appointment_start",
"/times": "appointment_times",
"/view-available-times-at-other-locations": "view_available_times_cta",
"/details": "appointment_details",
"/confirmation": "appointment_confirmation",
"/reschedule": "appointment_reschedule",
"/cancel": "appointment_cancel",
"/cancel-confirmation": "appointment_cancel_confirmation",
"/location": "appointment_location",
"/category": "appointment_category",
"/meeting-method": "appointment_meeting_method",
"/change-meeting-method": "appointment_change_meeting_method",
"/manage": "appointment_manage",
"/summary": "appointment_summary",
"/staff": "appointment_staff",
"/staff-preference": "appointment_staff_preference",
"/staff-times": "appointment_staff_times"
}

currentPage

The current page/step that the client is on

siteSection

Fixed value of “tools"

subSiteSection

Fixed value of ”appointment scheduling”

language

The client’s currently selected language

en, es, fr

datasource

Fixed value of ”pageView”

appointmentType

The meeting method chosen by the client

appointmentCategory

The name of the category of the service chosen

appointmentSubCategory

The name of the service chosen

appointmentSubCategoryExternalId

The external ID of the service chosen

referenceId

The confirmation code for the appointment. This is only available on the Confirmation page (once the appointment has been booked)

location

The name of the location chosen

locationExternalId

The external ID of the location chosen

Additional Resources

For more information on Google Tag Manager, please refer to Google's documentation.

For how to use Google Tag Manager with Coconut, please refer to this article.

Did this answer your question?