What are the event objects pushed into the Thrive website data layer?

1Answer

The list of events that we've pushed to the data layer are as follows:

  • Page View:
     event: "page_view"

    Here is what a sample object looks like:

    {
      event: "page_view",
      gtm: {uniqueEventId: 9, start: 1623260684614},
      pagePath: "/the-mock-bandra/setup-order/take_away",
      order_type: "OrderPickup"
    }

     
  • Order Type:
    event: "ordering_type",

    Here is what a sample object looks like:

    {
      event: "ordering_type",
      gtm: {uniqueEventId: 7, start: 1623260684614},
      pagePath: "/the-mock-bandra?gtm_debug=x",
      order_type: "OrderPickup"
    }
  • Add to Cart:
      event: "eec.add",

    The available Keys/ Properties in the object are:
  1. Product Name
  2. Product Category  
  3. Product Variant  
  4. Brand Name  
  5. Product Quantity  

    Here is what a sample object looks like:

    {
      event: "eec.add",
      ecommerce: {
        add: {
          actionField: {list: "Browse menu list"},
          products: [
            {
              id: "807676",
              name: "Chunky",
              category: "Cookies",
              quantity: 1
              brand: "The Mock"
            }  ]  }  }
    }
  • Checkout:
    event: "eec.checkout",

    The available Keys/ Properties in the object are:
  1. Product Name
  2. Product Category  
  3. Product Variant  
  4. Brand Name  
  5. Product Quantity  

    Here is what a sample object looks like:

    {
      event: "eec.checkout",
      pagePath: "/the-mock-bandra/view-order/take_away",
      order_type: "OrderPickup",
      ecommerce: {
        checkout: {
          actionField: {step: 1},
          products: [
            {id: "807689", name: "Hazelnut", quantity: 1},
            {
              id: "807676",
              name: "Chunky",
              brand: "The Mock",
              category: "Cookies",
              quantity: 2
            },
            {id: "807690", name: "Caramel", quantity: 1},
            {
              id: "807676",
              name: "Chunky",
              brand: "The Mock",
              category: "Cookies",
              quantity: 1
            },
            {
              id: "807678",
              name: "Indulgent",
              brand: "The Mock",
              category: "Brownies",
              quantity: 2
            },
            {
              id: "807680",
              name: "Fresh",
              brand: "The Mock",
              category: "Tea Cakes",
              quantity: 1,
              variant: "Medium"
            }  ]  }  }
    }
  • Purchase:

     event: "eec.purchase",

    The available Keys/ Properties in the object are:
  1. Product Name
  2. Product Category  
  3. Product Variant  
  4. Product Quantity  
  5. Purchase Value/ Price
  6. Coupon Applied

    Here is what a sample object looks like:

    {
      event: "eec.purchase",
      gtm: {uniqueEventId: 8, start: 1623260980161},
      pagePath: "/the-mock-bandra/order-status/success/take_away/19350787",
      ecommerce: {
        currencyCode: "INR",
        purchase: {
          actionField: {
            id: "19350787",
            affiliation: "Thrive",
            revenue: 1109.83,
            tax: 133.32,
            shipping: 0
          },
          products: [
            {id: "807689", name: "Hazelnut", quantity: 1},
            {
              id: 807676,
              name: "Chunky",
              category: "Cookies",
              price: 300,
              quantity: 2,
              brand: "The Mock"
            },
            {id: "807690", name: "Caramel", quantity: 1},
            {
              id: 807676,
              name: "Chunky",
              category: "Cookies",
              price: 150,
              quantity: 1,
              brand: "The Mock"
            },
            {
              id: 807678,
              name: "Indulgent",
              category: "Brownies",
              price: 280,
              quantity: 2,
              brand: "The Mock"
            },
            {
              id: 807680,
              name: "Fresh",
              category: "Tea Cakes",
              price: 200,
              quantity: 1,
              brand: "The Mock",
              variant: "Medium"
            } ] } }
    }

________
 

The various keys/ properties can be used to create the data layer variables as for the tags. 
The different events itself (highlighted in blue), can be used to create the triggers. 

...