Extension:Google Analytics Integration/ja

The Google Analytics Integration extension inserts Google Universal Analytics (and/or other web analytics) tracking code in every page viewed. Exclusion of specific pages, namespaces, special pages and all pages for specific groups of users is configurable.

This extension may be outdated for your needs. If you are using the new Global Site Tag for Google Analytics, try using Extension:HeadScript instead.

Alternatively you can put Google Analytics tag directly into MediaWiki:Common.js of your wiki.

使用法

 * 1) Create a Google Analytics account
 * 2) Locate your UA number
 * 3) * For the legacy code block, it can be found on the following line: _uacct="UA-xxxxxxx-x";
 * 4) * For the new ga.js code block, it can be found on the following line: var pageTracker = _gat._getTracker("UA-xxxxxxx-x");
 * 5) Follow Installation Instructions
 * 6) Google Analytics stats should start populating within 24-48 hours.

関連項目

 * Extension:GTag - Allows to add Google Analytics tracking to pages using "gtag.js".
 * Extension:GoogleAnalyticsMetrics - Provides site-wide metrics.
 * Extension:Matomo - Similar extension using Matomo, formerly Piwik.