Register events
Using Javascript:
pleasepointWidget.registerEvent({
accountId: 'my_account_id',
apiId: 'my_tracking_id',
products: ['product_reference_id1', 'product_reference_id2', ...],
userReferenceId: '', /* OR */ email: '',
eventType: 'impression' | 'click' | 'add_to_cart' | 'purchase',
source: {
page: '',
block: '',
},
recommendationId: 'recommendation_id' | null,
});
Using HTML:
<pleasepoint-event
account-id="my_account_id"
api-id="my_tracking_id"
products="['product_reference_id1', 'product_reference_id2', ...]"
user-reference-id="" <!-- OR --> email=""
event-type="impression | click | add_to_cart | purchase"
source="page_block"
recommendation-id="recommendation_id" <!-- optional -->
></pleasepoint-event>