Metadata

Metadata are extra properties of the event or the user that you want to use in Frizbit when you define a segment or campaign. Some examples of metadata include a user's id, name or gender, a viewed product's name, categories or image. Technically, they can be anything that will be useful for you to analyze events and users later. As they are giving more information about what is going on in your website, we recommend you to send metadata information whenever possible.

We have reserved some metadata names that we think have semantic meanings for users and events. When Frizbit encounters with these metadata, we will handle them in special ways. For example, we always expect email to be a string of the user's email address. Before defining your custom metadata names, we recommend you to check our predefined user and event metadata list, and should use reserved names for their intended meaning.

Predefined Metadata

Reserved metadata names with their type and intended meaning are listed below. Please use these metadata names, whenever it is possible.

Metadata Name Type Description Example
avatar String The avatar image URL of the user "https://url.com/a/jane-s.jpg"
birthday Date The birth date of the user, either in ISO-8601 format or Unix timestamps 1547118221
email String The email address of the user "janesmith@gmail.com"
emailOptin Boolean The opt-in status of the user for email campaigns true
firstName String The first name of the user "Jane"
gender String The gender of the user "Female"
id String The unique ID of the user in your database "aa24c47"
lastName String The last name of the user "Smith"
middleName String The middle name of the user "Mary"
name String The full name of the user "Jane Mary Smith"
phone String The phone number of the user in E.164 format "+441603927603"
segments Array of strings The list of segments that the user is associated with ["Premium","30+","Frequent Buyer"]
signupAt Date The date the user signed up to your platform, either in ISO-8601 format or Unix timestamps 1547118221
smsOptin Boolean The opt-in status of the user for sms campaigns false
username String The user name(nickname) of the user in your website "janesmith88"
Metadata Name Type Description Example
cartId String The ID of the cart to which a product was added to "HJSD794019089392434"
coupon String The coupon code used to apply a promotion "BLACKFRIDAY30"
creative String The creative image of a promotion "side_banner_xlarge"
currency String The currency code in ISO format, associated with the transaction "USD"
discount Number The total amount of the discount applied in a transaction 69.50
eventType String The type or action which represents the event "actionbutton1"
filters Array of filters The list of filters that a customer is using to filter down the results or to search [{type: "to", value:"Barcelona"},{type:"from", value:"London"}, {type:"depart", value:"10.10.2011"}, {type:"arrive", value:"11.11.2011"}]
filters.$.type String The ID of the attribute that a customer is using to filter down the results or to search "RAM"
filters.$.value String The ID of the selected value that a customer is using to filter down the results or to search "16GB"
listId String The ID of the product listing page being viewed "XMASOFFER01"
listName String The name of the product listing page being viewed "Xmas Offer Listing Page 1"
orderId String The ID assigned for a specific transaction, checkout or order "5348341"
paymentMethod String The payment method chosen by the customer for the transaction "Credit Card"
product Object The information about the current product {id: "#41245", name: "iPad Mini"}
products Array of Product The list of the products [{id: "#41245", name: "iPad Mini"},{id: "#41246", name: "iPhone X"}]
promotion String The name of the promotion that is applied to the order "Welcome Discount %10"
promotionId String The ID of the promotion that is applied to the order "2019WELL10"
query String The search query the customer searched "ipad mini"
rating String The value of the rating associated with the review "3.5"
recipient String The recipient of a share event "steve@apple.com"
revenue Number The net revenue associated with the transaction, excluding shipping costs and tax 86.50
review String The content of the review or the comment "Amazing product, recommended for everyone"
reviewId String The ID of the review "d3e99"
shareMessage String The message that one user sent while sharing "It's on super discount, don't miss it"
shareVia String The channel or method of the share "Email"
shipping Number The shipping cost associated with the transaction 4.5
shippingMethod String The shipping method chosen for the transaction "National Post"
sorts Array of sorts The list of options the customer chose to sort the list of products [{type: "price", value: "descending"}]
sorts.$.type String The ID of the attribute on what the products will be sorted "price"
sorts.$.value String The ID of the selected sorting type that the customer chose to sort the list "descending"
step String The name or ID representing the step of the checkout process "Enter Delivery Address"
tax Number The total tax associated with the transaction, such as VAT 9.9
total Number The total amount paid by the customer including all discounts, tax and shipping 99.50
Metadata Name Type Description Example
brand String The brand name of the product "Adidas"
categories Array of strings The whole list of the categories that a product belongs to ["Electronics","Computers & Accessories", "Computers & Tablets","Tablets"]
category String The most specific category of a product, within all its categories "Tablets"
color String The color of the product "White"
currency String The currency code in ISO format, associated with the price of the product "USD"
description String The short description about the product "Apple iPad Mini MD528LL/A (16GB, Wi-Fi, Black & Slate) (Certified Refurbished)"
id String The ID or SKU of a product "01634803412"
image String The URL of the product image "https://url.com/i/ipad-32gb-black.png"
images Array The list of image URLs of the product ["https://url.com/i/ipad-32gb-black.png","https://url.com/i/ipad-32gb-front.png"]
inStock Boolean The status showing if the product is in stock or not true
gtin String Global trade item number of the product "00000001234567"
name String The name or title of the product "Apple iPad Mini FD528LL/A"
position Number The position of the product in the product list page 5
price Number The regular list price of the product without a discount 99.50
quantity Number The quantity of items of each product in the order 3
salePrice String The actual sale price of the product with discount 69.50
size String The information about the size of the product "34cm x 55cm x 60cm"
tags Array of string The list of the tags associated with the product ["tech","kids","gamers"]
url String The URL of the product page "https://url.com/product/iPad-Mini"
variant String The information about the variant of the product "200 pieces"

If you have any questions or see anywhere we can improve our documentation, please let us know!