Dev Request: PDQ CONNECT - Dev Request - Purchase

Status: Preparing
Last updated: April 12, 2023 2:32 PM MDT
Originally delivered at: April 09, 2023 6:00 PM MDT

Instructions

Intro

In order to accurately track ecommerce information for PDQ Connect Subscriptions, we will need a dataLayer implemented on the confirmation page after a user purchases.

Data Layer Event: PDQ - Purchase

Triggering Conditions

Upon a successfully validated purchase, after the load of the purchase confirmation route.

Event to Log

<script>
  window.dataLayer = window.dataLayer || [];
  window.dataLayer.push({
    'event': 'purchase',
    'data': {}
  });
</script>

Description of Data Fields

Data Layer - purchase

Validation Schema does not have properties

Data Layer - customer

Validation Schema does not have properties

Data Layer - Item

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"
}