@piwikpro/tracking-base-library
Version:
Piwik PRO basic tracking library for the frontend.
13 lines (12 loc) • 611 B
TypeScript
import { TRACK_EVENT } from '../constants/track-event.constant';
import { Tracker } from './tracker';
export type LimitedArrayFiveStrings = [string, ...string[]] | [string, string, string, string, string];
export type AnyData = any;
export type Dimensions = Record<`dimension${number}`, string>;
export type QueueItem = [TRACK_EVENT, ...unknown[]] | [(this: Tracker) => void];
export type EcommerceOptions = {
/**
* Currency code in [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) format. If not provided, the currency set in app settings will be used instead.
*/
currencyCode?: string;
};