@aftership/web-pixels
Version:
AfterShip Web Pixels for data anaylsis
25 lines (24 loc) • 644 B
TypeScript
import { IdentifyData } from './identify';
export type EventName = string;
export type EventProperties = Record<string, any>;
export interface IEventPageMetadata {
page_object: {
page_location: string;
page_title: string;
page_referrer: string;
};
}
export interface IEventItemReportSchema {
$event_name: string;
$event_timestamp: number;
$user_properties: IdentifyData;
$pixel_id: string;
$params: IEventPageMetadata & EventProperties;
$lib_version: string;
$lib: string;
$env: string;
$sc_p?: string;
$geo?: Record<string, any>;
$ua?: string;
$log_id: string;
}