Extension:GoogleAnalyticsMetrics

The GoogleAnalyticsMetrics extension gets site-wide metrics from Google Analytics and inserts them into a wiki page using a parser function.

Usage
The  parser function takes one argument, which is the metric that should be displayed.

This example displays the number of page views for this site:

You can optionally also supply a start date and/or end date.

The full list of Google Analytics metrics is here. Omit the  prefix.

Configuration parameters

 * $wgGoogleAnalyticsMetricsAllowed: An array containing the name of Google Analytics metrics that are allowed to be retrieved by the extension. Defaults to, which allows all metrics.
 * $wgGoogleAnalyticsMetricsEmail: The email address of the Google Analytics account.
 * $wgGoogleAnalyticsMetricsPath: Path to your certificate key file.