@Retention(value=RUNTIME) @Target(value=TYPE) public @interface EnableGoogleAnalytics
Any navigation event will be tracked as a page view unless the @Route
class is also annotated with @IgnorePageView
. It is possible to
manually track page views or other events through the tracker instance
available through GoogleAnalyticsTracker.getCurrent()
or
GoogleAnalyticsTracker.get(UI)
.
This annotation only has properties for the most commonly used configuration
options. For low-level configuration or programmatic configuration, the
application's main layout can also implement TrackerConfigurator
.
Modifier and Type | Required Element and Description |
---|---|
String |
value
The Google Analytics tracking ID to use.
|
Modifier and Type | Optional Element and Description |
---|---|
String |
cookieDomain
The cookie domain setting.
|
EnableGoogleAnalytics.LogLevel |
devLogging
Client-side log level to use when Flow is not run in production mode.
|
String |
pageviewPrefix
A prefix to add to the URL of all page views.
|
EnableGoogleAnalytics.LogLevel |
productionLogging
Client-side log level to use when Flow is run in production mode.
|
EnableGoogleAnalytics.SendMode |
sendMode
Mode to determine whether page views and events should actually be sent
to Google Analytics.
|
public abstract String value
public abstract String cookieDomain
auto
is used.public abstract EnableGoogleAnalytics.LogLevel productionLogging
public abstract EnableGoogleAnalytics.LogLevel devLogging
public abstract EnableGoogleAnalytics.SendMode sendMode
public abstract String pageviewPrefix
Copyright © 2023 Sami Ekblad. All rights reserved.