GTM Events Sent To The Data Layer

    This table lists all the events we push to the GTM data layer, along with their variables and an example of their data structure. You can use this information to create tags, variables, and triggers within your GTM account.

    Event name Description Variables Example data structure
    Feedback Fires when the customer submits the ‘Give Feedback’ form.

    rating: string

    value: number

    event: "Feedback",

    rating: "satisfied",

    value: 1

    Deposit Fires when the customer deposits funds into their account. Fired on deposit and on deposit via purchase. Note: depositId always seems to be ‘undefined’.

    customerId: string

    depositId: string

    value: string

    event: "Deposit",

    customerId: "ZMCD-7HTS-4GTF-XCPG",

    value: "2.00",

    depositId: undefined

    ExtraDeposit Fires when the customer deposits extra funds during a purchase.

    customerId: string

    depositId: string

    value: string

    event: "ExtraDeposit",

    customerId: "ZMCD-7HTS-4GTF-XCPG",

    value: "20",

    depositId: undefined

    Error Fires when a Bugsnag error occurs. These are low level, technical errors like Javascript errors, network or API failures, etc.

    errorCode: HttpStatusCode | null

    cartReference: string

     
    Transaction

    Fires when a customer transaction occurs, eg ticket purchase.


    TrackingProducts is an array, so there will be one TrackingProduct object for each product in the customer’s cart that was purchased.

    Purchase: "Complete"

    transactionId: string

    transactionTotal: string

    transactionCurrency: string

    transactionProducts: TrackingProducts

    hashedEmail: string | null

     

    TrackingProducts = Array<TrackingProduct>

     

    TrackingProduct:

    sku: string

    name: string

    category: string

    price: string

    quantity: number

    recurringPurchaseType: string | null

    segmentProduct: SegmentProduct

     

    SegmentProduct:
    analyticsName: string

    analyticsProductType: AnalyticsProductType

    analyticsVariant: string

    brand: string

    causeKey: string | null

    category: AnalyticsProductType

    daysOfWeek: string[]

    drawDate: string

    drawNo: number

    encodedId: string

    favourite: boolean

    gameOffer: string

    gameType: string

    hasFavouriteNumbers: boolean

    lotteryKey: string

    numDraws: number

    numGames: number

    prizePool: string

    price: number

    productDescription: string

    productType: string

    productId: string

    purchaseInterval: string

    purchasePrice: string

    recurringPurchaseEnabled: boolean

    recurringPurchaseInitialProduct: boolean

    recurringPurchaseType: RecurringPurchaseType

    purchaseStatus: PurchaseStatus

     

    AnalyticsProductType:

    "Lottery_ticket", "multi_draw_ticket", "raffle_ticket", "syndicate_share", "social_syndicate_share", "membership"



    RecurringPurchaseType:

    “autoplays”, “subscriptions”, “combined_recurring_purchase”

     

    PurchaseStatus:

    “pre_order”, “standard”

    event: "Transaction",

      Purchase: "Complete",

      transactionId: "ZFH3-3SW2-86JQ-ZVKA",

      transactionTotal: "3.00",

      transactionCurrency: "AUD",

      transactionProducts: [

        {

          sku: "3300325-1002756",

          name: "3 Ticket Book",

          category: "Deaf Lottery",

          price: "3.00",

          quantity: 1,

          draw: 1,

          recurringPurchaseType: null,

          segmentProduct: {

            analyticsProductType: "raffle_ticket",

            analyticsName: "3_book_3",

            analyticsVariant: "3_book_3",

            causeKey: null,

            daysOfWeek: [],

            drawDate: "2025-01-03T08:56:51+10:00",

            drawNo: 1,

            encodedId: "Z0TJ-H4X8-NCSM-5B68",

            gameOffer: "3_book_3",

            gameType: "sequential",

            hasFavouriteNumbers: false,

            lotteryKey: "deaf_lottery",

            numDraws: 1,

            numGames: 3,

            prizePool: "100000.00",

            productDescription: "3 Ticket Book",

            productType: "ticket",

            purchaseInterval: "one_off",

            purchasePrice: "3.00",

            recurringPurchaseEnabled: false,

            recurringPurchaseInitialProduct: false,

            brand: "deaf_lottery"

          }

        }

      ],

      hashedEmail: "d89b3b21c6b50de0db2627f06a7f15555c7e2f6c1ad12dd7c2b2fa6e5758a8bf"

    SignUp Fires when a customer creates an account.

    customerID: string

    hashedEmail: string | null

    event: "SignUp",

      customerID: "ZQC7-V4R0-XXJZ-H8XE",

      hashedEmail: "8ed736de59e123fdbeb3713ea086914922e9da2643917abe9918f856a382aca6"

    Login

    Fires when a customer logs in.


    Does not fire when a customer creates their account and is logged in from this process.

    customerID: string

    hashedEmail: string | null

    event: "Login",

      customerID: "ZYC1-VY38-BWPQ-GKZJ",

      hashedEmail: "fba984da89f811cccd5d9d5cf92db8807a3176b7e20f1ea690a58d7d5c90c1a0"

    Logout Fires when a customer logs out. - event: "Logout"
    Click

    Fires when a customer clicks the ‘Download App’ button on the site footer

     Also fires when a customer clicks the ‘How it works’ button on the Syndicates page.

    description: string

    domain: string

    value: null | number | string;

    event: "Click",

      description: "click iOS app store download button",

      domain: "mobile app",

      value: null

    MembershipStatusUpdated

    Fires when a customer joins Daily Winners.


    Does not fire when a customer upgrades from free tier to premium tier.

    customerID: string

    membershipProgram: string | null

    membershipStatus: string | null

    event: "MembershipStatusUpdated",

      customerID: "ZPCR-RSK3-NJ0X-M4G6",

      membershipProgram: "daily_winners",

      membershipStatus: "member"

    Sale X

    Fires when a customer transaction occurs.


    X is the nth transaction the customer has made.


    The number of products purchased per transaction does not matter.


    Eg:


    If a customer buys one ticket book and checks out for the first time, the ‘Sale 1’ event will be fired.


    If that customer then adds three different ticket books to cart and checks out, the ‘Sale 2’ event will be fired.

    Contains all properties from the Transaction event above.


    Also includes:

    Label: string

    customerID: string


    Does not include:

    hashedEmail: string | null

    event: "Sale 3",

      Purchase: "Complete",

      transactionId: "ZTHK-TYGV-J8Y4-1FC4",

      transactionTotal: "19.00",

      transactionCurrency: "AUD",

      transactionProducts: [ TransactionProductData

        ],

      Label: "ZTHK-TYGV-J8Y4-1FC4",

      customerID: "ZQC7-V4R0-XXJZ-H8XE"

    lottery_type_name X

    Fires when a customer transaction occurs.


    Similar to ‘Sale X’, but instead is driven by the lottery type and keeps count of the number of transactions containing that lottery type.


    Eg purchase a Lotto and Raffle product in one cart would fire:

    ‘Sale 1’ ‘Lotto 1’ ‘Raffle 1’ events.

    Then purchase a Lotto product:

    ‘Sale 2’ ‘Lotto 2’ events.

    Then purchase a Raffle product:

    ‘Sale 3’ Raffle 2’ events.

    Contains all properties from the Transaction event above.


    Also includes:

    Label: string

    customerID: string


    Does not include:

    hashedEmail: string | null

    event: "Raffle 2",

      Purchase: "Complete",

      transactionId: "Z6HJ-FNS9-54MA-VK2J",

      transactionTotal: "31.90",

      transactionCurrency: "AUD",

      transactionProducts: [

        TransactionProductData

      ],

      Label: "Z6HJ-FNS9-54MA-VK2J",

      customerID: "ZPCR-RSK3-NJ0X-M4G6"

    FirstSale Fires when a customer makes their first transaction.

    Contains all properties from the Transaction event above.


    Also includes:

    Label: string

    customerID: string


    Does not include:

    hashedEmail: string | null

    event: "FirstSale",

      Purchase: "Complete",

      transactionId: "ZYHD-DD16-Y0HG-H69T",

      transactionTotal: "7.00",

      transactionCurrency: "AUD",

      transactionProducts: [

        TransactionProductData],

      Label: "ZYHD-DD16-Y0HG-H69T",

      customerID: "ZQC7-V4R0-XXJZ-H8XE"

    FirstCharitySale

    Fires when a customer makes their first transaction with a charity (raffle) product.

    If a customer’s first purchase is a raffle ticket, both the FirstCharitySale and FirstSale events will fire.

    Contains all properties from the Transaction event above.


    Also includes:

    Label: string

    customerID: string


    Does not include:

    hashedEmail: string | null

    event: "FirstCharitySale",

      Purchase: "Complete",

      transactionId: "ZYHD-DD16-Y0HG-H69T",

      transactionTotal: "7.00",

      transactionCurrency: "AUD",

      transactionProducts: [

        TransactionProductData],

      Label: "ZYHD-DD16-Y0HG-H69T",

      customerID: "ZQC7-V4R0-XXJZ-H8XE"

    FirstSetForLifeSale

    Fires when a customer makes their first transaction with a Set For Life product.

    Contains all properties from the Transaction event above.


    Also includes:

    Label: string

    customerID: string


    Does not include:

    hashedEmail: string | null

    event: "FirstSetForLifeSale",

      Purchase: "Complete",

      transactionId: "ZYHM-FEYM-7YR5-JHNA",

      transactionTotal: "10.20",

      transactionCurrency: "AUD",

      transactionProducts: [

        TransactionProductData

    ],

      Label: "ZYHM-FEYM-7YR5-JHNA",

      customerID: "ZPCR-RSK3-NJ0X-M4G6"

    Was this article helpful?
    0 out of 0 found this helpful