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:
- Mobile platform: User accesses SSO (OAuth) screens using cTrader Mobile
- Analytics enabled: Firebase Analytics is enabled for the integration
To enable Firebase Analytics, contact Spotware's Support Team (support@ctrader.com).
Event tracking parameter
The eventName query parameter enables Firebase event tracking:
| Parameter | Data type | Description |
|---|---|---|
eventName | string | The 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.
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 a deposit, and how many are lost at each distinct stage of the deposit flow (when those stages have custom screens on different URLs).