Skip to content

Instantly share code, notes, and snippets.

@elephantsneverforget
Last active January 5, 2024 00:07
Show Gist options
  • Save elephantsneverforget/2eec9626212a82c93f8f9c149d0e6b04 to your computer and use it in GitHub Desktop.
Save elephantsneverforget/2eec9626212a82c93f8f9c149d0e6b04 to your computer and use it in GitHub Desktop.
type PostscriptEventPayload = {
type: string; // event name
phone?: string;
email?: string;
external_id: string; // event id
// Because Postscript doesn't allow nested properties (yet) we have been advised by Postscript to keep the payload simple.
properties: {
preEventCartTotal?: number;
preEventCartItemCount?: number;
currency?: string;
currencySymbol?: string;
country?: string;
zip?: string;
countryCode?: string;
price?: number;
quantity?: number;
eventLocationURL?: string;
imageUrl?: string;
variantTitle?: string;
productTitle?: string;
productId?: string;
variantId?: string;
sku?: string;
list?: string;
brand?: string;
category?: string;
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment