Interface EnhancedEcomProduct

Product object for enhanced ecommerce events

interface EnhancedEcomProduct {
    arrival?: string;
    buttonLocation?: string;
    connectionType?: string;
    departure?: string;
    destination?: string;
    duration?: number;
    id: string;
    labels?: string;
    leadtime?: number;
    leadtimeDays?: number;
    name: string;
    origin?: string;
    price: string | number;
    provider?: string;
    quantity?: number;
    returnType?: string;
    station_from_slug?: string;
    station_to_slug?: string;
    transferType?: string;
    utilization?: string;
    [key: string]: any;
}

Indexable

  • [key: string]: any

    Extended fields for impressions

Properties

arrival?: string

Arrival time/date

buttonLocation?: string

Button location (for addToCart events)

connectionType?: string

Type of connection (direct or number of changes)

departure?: string

Departure time/date

destination?: string

Destination station name

duration?: number

Duration in minutes

id: string

Product ID

labels?: string

Additional product information serialized as JSON

leadtime?: number

Lead time in hours

leadtimeDays?: number

Lead time in days

name: string

Product name

origin?: string

Origin station name

price: string | number

Product price - can be number or string

provider?: string

Provider of the transport service

quantity?: number

Quantity of products

returnType?: string

Type of return (oneway, return_there, return_back)

station_from_slug?: string

Origin station slug

station_to_slug?: string

Destination station slug

transferType?: string

Type of transfer

utilization?: string

Utilization rate