A profile triggers the purchase event when it has completed a payment.
Content
In the Purchase event the following fields are recommended:
Email: the email address of the profile (this can also be a hash, where you send the email address yourself via a backend event)
Orderid: the id of the order
Productarray with:
Quantity: the number of the product purchased
Note: the product id in the event should match the SKU of the product in Squeezely!
When products are offered in multiple languages, also the language (in which the product is purchased) has to be part of the product array as language. The notation for the language is ISO-639-1-ISO-3166 alpha 2.
By default the calculated value is the product prices x quantity. If you want to overrule this (for example including extra costs), you can add the totalvalue field
When more fields are displayed in the event, they will be included in the event additional fields sent in the event.
Implementation
It is recommended to send the purchase event from the frontend and backend to Squeezely. The frontend purchase is triggered when the thank you page is loaded on the website, while the backend purchase is triggered from the order system. Based on the orderid, the frontend and backend purchases are merged into one purchase.
The Frontend and Backend Purchase can be implemented automatically with:
The Frontend Purchase event can be implemented manually with:
/wiki/spaces/SG/pages/1399652355
Custom Tracking Purchase with Custom Tracking
The Backend Purchase event can be manually implemented with:
/wiki/spaces/SG/pages/1399652355