Last active
April 9, 2024 19:18
-
-
Save elephantsneverforget/75bcf93593f9c30f764ec62f6894b0d7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export type MixpanelEventPayload = { | |
event?: string; // event name | |
properties: { | |
$source: "elevar"; | |
ip?: string; | |
token: string; // project token input by user | |
time: number; // milliseconds since epoch | |
$insert_id: string | number; // event id, | |
distinct_id?: string; // user id | |
$browser?: string; | |
$device?: string; | |
$os?: string; | |
$referrer?: string; // referrer | |
$referring_domain?: string; // referrer hostname | |
utm_source?: string; | |
utm_medium?: string; | |
utm_term?: string; | |
utm_content?: string; | |
utm_campaign?: string; | |
current_url_path?: string; | |
cart_total?: number; | |
revenue_total?: number; | |
revenue_subtotal?: number; | |
revenue_product_subtotal?: number; | |
cartItems?: Array<MixpaneltItem>; | |
eventItems?: Array<MixpaneltItem>; | |
}; | |
}; | |
export type MixpaneltItem = { | |
quantity?: number; | |
brand?: string; | |
productId?: string; | |
variantId?: string; | |
sku?: string; | |
price?: number; | |
productTitle?: string; | |
category?: string; | |
variantTitle?: string; | |
currency?: string; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment