Login

Learning & Support

Documentation

Google Analytics 4

Twixl Support Team Updated: - Created :

    How to:

    To allow your app to send data to Google Analytics, follow these steps:

    1. Get Started
      - Go to
      https://console.firebase.google.com/
      - Sign in with a Google Account
    2. Add a Project
      - Click on Add Project.
      - Choose a Project Name (e.g. the name of your app: My Magazine). You can also choose an existing Project to setup Firebase for.
      - Choose a Project ID or accept the proposed one.
    3. For Android: Generate your Google Services JSON file
      - In Project Settings, select the General tab.
      - Add an Android app.
      - Fill in the Android package name (a reverse DNS name like com.mycompany.myapp), and optionally specify an App nickname.
      - Click Register to continue.
      - Download the google-services.json file and save this file. You'll need it in your build setting on the platform.
    4. For iOS: Generate your Google Services Info file
      - In Project Settings, select the General tab.
      - Add an iOS app.
      - Fill in the Apple Bundle ID (that should correspond to the Bundle ID in the build settings, a reverse DNS name like com.mycompany.myapp), and optionally specify an app nickname.
      - Click Register to continue.
      - Download the GoogleService-Info.plist file and save it. You'll need it in your build setting on the platform.
    5. Integrate Google Analytics in Firebase Project
      - Click on the Gear icon next to ‘Project Overview’.
      - Select Project Settings.
      - Select Integrations.
      - In Google Analytics select 'Enable'.

    After you have setup Google Analytics 4, you'll need to update your app with the latest Twixl version to start gathering data. Only then the project in Google Analytics will gather analytics data.

    Click here for more information about Google Analytics 4.

    Was this article helpful?

    0 out of 0 found this helpful