Google Analytics Event

This action helps you log the custom events. Using this action, you can log the additional information with the event in the form of parameters.

Prerequisites

Before you add this action, you'll need to enable Google Analytics as per the instructions here.

Defining Google Analytics Event action

Go to your project page on FlutterFlow and follow the steps below to define the Action to any widget.

  1. Select the Widget (e.g., Button) on which you want to define the action.

  2. Select Actions from the Properties panel (the right menu), and click + Add Action.

    1. Search and select the Google Analytics Event action.

    2. Enter the name of the event in the Value input field. This name will be displayed on the Analytics dashboard.

All the logged events can be accessed from the Analytics dashboard of your Firebase console.

Event names must be 40 characters or less. Event names may only contain alphanumeric characters and underscores ("_"), and must start with an alphabetic character.

Defining Google Analytics Event action with parameter

Sometimes you might want to log the additional information such as time, user type, and placement of the widget when the event is logged.

Here's an example of logging the event for the tab name when the tab (inside the TabBar) is clicked/changed:

  1. Select the Tab (inside TabBar) on which you want to define the action.

  2. Select Actions from the Properties panel (the right menu), and click + Add Action.

    1. Search and select the Google Analytics Event action.

    2. Enter the name of the event in the Value input field, such as Tabbar_On_Tap.

    3. Click on the + Add Parameter and open the Param 1 section.

    4. Inside the Key section, enter Value as Tab_Name.

    5. Inside the Value section, enter the Value as the name of the tab (e.g., Upcoming, Past).

  3. Similarly, add this action for other tabs as well.

Last updated