In the example, event data is set as a profile property so it can be used in targeted emails and in segmentation. The Booked shoot custom event is captured in Klaviyo when customers book a shoot with the brand, and data about the booking city and associated URL is set as a profile property on the respective profile.
A property called Recent bookings is also created, which stores data from the 5 most recent Booked shoot events so it can be looped through and accessed in an email templates.
The Python code for this solution is written in the Code editor and is executed directly by Klaviyo.