Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

StatCounter by BurkeKnight Enterprises

Started by Burke ♞ Knight, December 16, 2008, 06:11:11 AM

Previous topic - Next topic

Burke ♞ Knight

Link to Mod

StatCounter by BurkeKnight Enterprises

Version: 2.0 Date: June 20, 2013
Compatibility: SMF 1.1.x & SMF 2.0

Made by: BurkeKnight - BurkeKnight Enterprises

This modification adds a way for the admin to add StatCounter to their site.

SMF 1.1.x: Admin > Features and Options
SMF 2.0.x: Admin > Modifications

It also has a link to StatCounter, so you can set up an account and also set up the counter for your site.

Some of the stats and features StatCounter offers:
Invisible Counter Option, Configurable Counter, Configurable Summary Stats,
Magnify User, Drill Down, Popular Pages, Entry Pages, Exit Pages, Came From,
Keyword Analysis, Recent Keyword Activity, Search Engine Wars, Visitor Paths,
Visit Length, Returning Visits, Recent Pageload Activity, Recent Visitor Activity,
Country/State/City Stats, Recent Visitor Google Map, ISP Stats, Browser Stats,
O.S. Stats, Resolution Stats, JavaScript Stats, Email Reports, Multiple Site Management,
User Access Management, Public Stats, Blocking Cookie.

StatCounter Project:
Inside every FREE StatCounter Account you can set up a StatCounter Project..
Project Code + Log Space:     
..and with every project you get Project Code + Log Space!
Put the code on your webpage:     
You put your code into your webpage and every time someone visits a webpage..
..the code sends visitor info back to your log       
..the StatCounter Project code sends valuable information about the visitor back to your log.
Charts & Lists:
StatCounter organizes all this information into charts & lists to make your analysis easier..
1 Website = 1 Project:
..and if you have more than one site, you simply set up another StatCounter Project in the same account!

If need support for this mod, please go to BurkeKnight Enterprises and register there.

We have a support ticket system for mod support.

We will no longer be supporting this mod here at the SMF site,
as we feel it is easier to keep all support at our site.

StatCounter in SMF 1.1.7:

StatCounter in SMF 2.0.x:


Burke ♞ Knight

ScreenShots of setting areas and a visible StatCounter button, showing where it would show up at, are added to the first post.


Quote from: BurkeKnight on December 16, 2008, 07:25:30 AM
ScreenShots of setting areas and a visible StatCounter button, showing where it would show up at, are added to the first post.

Thanks :)


You just reminded me that I have an account with statcounter lol
Nice mod mate :)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)

Burke ♞ Knight


Geat idea - I went from SMF forums to Google to seek answers and Google found what i needed here... !!! (Statcounter for forum)  :)

All I need to do is get it to work.

1.  Execute Modification  ./Themes/default/index.template.php  Test failed
2. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
3. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Test successful
4. Execute Modification ./Sources/ModSettings.php Test successful

I am using the DILBER theme... does that matter?

I've attached the index.template.php file from the "default" folder.

Thanks for any help/instructions.

Burke ♞ Knight

On the index.template.php edit, you can actually place that just about anywhere you want the statcounter to show up at.
Just be sure to back up the file first, and make sure that you edit it correctly for the place you want it at. :)




I've installed the mod and added the code to my custom theme index.template.php. But on statcounter, it's only counting the homepage stats. How can I get it to show stats for all the forum pages?

SMF 1.1.9



I have two statcounter boxes showing up at the bottom of my forum, shouldn't there be only one?


Yes, there should only be one.
You have duplicate code in your index.template.php, just remove it and also check your Modifications.english.php and ModSettings.php.
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Can anybody point me in the right direction with editing the index.template.php. I am trying to insert this into SMF2 RC2

but I get a parse error whenever I upload the file to the server, my template is attached. 


mike s

i tried installing to a test RC2 area, but the installation tests failed so I didnt complete it. Would love to see this upgraded for RC2 :)


Finally got it working on RC2 ..... Just stick the code for index.template.php anywhere before the </body> tag


I hope this mod is still being supported.  I'm using SMF ver 1.1.11 with default theme.

Have installed this mod and it seems to work fine ... but ...

Just now I checked my forum and Forum Stats said there were 42 guests online.  I logged into StatCounter and it is telling me that no one has visited my forum (there have been no page loads) in the last 5 hours.  ??  ??  ?? 

Is this a problem with the mod or with StatCounter?  How can there be 42 people on the forum but StatCounter doesn't log them?  Or is SMF messed up somehow?



Bump.  Anyone have any ideas?