Dev Request: Dev Request - Quote Submitted
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?
- Populate
customer.hubspot_canonical_vid
,customer.auth0_id
,chargebee_id
if available. If not available, keep the key and use value javascriptnull
.
Data Layer Event: quote_submitted
Triggering Conditions
A pageview of sales.pdq.com/quote-download/ following clicking the "Generate my quote" button on sales.pdq.com/quote:
Followed by viewing:
Event should fire after sequentially after route load of /quote-download* if possible.
Event to Log
<script>
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
'event': 'quote_submitted',
'data': {}
});
</script>
Description of Data Fields
quote_submitted
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"
}