EcommerceDataLayerPurchaseEntry | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Type Alias EcommerceDataLayerPurchaseEntry

    type EcommerceDataLayerPurchaseEntry = {
        ecommerce: EcommerceObject & {
            coupon?: string;
            shipping?: number;
            tax?: number;
            transaction_id: string;
        };
        event: "purchase"
        | "refund";
    }
    Index

    Properties

    Properties

    ecommerce: EcommerceObject & {
        coupon?: string;
        shipping?: number;
        tax?: number;
        transaction_id: string;
    }

    Type declaration

    • Optionalcoupon?: string
    • Optionalshipping?: number

      Shipping cost associated with a transaction.

    • Optionaltax?: number

      Tax cost associated with a transaction.

    • transaction_id: string

      The unique identifier of a transaction.

    event: "purchase" | "refund"