Events
Events let you capture and monitor every interaction made by a user. In Contentstack Personalize, there are two types of events: Impressions and Conversions.
Impressions: Impressions are a way to count how many times users see specific content on your website.
Conversions: A conversion is an event that signifies a positive user action, such as adding a product to the cart, making a purchase, or scrolling to the end of a page. Conversions are essential for measuring the success of your A/B tests.
Track Events
https://personalize-edge.contentstack.com/eventsTrack Events
The Track Events request lets you trigger events, and track either impressions for the experiences created in a project or conversions for your A/B Test experiences.
For Impressions, it accepts experienceShortUid, variantShortUid and type (i.e. IMPRESSION)
For Custom Event, it accepts eventKey and type (i.e. EVENT)
Note: For Custom Events, the eventKey created in the Events module needs to be specified in the API request.
Headers
x-cs-personalize-user-uidrequiredstringx-project-uidrequiredstring[
{
"experienceShortUid": "0",
"variantShortUid": "1",
"type": "IMPRESSION"
},
{
"eventKey": "Click",
"type": "EVENT"
}
]Events tracked successfully