How It Works
When a user interacts with an in-app message, the SDK follows this sequence:1
Capture the interaction
The SDK detects a button click or form submission inside the rendered message.
2
Send to Bridge API
The SDK constructs a request payload — including the action type, any form data, and the customer’s identifiers — and sends it to the appropriate Bridge API endpoint.
3
Process the action
The Tappd backend processes the action: tracking an event, updating profile attributes, or saving form data.
4
Identify and link the customer
The customer is automatically identified from the included identifiers and linked to the action. If no matching customer exists, one is created automatically.
Button Actions
Buttons in in-app messages can trigger four types of actions. You configure the action type for each button in the message editor inside the Tappd dashboard.- Close
- Track Event
- Update Profile
- Open Link
The
close action dismisses the message when the button is clicked. No additional configuration or API call is required — the SDK handles this entirely client-side.Form Data Capture
Forms inside in-app messages capture user input and forward it to the Bridge API’s/capture endpoint on submission. You control what happens to that data by setting a submit action type in the dashboard message editor.
- Track Event
Creates an event in Tappd and maps form field values to event properties.Combining Button Actions with Form DataCombining Button Actions with Form Data
formData to the button’s bridge action request. You don’t need any additional configuration.
Customer Identification
The Bridge API identifies customers using one or more of the following fields, all of which the SDK includes automatically in every request:At least one identifier must be present in every bridge request. If no matching customer is found, Tappd automatically creates one using the provided identifiers.
identify() before your messages are displayed to ensure clean customer linking: