Loyalty and rewards
How to map external data that tracks loyalty points, rewards and referrals to the Optimizely Data Platform (ODP) schema.
Concluding our e-commerce use case, our website has a loyalty and rewards system that we want to track through Optimizely Data Platform (ODP). To do so, we need to create custom events, objects, fields and relationships.
To learn about events, see events.
To learn about creating objects, fields and relationships and then update the newly created schema, see Objects and fields.
|Loyalty Tiers (||Stores data about available Loyalty Tiers that customers can attain via loyal actions.|
|Loyalty Referral Codes (||Stores all available referral codes and metrics on sharing.|
|string||The ID of the tier that the customer was previously associated with.|
|string||The ID of the tier that the customer is now associated with.|
|number||The loyalty points balance of the customer before this event.|
|number||The loyalty points balance of the customer after this event.|
|number||The total change in loyalty points due to this event.|
|string||The unique referral code that this event applies to.|
|string||The email of the customer that was referred.|
To learn about Customers in ODP, see Customers.
|number||The number of loyalty points that the customer currently has.|
|string||The unique Referral Code ID assigned to the customer.|
|string||The ID of the Loyalty Tier that the customer is associated with.|
|ts||The date & time that the customer record was created in the connected loyalty app.|
|ts||The date & time that the customer record was last updated in the connected loyalty app.|
|boolean||If true, the customer is currently enrolled in your loyalty program.|
Loyalty tiers (loyalty_tiers)
|string||The unique identifier for a Loyalty Tier.|
|string||The name of the Loyalty Tier.|
|number||The numeric rank of this Loyalty tier relative to other Loyalty Tiers.|
|number||The amount of dollars required to be spent by a customer to reach this Loyalty Tier.|
|string||A description of this Loyalty Tier.|
|number||The number of points required to reach this Loyalty Tier.|
|number||The number of purchases required to reach this Loyalty Tier.|
Loyalty referral codes (loyalty_referral_codes)
|string||The unique referral code assigned to a customer.|
|number||The number of times that this referral code has been shared.|
|number||The number of orders that have resulted from this referral code.|
|number||The dollar amount of the number of orders that have resulted from this referral code.|
|ts||The date & time that the referral code expires, if it does.|
|boolean||Determines whether or not the referral code is expired.|
|number||The total number of clicks of the shared referral code URL.|
|string||The unique referral code URL.|
Updated 8 months ago