Can soemone please tell me where to fill in the project-id and security?
Extension talk:StatCounter.com Integration
Just updated my wiki to 1.37.1 after a few years and now find that I cannot add in HTML to the templates anymore. So I found and installed this extension and it's not working. The page "MediaWiki:Statcounter" just has "Site statistics" on it and doesn't even print in the side nav as expected. And of course, the big question everyone before me wants to know: Where do you put in the project ID and security ID?
Hi,
see my answer in my new post just above yours.
Hi, with old MediaWiki version (1.29), Statcounter extension works fine.
With the 1.39 version of MediaWiki, Statcounter extension doesnot work at all.
Is there a fix for that ?
The extension page is always the same without any restrictions : Extension:StatCounter.com Integration
Regards
HI,
I contacted Statcounter support.
Now the extension for MediaWiki doesn't work anymore.
It is replaced by the Statcounter code for Mediawiki to be placed at the beginning of MediaWiki:Common.js as below:
/* Statcounter code for YOUR WIKI SITE */
var sc_project=YOUR NUMBER;
var sc_invisible=1;
var sc_security="YOUR SECURITY CODE";
var script = document.createElement('script');
script.src = "https://secure.statcounter.com/counter/counter.js"
document.body.appendChild(script)
/* End of Statcounter Code */
I have tried this solution and it works fine.
The StatCounter extention is working on both of my Mediawiki sites. By that I mean the traffic is counted and reported on the StatCounter site. However, on the first page of each site is a small entry entitle "statcounter", with nothing following it. This is identical on both sites. What did I miss?
I have a project id but I don't understand how to
"Fill in [[MediaWiki:Statcounter-project-id]]"
Suppose my project id was 123456.
What exactly do I type - and where?
The instructions given result in an error
"Warning: require_once(extensions/StatCounter/StatCounter.php): failed to open stream:"
I checked and there is no StatCounter.php file in the folder.
The extension does not have this file. Instead, it only has an extension.json file. This will only work with MediaWiki 1.25 or newer. So if you want to use the extension, you have to upgrade MediaWiki first - preferably to MW 1.27!
Actually - according to the page - the extension only is compatible with MediaWiki 1.27. So, if you want to use it, you have to upgrade to MW 1.27 - and not to an older version.