website tracking
r3 - 12 Mar 2007 - 06:08:50 - WandySaeTanYou are here: TWiki >  TWiki Web  > StatCounterPlugin

StatCounter Plugin

Wrapper plugin for JavaScript tags for StatCounter -- A free yet reliable invisible web tracker, highly configurable hit counter and real-time detailed web stats.

If installed and enabled, this plugin adds StatCounter JavaScript code to all pages.

Plugin Installation Instructions

  • This plugin was developed and tested on:
    • TWiki-4.0

  • What you need to install the plugin:
    • You will need to be able to add files to the file server that host your TWiki
    • You will need to be able to modify the TWiki Configuration page

  • STEP 1: Sign up for StatCounter and get the Install Code
    <!-- Start of StatCounter Code -->
    <script type="text/javascript" language="javascript">
    var sc_project=123456; 
    var sc_invisible=0; 
    var sc_partition=1; 
    var sc_security="000000"; 
    </script>
    
    <script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.js"></script>
    <noscript><a href="http://www.statcounter.com/" target="_blank"><img src="http://c4.statcounter.com/counter.php?sc_project=481945&java=0&security=&invisible=0" alt="free hit counter" border="0"></a></noscript>
    <!-- End of StatCounter Code -->
       

  • STEP 2: Copy these files to your TWiki file servers
    File Description
    data/TWiki/StatCounterPlugin.txt  
    lib/TWiki/Plugins/StatCounterPlugin.pm  

  • STEP 3: Configure the StatCounter settings
    • Set STATCOUNTER_PROJECT = 2194949
    • Set STATCOUNTER_INVISIBLE = 1
    • Set STATCOUNTER_PARTITION = 20
    • Set STATCOUNTER_SECURITY = d34fc804

* Visit configure in your TWiki installation, and enable the plugin in the {Plugins} section.

Settings

  • Copy the value of the sc_project variable from StatCounter? into the variable below:

Plugin Info

Authors: TWiki:Main.WandySaeTan
Copyright ©: 2007 Wandy Sae-Tan
License: GPL
Plugin Version: 07 Feb 2012 (V1.000)
Change History:  
2007 March 1.0.0 First Version
TWiki Dependency: $TWiki::Plugins::VERSION 1.1
CPAN Dependencies: none
Other Dependencies: none
Perl Version: 5.005
Benchmarks: GoodStyle nn%, FormattedSearch nn%, StatCounterPlugin nn%
Home: http://TWiki.org/cgi-bin/view/Plugins/StatCounterPlugin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/StatCounterPluginDev
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/StatCounterPluginAppraisal

  • Set SHORTDESCRIPTION = Adds StatCounter JavaScript code to all pages

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r3 < r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.StatCounterPlugin