If your event-based Segments are not populating with users, it is typically because Pushwoosh cannot associate the incoming events with a specific user or device in your application's database. For the integration to work correctly, two conditions must be met:
Consistent User Identification: The
UserIDyou assign to a user within your application via the Pushwoosh SDK must be the same identifier that is sent with the event from your third-party platform. If your app does not assign aUserIDto a device in Pushwoosh, or if theUserIDsent with the event does not match any user in your Pushwoosh database, the event cannot be linked to a user profile.Device ID in Event Payload: The event data sent from your third-party platform to Pushwoosh must include the
device_idproperty. The value of this property must be the user's Pushwoosh Hardware ID (HWID). This ensures that the event is correctly attributed to the specific device that triggered it.
Example of a correct event payload:
{
"app_id": "YOUR_APP_ID",
"event_name": "Subscription Cancelled",
"created_at": "2023-10-26 10:00:00.000000",
"properties": {
"device_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"backendId": "12345678",
"isTrial": "true"
}
}
Example of an incorrect payload (missing device_id):
{
"app_id": "YOUR_APP_ID",
"event_name": "Pro: bought",
"created_at": "2023-10-26 10:05:00.000000",
"properties": {
"backendUserID": "9876543",
"period": "year"
}
}
To resolve this issue, please check your integration and ensure that:
- Your application correctly sets the
UserIDfor users in the Pushwoosh SDK. - Your third-party platform is configured to send the
device_id(with the Pushwoosh HWID as its value) in the properties of each event.
Comments
0 comments
Please sign in to leave a comment.