Extension:GoogleAnalyticsMetrics/ja

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

使用法
The  parser function takes three parameters, in the form of  :
 * Name of metric : The name of the Google Analytics Metric that should be displayed. The full list of Google Analytics metrics is here. Omit the  prefix.
 * ページ名 : The name of the page. This parameter is only used when the metric is a per page metric.
 * 開始日 : Show the metric since this date (optional). Defaults to, which is the beginning of time according to Google Analytics.
 * 終了日 : Show the metric until this date (optional). Defaults to.

Both date parameters use the form: Year-Month-Day.

例
This example displays the number of page views for this site, from the beginning until the end of time:

Show the number of sessions from February 3, 2011 until today.

Show the average session duration until February 1 2012:

Show the number of page views for last month only, with the help of the extension:

Or, to make that nicer: 0

Show the number of page views for a page, from the beginning until the end of time:

See this page for some help with formatting this extension's output.

構成パラメーター

 * $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.
 * $wgGoogleAnalyticsMetricsViewId : Google Analytics View ID.