interface EcomEvent { name: "ecom"; payloads: { action: "impressions" | "add" | "remove" | "view"; currency: string; product?: { id: string; name: string; price: number } & { id: string; name: string; price: number; }; products?: null | Product[]; total?: null | number; };} Properties
name
name: "ecom"
payloads
payloads: { action: "impressions" | "add" | "remove" | "view"; currency: string; product?: { id: string; name: string; price: number } & { id: string; name: string; price: number; }; products?: null | Product[]; total?: null | number;} Type declaration
action: "impressions" | "add" | "remove" | "view"
currency: string
Optionalproduct?: { id: string; name: string; price: number } & {
id: string;
name: string;
price: number;
}
Optionalproducts?: null | Product[]
Optionaltotal?: null | number
Schema for an ecommerce event in the hybrid flow