WebToAppMaker

JavaScript Bridge

Logging AppsFlyer Events

Send analytics-safe custom events from the website to the native AppsFlyer SDK.

Before you start

  • AppsFlyer module enabled with Dev Key
  • An event naming and data policy

Configure and verify

  1. Define the event

    Use a stable name such as order_placed and a small flat object of analytics-safe parameters.

  2. Log through the helper

    Call webtoapp.logAppsFlyerEvent(name, parameters).

  3. Observe the response

    Listen for webtoapp:appsflyer-event or generic onmessage to record local success or an SDK error.

  4. Verify in AppsFlyer

    Use a test device and confirm the event reaches the intended app and environment.

Example

webtoapp.logAppsFlyerEvent("order_placed", {
  order_amount: 117.5,
  currency: "USD"
});

Privacy

Test before release

  • Event name is documented
  • Parameters are non-personal
  • Test event appears in AppsFlyer
  • Failures do not block the user flow