Dev Request: Dev Request - Trial Started
Instructions
Intro
When the Google Tag Manager library loads it declares a global JS object, dataLayer. It overloads the array prototype .push method so that it can grab on to objects/"events" pushed to that array.
Notes/Questions
What values are possible there for customer.status?
Other Notes
data.industry, data.current_role, data.number_admins, data.number_machines are from the trial form flow.
data.trial_start_timestamp is the UNIX timestamp for the start of a trial
Data Layer Event: trial_started
Triggering Conditions
Successful submission of the register for trial user flow.
This happens on sales.pdq.com after authentication on Auth0. The visitor is dropped into a signup flow and after completion of that flow is dropped on /dashboard. It is at this point, the load of the /dashboard route, that the event should fire.
Event to Log
<script>
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
'event': 'trial_started',
'data': {}
});
</script>
Description of Data Fields
trial_started
Validation Schema does not have properties
JSON Validation Schema
For Super Techies:
The event payload, everything under the data property, will be validated against this schema. For more see JSONSchema standard.
{
"TBD": "TBD"
}