Skip to main content

Firebase analytics

Firebase Analytics integration enables brokers to track user behaviour across SSO (OAuth) flows.

Implementation requirements

Platform support conditions

Firebase Analytics functionality is available when both conditions are true:

  1. Mobile Platform: User accesses SSO (OAuth) screens using cTrader Mobile
  2. Analytics Enabled: Firebase Analytics is enabled for the integration

To enable Firebase Analytics, contact Spotware's Support Team.

Event tracking parameter

The eventName query parameter enables Firebase event tracking:

ParameterData typeDescription
eventNamestringThe name of the event to be sent to Firebase

Event tracking implementation

URL parameter usage

Add the eventName parameter to URLs hosting SSO (OAuth) screens:

https://brokerCrmUrl.com/auth/login?eventName=login_screen_view
https://brokerCrmUrl.com/inapp/deposit?eventName=deposit_initiated&token=abc123&lang=en
https://brokerCrmUrl.com/auth/signup?eventName=signup_step_1&firstLogin=true

Event flow tracking

When users are redirected between URLs during SSO (OAuth) flows, events are automatically sent to Firebase.

Event names

The eventName value is free-form: cTrader forwards it to Firebase unchanged, so you choose the names that suit your analytics.

info

You can use eventName to track users' progression along the onboarding funnel — for example, how many traders who open an account go on to start your KYC checks, and how many are lost at each distinct stage of the KYC process (when those stages have custom screens on different URLs).