Type Alias EcommerceDataLayerPurchaseEntry
type EcommerceDataLayerPurchaseEntry = {
ecommerce: EcommerceObject & {
coupon?: string;
shipping?: number;
tax?: number;
transaction_id: string;
};
event: "purchase"
| "refund";
}
ecommerce: EcommerceObject & {
coupon?: string;
shipping?: number;
tax?: number;
transaction_id: string;
};
event: "purchase"
| "refund";
}
Properties
ecommerce
ecommerce: EcommerceObject & {
coupon?: string;
shipping?: number;
tax?: number;
transaction_id: string;
}
coupon?: string;
shipping?: number;
tax?: number;
transaction_id: string;
}
Type declaration
Optional
coupon?: stringOptional
shipping?: numberOptional
tax?: numberTax cost associated with a transaction.
transaction_id: string
The unique identifier of a transaction.
event
event: "purchase" | "refund"
Shipping cost associated with a transaction.