Google Analytics Reactive

Stable Version 1.0.0 (OutSystems 11)
Published on 20 December 2019 by 
Created on 20 December 2019

Google Analytics Reactive


How to use

The Google Analytics Reactive component allows an application to track screen visits and custom events in both Mobile and Reactive applications using Google Analytics services.

There are three client actions available:

  • Init
  • TrackEvent
  • TrackScreen

Before using this component you must have a valid Google account,  and a TrackingId for each app. These can be managed at the Admin console of Google Analytics


The Init client action loads and initializes the Google Analytics required scripts.

These should be initialized early so it's recommended to add it to the OnApplcationReady system event. This action must receive the Google Analytics account TrackingId as an input parameter. This is available on Google Analytics console at 

Track event

The TrackEvent client action is used to track a custom event. This event is usually connected with some sort of action such as playing a video or clicking a button.

To track a custom event just add the TrackEvent to a given client action. This action receives four input parameters:

table from 

On the following example, the application is tracking whether a user plays a specific video, so the TrackEvent was added to the action that plays the video.

For more information about custom events: 

Track screen

The TrackScreen client action is used to track screen visits. All that's needed to achieve this is to add this action to the OnReady event action of the layouts you want to track, or of any specific screen.

After all this configuration on the application, all data will be available at the Google Analytics console.

Support Options
This component is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from Sérgio Sardo who created this component.
Google Analytics Reactive has no dependencies.