Skip to main content

Data input schemas

Each of our models require different data inputs to train the models and score the target populations. The following tables outline the events we use to gather that data.

Conversion Events - Schema​

MG Field NameTypeDescription
RecipientIdVARCHARUnique customer identifier.
ConvTimeStampNUMBERUNIX timestamp in seconds of when transaction event occurred.
ConvDiscountCodeVARCHARDiscount code, if anything, used on purchase.
ConvSpendFLOATTotal amount of spend in a transaction.
ConvProductsVARCHARComma-separated array of each product purchased in a specific transaction.

Email Events - Schema​

MG Field NameTypeDescription
RecipientIdVARCHARUnique customer identifier.
EmailTimeStampNUMBERUNIX timestamp in seconds of when email was sent.
EmailCampaignVARCHARName of the campaign (preferably ID) associated with the email.
EmailClickNUMBERUNIX timestamp in seconds of when email was clicked.
EmailOptOutNUMBERUNIX timestamp in seconds of when unsub occured.
EmailOpenNUMBERUNIX timestamp in seconds of when email was opened.

Web / Other Engagement - Schema​

MG Field NameTypeDescription
RecipientIdVARCHARUnique customer identifier.
WebTimeStampNUMBERUNIX timestamp in seconds of when interaction occurred.
WebTypeVARCHARType of interaction (for example, page view, add to cart).
WebUTMCampVARCHARUTM campaign parameter associated with event.
WebUTMMediumVARCHARUTM medium parameter associated with event.
WebUTMSourceVARCHARUTM source parameter associated with event.