Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

You can configure the APP Manager to track web application invocation statistics through Google Analytics (http://www.google.com/analytics). 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 AnalyticsThis guide explains how to setup APP Manager in order set up App Manager to feed runtime statistics to Google analytics for summarization and display.

...

Table of Contents

  1. If you are not already subscribed, set up a Google Analytics account if not subscribed already and receive a Tracking ID, which is of tracking ID in the format "of UA-XXXXXXXX-X". A Tracking tracking ID is issued at the time an account is created with Google Analytics.

  2. Open $APPM_HOMEIn the <AppM_HOME>/repository/conf/apiapp-manager.xml. Enable the <GoogleAnalyticsTracking> element and enter the Tracking-ID file, 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.

     

    Code Block
    <GoogleAnalyticsTracking>
       <!-- Enable/Disable Google Analytics Tracking -->
       <Enabled>false</Enabled>
       <!-- Google Analytics Tracking ID -->
       <TrackingID>UA-XXXXXXXX-X</TrackingID>
    </GoogleAnalyticsTracking>
  3. Save the <PRODUCT_HOME>/repository/conf/app-manager.xml file, and restart the APP App Manager instance.

  4. Once we have the APP Manager setup to integrate with your Google Analaytics account, we have to place the following JavaScript snippet onto the pages we wish to trackApp Manager is set up, place the below JavaScript code snippet into the pages that you need to track to integrate it with your Google Analytics account.

    Code Block
    <script language="javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script>
    <script language=”javascript”>
        function invokeStatistics(){         
        var tracking_code = ["<AM_TRACKING_CODE>"];         
        var request = $.ajax({        
            url: "http://<AM_GATEWAY_URL>:8280/statistics/",        
            type: "GET",        
            headers: {            
                "trackingCode":tracking_code,        
                }              
            }
        );    
    }
    </script>
    Info

    The above script should include the tracking code of your applications

...

  1. (

...

  1. which is generated when you publish an application)

...

  1. , and the request URL pointing to

...

  1. the App Manager gateway.

...

  1. When the pages that

...

  1. include the above snippet

...

  1. are invoked,

...

  1. App Manager will publish statistics to the enabled

...

  1. analytics engines (BAM / Google Analytics or both).

Real-time statistics

Following image shows an invocation of a specific web Web application. The Google Analytics graphs and statistics will be are displayed at run time runtime in its Real Time view. This The below example displays the PageViews page views per second graph, and 1 user one as the number of active users.

 Image Added

Image Removed

Reporting statistics

Google Analytics reporting statistics take more than 24 hours from the time of invocation to populate. Shown below is a sample Dashboard dashboard with populated statistics.

Image RemovedImage Added

 

Cookies

When a single device or client invokes a web Web application via the APP App Manager, each device/client will be is tracked using an anonymous cookie per application. This ensures the fact that successive invocations by a client on the same application will , are not be counted as a new visitor to that application.