Jump to content

Extension talk:StatCounter.com Integration

About this board

Adding project-id and security key?

3
Vardaan wiki (talkcontribs)

Can soemone please tell me where to fill in the project-id and security?

Pacha35 (talkcontribs)
Pacha35 (talkcontribs)

Hi,

see my post in my new post above .

Reply to "Adding project-id and security key?"

Also trying to figure out where to "fill in" the 2 codes.

3
Cozbaldwin (talkcontribs)

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?

This post was hidden by Pacha35 (history)
Pacha35 (talkcontribs)

Hi,

see my answer in my new post just above yours.

Reply to "Also trying to figure out where to "fill in" the 2 codes."

Statcounter doesnot work in MediaWiki V1.39

2
Pacha35 (talkcontribs)

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

Pacha35 (talkcontribs)

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.

Reply to "Statcounter doesnot work in MediaWiki V1.39"

Status Bar on First Page

1
Sakshale (talkcontribs)

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?

sysadm.equoria.com

gz.equoria.net

Reply to "Status Bar on First Page"

More information needed for new user

2
Summary by 87.123.11.131
HappyLarry (talkcontribs)

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?

87.123.11.131 (talkcontribs)
Reply to "More information needed for new user"

Failed installation on mediawiki 1.23.5

3
HappyLarry (talkcontribs)

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.

87.123.11.131 (talkcontribs)

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!

87.123.11.131 (talkcontribs)

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.

Reply to "Failed installation on mediawiki 1.23.5"
There are no older topics