Skip to main content

Firebase Analytics Integration

Send Hardal analytics events to Firebase Analytics for mobile and web app tracking.
Make sure to check the partner’s website and API documentation for the most up-to-date information and configurations.

Setup

1

Add Destination

Go to Hardal dashboard → Marketing Destinations → “Add Destination” → Select “Firebase Analytics”
2

Configure Firebase

{
  "firebase_config": {
    "project_id": "your-project-id",
    "api_key": "your-firebase-api-key",
    "app_id": "your-firebase-app-id",
    "measurement_id": "G-XXXXXXXXXX"
  }
}
3

Set Event Mapping

{
  "event_mapping": {
    "event_name": "##event_name##",
    "params": "##properties##",
    "user_id": "##user_id##",
    "timestamp_micros": "##created_at##"
  }
}

Available Variables

  • ##event_name## - Event name (auto-formatted for Firebase)
  • ##properties## - Event parameters object
  • ##created_at## - Event timestamp
  • ##user_id## - User identifier
  • ##session_id## - Session identifier
  • ##page.url## - Current page URL
  • ##page.title## - Page title
  • ##page.referrer## - Referrer URL
Firebase automatically converts event names to meet requirements (alphanumeric and underscores only, max 40 characters).