
How it works
The AppsFlyer Web SDK is a JavaScript snippet that loads on your funnel pages and tracks visitor actions. Events are sent from the visitor’s browser directly to AppsFlyer, where they appear in your dashboard for attribution and reporting. FunnelFox sends events using the client-side AppsFlyer Web SDK. Server-side events are not currently supported.User identification
FunnelFox sets a Customer User ID on AppsFlyer to link events to the correct user. The ID is determined by the following priority:- Custom input: If you add an input element with the
_USERID_element ID, its value is used as the Customer User ID. - From your backend: Fetch the user ID from your backend and set it using custom code inside a Raw HTML element:
- Profile-based ID (default): If none of the above are provided, FunnelFox profile ID is used.
Setting
_USERID_ later in the funnel flow will update the Customer User ID for all subsequent events in that session.Tracked events
| AppsFlyer Event | Triggered When |
|---|---|
af_initiated_checkout | User sees the checkout element |
af_purchase | Purchase completed successfully |
af_content_view | Page or screen is presented to the user |
af_complete_registration | User email is collected |
