How is your experience with the OutSystems Community?
google-analytics-library
Reactive icon

Google Analytics Library

Stable version 1.0.3 (Compatible with OutSystems 11)
Uploaded
 on 18 Nov (2 days ago)
 by 
4.4
 (7 ratings)
google-analytics-library

Google Analytics Library

Details
Add Google Analytics 4 to OutSystems 11 Reactive and Mobile apps: page views on screen changes, custom events, user ID and properties, Consent Mode v2 and DebugView. No JavaScript needed.
Read more

Features

Add Google Analytics 4 (GA4) to your OutSystems 11 Reactive Web and Mobile apps with a few client actions, no JavaScript needed.

  • Loads gtag.js once and asynchronously. An ad blocker never breaks your app: tracking calls are just ignored.
  • Page views on screen changes: call TrackScreen in the OnReady of each screen (or of your layout) and every navigation in your single-page app is counted, with an optional screen name, title and path.
  • Custom and recommended events (sign_up, purchase, button_click...) with parameters, a numeric value and a currency.
  • User ID and user properties, to follow the same user across devices and segment your reports.
  • Google Consent Mode v2 (GDPR/ePrivacy): start with every consent type denied and update it when the user answers your cookie banner.
  • DebugView support to validate your events while you develop.
  • On/off switch with the GAIsEnabled site property, and input validation (Measurement ID format, GA4 event name rules) with clear console warnings.
  • Includes a sample app: an interactive playground to test consent, events and the user ID, showing the dataLayer entries sent to Google.
Release notes (1.0.3)
  • TrackScreen now works with GA4 (it used the discontinued Universal Analytics API) and accepts ScreenName, PageTitle and PagePath.
  • TrackEvent now sends its parameters correctly and accepts Value and Currency.
  • gtag.js is loaded only once; Init can be called again safely. An ad blocker no longer affects the app.
  • Only one server call (in Init) instead of one per tracked event.
  • New: Consent Mode v2 (Init.ConsentDefaultDenied, UpdateConsent), SetUserId, SetUserProperties, Init.DebugMode and Init.SendPageView.
  • Measurement ID and event name validation, with console warnings.
  • Descriptions on every element. New sample app: an interactive playground (consent, events, user ID, live dataLayer view) that reads the Measurement ID from a site property.
License (1.0.3)
Reviews (1)
by 
2023-12-19
in version 1.0.0
The app fails to load when an ADBlock extension is blocking Google Analytics.
Answer from the owner
2025-05-26
in version 1.0.0
Hi Duarte,

The issue has been resolved in the latest submitted versions.

Would it be possible to re-evaluate the component based on the updated version?

I’d really appreciate it.

Thank you!
Team
Other assets in this category