Google Analytics is a service that allows you to track visits to a website and generate detailed statistics on them. You can configure App Manager to track web application invocation statistics through Google Analytics. This guide explains how to set up App Manager to feed runtime statistics to Google analytics for summarization and display.
If you are not already subscribed, set up a Google Analytics account and receive a tracking ID in the format of UA-XXXXXXXX-X. A tracking ID is issued at the time an account is created with Google Analytics.
<AppM_HOME>/repository/conf/app-manager.xmlfile, set the
<Enabled>property to true and, enter the tracking ID obtained from Google Analytics as the value of the
<TrackingID>property, within the
<GoogleAnalyticsTracking>element as shown below.
<PRODUCT_HOME>/repository/conf/app-manager.xmlfile, and restart the App Manager instance.
The above script should include the tracking code of your applications (which is generated when you publish an application), and the request URL pointing to the App Manager gateway. When the pages that include the above snippet are invoked, App Manager will publish statistics to the enabled analytics engines (BAM / Google Analytics or both).
Following image shows an invocation of a specific Web application. The Google Analytics graphs and statistics are displayed at runtime in its Real Time view. The below example displays the page views per second graph, and one as the number of active users.
Google Analytics reporting statistics take more than 24 hours from the time of invocation to populate. Shown below is a sample dashboard with populated statistics.
When a single device or client invokes a Web application via App Manager, each device/client is tracked using an anonymous cookie per application. This ensures the fact that successive invocations by a client on the same application, are not counted as a new visitor to that application.