Skip to main content
All CollectionsIntegrationsAnalytics Integrations
Setting Up Firebase & GA4 With Reactiv
Setting Up Firebase & GA4 With Reactiv

Connect your firebase account with Reactiv to track customer behavior and engage with them via Firebase cloud messaging.

R
Written by Reactiv App
Updated over 4 months ago

Introduction

Integrating Google Analytics (GA4) with your Reactiv mobile app allows you to track and analyze user interactions effectively. Reactiv's Firebase integration empowers you to leverage Firebase Cloud Messaging. This guide will help you set up and configure these integrations for your Reactiv app.

Prerequisites

Before starting, ensure you have the following:

  1. A Firebase account and project.

  2. Access to your Reactiv dashboard.

  3. Basic knowledge of Firebase and Google Analytics.

Step-by-Step Guide

Step 1: Create a Firebase Project

1. Go to the Firebase Console: Visit Firebase Console.

2. Create a Project: Click on "Add project" and follow the on-screen instructions to create a new project.

3. Register Your App: In the Firebase project overview, click on "Add app" and select the platform (iOS/Android). Follow the instructions to register your app.

Step 2: Download Firebase Credentials

1. Download the iOS Configuration File:

  • Add your iOS app to firebase if your haven't already.

  • Open to Firebase Console and Select your App

  • Navigate to Project Settings > General

  • Scroll down to Your Apps and select the iOS app.

  • Download the GoogleService-Info.plist file

iOS - GoogleService-Info.plist file download

2. Download the Android Configuration File:

  • Add your Android app to firebase if your haven't already.

  • Open to Firebase Console and Select your App

  • Navigate to Project Settings > General

  • Scroll down to Your Apps and select the Android app.

  • Download the google-services.json file

Android - google-services.json file download

Step 3: Connect GA4/Firebase with Reactiv

  1. Navigate to Shopify

  2. Open Reactiv - Mobile App Builder

  3. Navigate to Integrations

  4. Look for the Google Analytics (GA4) section and click on Connect

  5. You will receive the below Pop-Up where you will need to fill in the required fields; Firebase App ID (iOS), Measurement Protocol API Secret (iOS), Firebase App ID (Android), Measurement Protocol API Secret (Android)

How do I find my App ID?

In the above downloaded file (for iOS or Android), open it to find the APP_ID (for iOS, this will be inside the GOOGLE_APP_ID field; for Android, it will be inside the app_id field).

Where do I find my Measurement Protocol API Secret in Firebase?

Step 1: Go to Firebase Console

  1. Visit the Firebase Console.

  2. Select the project that contains the app for which you want to use the Measurement Protocol API.

Step 2: Access Google Analytics Settings

  1. In the left-hand sidebar, click on "Analytics".

  2. Select "Dashboard" (if not already in the dashboard).

  3. Click on the gear icon (βš™οΈ) in the top-right corner of the Analytics dashboard to open the Analytics settings.

Step 3: Find Your Data Streams

  1. In the Analytics settings, under Property Settings, click on "Data Streams".

  2. Choose the Data Stream (iOS, Android, or Web) for which you want to find the Measurement Protocol API Secret.

Step 4: Access Measurement Protocol API Secret

  1. In the selected Data Stream, scroll down to the Measurement Protocol section.

  2. Click "Create" under the Measurement Protocol API Secrets section.

  3. Provide a name for the secret (e.g., "API Secret for My App").

  4. Click "Create".

Step 5: Copy the API Secret

  1. Once created, you will see the API Secret listed.

  2. Copy this API Secret β€” you'll use it to authenticate requests when sending data using the Measurement Protocol.

Step 4: Documentation and Support

  • For understanding GA4: Checkout Google's official documentation.

  • Contact Reactiv Support: If you encounter any issues, you can reach out to Reactiv Support for assistance.

Additional Notes

  • Make sure you have the appropriate permissions in your Firebase and Google Analytics accounts to access the necessary IDs and secrets.

  • Ensure that your Reactiv app is updated to the latest version to support the GA4 integration.

Did this answer your question?