Directory

← Back

GoogleAnalyticsTracker

Track Vaadin application use with Google Analytics

Author

Rating

Popularity

400+

Google Analytics is a JavaScript based tracking service for websites. With this widget you can track any application events using a simple API. The Vaadin 7 version also supports Navigator API for automatic reporting.

Vaadin version compatibility:

Add-on Vaadin version
1.x Vaadin 6.x
2.x Vaadin 7.x
3.x Vaadin 8.x
4.x Vaadin 10-23
5.x Vaadin 24+

Notes

  • Since version 4.1.0 (Vaadin 10) Uses GA4
  • Since version 3.1.0 (Vaadin 8) Uses GA4
  • Since version 2.1.0 (Vaadin 7) Universal Analytics (analytics.js) is the default.
  • Since version 2.2.0 event and user-id tracking was added
  • Since version 2.2.0 project structure changed

Sample code

// Enable Google Analytics in MainView using annotations

@PageTitle("MainView")
@EnableGoogleAnalytics("G-VF84NR52Q0")
@Route("")
public class MainView extends VerticalLayout { 
   /* MainView implementation  */
}


// Track a custom event
GoogleAnalyticsTracker.getCurrent()
        .sendEvent("GoogleAnalyticsTracker","demo");

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

3.1 is GA4 compatible version for Vaadin 8. This is just new build with newer Maven plugins.

Released
2023-06-22
Maturity
STABLE
License
Apache License 2.0

Compatibility

Framework
Vaadin 8.0+
Vaadin 6.0+ in 1.1.2
Vaadin 7.1+ in 2.2.0
Vaadin 23 in 4.1.0
Vaadin 22 in 4.1.0
Vaadin 21 in 4.1.0
Vaadin 20 in 4.1.0
Vaadin 19 in 4.1.0
Vaadin 18 in 4.1.0
Vaadin 17 in 4.1.0
Vaadin 16 in 4.1.0
Vaadin 15 in 4.1.0
Vaadin 14 in 4.1.0
Vaadin 13 in 4.1.0
Vaadin 12 in 4.1.0
Vaadin 11 in 4.1.0
Vaadin 10 in 4.1.0
Vaadin 24+ in 5.0.0
Browser
Browser Independent

GoogleAnalyticsTracker - Vaadin Add-on Directory

Track Vaadin application use with Google Analytics GoogleAnalyticsTracker - Vaadin Add-on Directory
Google Analytics is a JavaScript based tracking service for websites. With this widget you can track any application events using a simple API. The Vaadin 7 version also supports Navigator API for automatic reporting. #### Vaadin version compatibility: | Add-on | Vaadin version | | ---------- | ------------- | | 1.x | Vaadin 6.x | | 2.x | Vaadin 7.x | | 3.x | Vaadin 8.x | | 4.x | Vaadin 10-23 | | 5.x | Vaadin 24+ | #### Notes * Since version 4.1.0 (Vaadin 10) Uses GA4 * Since version 3.1.0 (Vaadin 8) Uses GA4 * Since version 2.1.0 (Vaadin 7) Universal Analytics (analytics.js) is the default. * Since version 2.2.0 event and user-id tracking was added * Since version 2.2.0 project structure changed
Google Analytics
Ko-fi.com
Issue Tracker
View on GitHub

GoogleAnalyticsTracker version 1.1.2
Universal Analytics support for Vaadin 6.

GoogleAnalyticsTracker version 2.2.0
- Added event tracking. Special thanks to Ranil Wijeyratne. - User ID support by Marc Jay - Updated project layout to Maven Release plugin format

GoogleAnalyticsTracker version 3.0.0
Upgraded to Vaadin 8.

GoogleAnalyticsTracker version 4.1.0
4.1.x is upgraded to Google Analytics 4 (GA4) for Vaadin 10+.

GoogleAnalyticsTracker version 5.0.0
Vaadin 24 compatible version.

GoogleAnalyticsTracker version 3.1.1
3.1 is GA4 compatible version for Vaadin 8. This is just new build with newer Maven plugins.

Online