Google Analytics is a cloud service able to provide mobile analytics and crash reporting, showing the data in dashboards. If you already know what Google Analytics is you can skip this to Google Analytics Setup.
Whether you want to boost sales or find more users, Google Analytics helps you to improve your business across your sites and apps.
Reports can be segmented and filtered to reflect the needs of your business. Access an array of reporting and analysis tools that help you understand your customers from acquisition to purchase.
When there’s no connectivity, gathered metrics are cached and sent when the Application is launched with an active network connection.
If you want to know more about Google Analytics, and all the available features you can access their website here.
Create a new Google account if you do not have one. Visit google.com/analytics, click the “Sign in” button (top right).
You need to click on “Sign up” button in the following screen:
After signing up you have to select the “Mobile app” separator and choose a name to your account and application.
To be able to use the Google Analytics Plugin on your mobile application, you will need to get the “Tracking ID” of your application.
This “Tracking ID” can be used in any application, so be careful not to mix data from other applications.
When the Google Analytics Plugin is integrated in your Outsystems Application, by default you are able to see: native crashes (when enabled), real-time data about active users, number of sessions, most used application versions, most used operating systems, most used devices and user location.
It is also possible to refine this information using Google Analytics Plugin actions. You’ll be able to track: crashes with additional information; views, screens, timings and custom metrics and dimensions.
The following actions are available on the Google Analytics Plugin:
For more detailed information about each action, you can find their descriptions and input params on the Plugin itself.
In the section “Some integration use cases”, you can learn how to implement three use cases using some of actions listed above:
Start by installing the Google Analytics Plugin from OutSystems Forge. The fastest way to do this is to go to the OutSystems tab in your development environment and install from there.
On your application, use “Manage Dependencies…” to add a reference to the Google Analytics Plugin.
To use the Google Analytics Plugin actions, drag and drop the “Client Action” to your screen and choose one of the Google Analytics Plugin actions that you want to use on your Outsystem application.
Before you can send data to Google Analytics, you need to initialize the Google Analytics Plugin:
Then, add the “StartTrackerWithId” Google Analytics Plugin action.
Set the “Id” parameter to the “Tracking Id” of your application.
By default, your Outsystems application doesn’t send any data to Google Analytics about uncaught native crashes. To start sending this information, add the “EnableUncaughtExceptionReporting” action to the “On Application Ready” event, after the cal to “StartTrackerWithId”.
Then, set the “Enable” parameter to “True”:
It is possible to track all the exceptions that can occur in your actions. To do that, use the “TrackException” Google Analytics Plugin action.
As action inputs, you need to indicate if is a fatal exception and the exception description content:
Now let’s see the data in Google Analytics website. Click on “Crashes and Exceptions” under “Behavior” tab, and you will be able to see the crashes of your application.
In order to track information about the screens, you need to call the TrackScreen action. This can be done either on the “onReady” event on each screen you want to track or, if you want to track all screens, you can place it on the “onReady” event of the “Layout” block.
As input to this Google Analytics Plugin action, you have an optional parameter where you can insert the name of the screen you want to track. If you don't insert any custom name, it will automatically track with the name of your OutSystems screen.
Now let’s see the data in Google Analytics website. Click on “Screens” under “Behavior” tab, and you will be able to see the Screen Views of your application.
Let's say you have a mobile home banking application, and you want to know which types of bank transfers your users use the most.
Assuming you have a “Transfer” action flow like this:
You can track the transfer event by using the “TrackEvent” Google Analytics action in your “Transfer” action.
Next, you need to fill the inputs of the Google Analytics Plugin action. Both “Category” and “Action” are mandatory parameters and you can use them to track the transfer type.
Now, assign the “Category” parameter with “Transfer” and the “Action” parameter with “Internal”. You can also use the Label and Value to specify the transfer amount.
In the end the “Transfer” action should be similar to this:
Now let’s see the data in Google Analytics website. Click on the “Behavior” tab, and choose “Events”.
In the “Overview” dashboard you can conclude that 178 transfers were made with your application. From those 178 transfers, 92 were “External” and 86 were “Internal”.
Greetings,
Is there any way to send Track Screens or Track Events to Firebase Analytics instead of Google Analytics with this plugin?
If this can not be done, do you know any plugin that I can use to do this?
Best regards.
I am also interested in what the alternative to this plugin is, Google is deprecating Google Analytics SDK for mobile in October of this year, but there does not appear to be a supported alternative for OutSystems yet. The Firebase Mobile plugin can be set up to work with some effort, but there are some issues (like it doesn't work with Pushwoosh plugin, for example). Looking forward to a response.
Grayson Udstrand wrote:
Hi, can you describe to me step by step on how you set up the firebase mobile plugin? im getting dead end right here.
Karel Benjamin wrote:
Karel, did you try to follow the instructions found on the forge page for the plugin? You can find the documentation in several links on this page: https://www.outsystems.com/forge/component-overview/4991/firebase-mobile
If you are still having problems, I would like to know what aspect of the firebase suite you are attempting to implement specifically, then I should be able to help you more.
About custom variable, metric in plugin, I don't know how to use custom variable action to setup and implement into my application mobile in outsystem. I want to create new filter base on custom variable. There are some actions in plugin such as AddCustomDimension, SetCustomMetric but I don't know how to use these action. Can anyone show me how to resolve this problem. Thank you!
How to use Google analytical plugin in web application .
I m very new to outsystems and dont have any idea how to use it, can someone please help me this.
Thankyou
Harshita Sharma wrote:
You're on the wrong component - this one is for building native mobile apps in OutSystems. This one is for web: https://www.outsystems.com/forge/component-overview/3608/google-analytics
The instructions on this forum post for setting up your Google Analytics account are still good.
I'm very interested in excluding some users from tracking GA.
How may I do it in the Out System using this plugin?