With custom events you can send data, to the API endpoint of Squeezely, to capture certain information
Content
In backend custom events the following fields will be sent along as a minimum:
Field label | Field content |
---|---|
event | the name of the event |
Email address of the profile |
In the following circumstances more fields are required:
Are multiple languages used? → Then also include language in the product array
Are multiple currencies used? → also add currency to the event
Extra
In this event extra data fields from the database can be sent. Maybe there are fields added to the event in the Data Plan, which are needed to set up use cases
Implementing
The documentation for implementing custom events using API Calls can be found here: https://squeezely.tech/documentation#backend-api
Check
After the implementation you can check the following two things
The response to the API call
The event in Squeezely
The following response to the API call is correct:
The following response is incorrect:
You can check the event in Squeezely as follows:
Go to: https: //squeezely.tech/data/audience/new
Click on custom
Set the following rules:
Events = (the name of the custom event)
Name = Test backend custom event
Retention = 1
Save the audience and wait until the status is 'Live
Go to Audiences
Click on 'Inspect
Click on an event ID
Check the following fields in the event:
Created at: is this a time after the implementation of the API Call? If not select another event ID.
Api inserted & api verified: does one of these fields contain 'yes'? Then the event has been implemented correctly. If not, check the implementation.
More information on the backend API can be found here: https://squeezely.tech/documentation#backend-api