Events
Events are specific user actions that either trigger or cancel messages
Events are triggered when a user performs an action on the app or website. You can send messages to encourage users who triggered an event to take further action. They can include a range of actions, such as:
User Sign-ups
Product Purchases
Account Upgrade
Completion of specific milestones
Integrating Events
Events are triggered each time the user performs a specific action. Please use the code below at the time the event is triggered:
REST API (recommended):
POST /v1/projects/PROJECT_ID/track
Web SDK / Mobile SDK:
FlareLane.trackEvent("test_event")
Supported Data Types
The following data types are supported:
String
Number
Time (Unix Timestamp in milliseconds: e.g., 1681721331085)
Time (ISO8601 formatted string: e.g., 2024-04-19T14:23:56+09:00)
Array (all elements must be either strings or numbers)
Null (deleted tags)
Checking Integrated Data
You can view all triggered events by logging into the FlareLane console > Click "Data Management" > Click "Recent Events" at the top of the page. You can also filter events based on specific user IDs or device IDs.
Viewing Collected Events
Certain events are automatically collected by FlareLane SDK. You can tell them by a "@" prefix in their names as the following:
Events | Definitions |
---|---|
@first_session | When device created |
@clicked | When users click on push notifications |
@foreground_received | When users receive a push notification while the app is in the foreground |
@background_received | When users receive a push notification while the app is in the background |
@iam_displayed | When an in-app message is displayed on the user's screen |
@iam_clicked | When users click on an in-app message |
@iam_closed | When users close an in-app message |
Last updated