Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Support Google Analytics API | mediawiki/extensions/PageViewInfo | master | +738 -4 | |
Support Google Analytics API | mediawiki/extensions/PageViewInfo | master | +803 -5 |
Details
Related Objects
Event Timeline
Change 549421 had a related patch set uploaded (by Lens0021; owner: Lens0021):
[mediawiki/extensions/PageViewInfo@master] Support Google Analytics API
For testing the patchset, a credentials file and a profile ID are needed.
- Create a service account on Google and download the credentials file.
- Copy your credentials file to a certain path.
- Create a property and profile(view) on Google Analytics.
- Add the following code at the bottom of your LocalSettings.php:
wfLoadExtension( 'PageViewInfo' ); $wgPageViewInfoService = 'GoogleAnalytics'; $wgPageViewInfoGoogleAnalyticsCredentialsFile = '/path/to/your/credential_file.json'; $wgPageViewInfoGoogleAnalyticsProfileId = '12345678';
Change 549426 had a related patch set uploaded (by Lens0021; owner: Lens0021):
[mediawiki/extensions/PageViewInfo@master] Support Google Analytics API
Something I think now is there are so many analytics services in the world and PageViewInfo can't be responsible for all analytics services.
It is much proper to provide a general interface or a hook for the third-party developers who want to implement the analytics service they want to use.
Change 549426 abandoned by Lens0021:
[mediawiki/extensions/PageViewInfo@master] Support Google Analytics API
Reason:
I wrote the reason for abandon on https://phabricator.wikimedia.org/T237609#7114370