TIP GoogleAnalyticsPlugin is not installed on Foswiki.org.

Google Analytics Plugin

Adds Google Analytics javascript code to specified pages.

Since version 2.1, this plugin reads settings from configure. It no longer uses a specific template or skin.

You now have the control which pages to track:
  • for specific users
    • for instance, do not track your own visits
  • for specific webs
    • for instance, do not track visits to System and Trash web
  • for bin scripts
    • for instance, do not track login pages

If you are using a version of this plugin older than 2.1: if you don't change anything, the plugin will continue to work as it did:
  • The previous setting GOOGLESITEKEY will be used as long as the new setting {WebPropertyId} in configure is not set
  • The skin setting googleanalytics will be ignored

About Google Analytics

Google Analytics is a free statistics tool to track website visitors. While this service is especially meant to measure the effectiveness of AdWords, it can be used for any site.

Google presents visitor data in a visually rich dashboard:
Screenshot of Google Analytics application
view large image

Settings

After installation, configure this plugin by changing settings in configure.

Site ID

Google provides its users with a piece of html to copy-paste into pages. For this plugin you don't need that html, but the "Web Property ID" only. Enter this ID at {WebPropertyId}.

Tracking per web

Enable tracking with {Tracking}{Enable}{Webs}.
  • Enter * to track visits to topics in all webs (default value).
  • Enter specific web names to limit tracking to these webs only.

Disable tracking with {Tracking}{Disable}{Webs}.
  • Enter '' (nothing) to not disable tracking in any web (default value).
  • Enter specific web names to not track visits to these webs.

Tracking per user

Enable tracking with {Tracking}{Enable}{Users}.
  • Enter * to track visits by all users (default value).
  • Enter specific user (Wiki) names to limit tracking the visits by these users only.

Disable tracking with {Tracking}{Disable}{Users}.
  • Enter '' (nothing) to not disable tracking of any user (default value).
  • Enter specific user names to not track visits from these users.

Tracking per script

Enable tracking with {Tracking}{Enable}{Scripts}.
  • Enter * to track visits to topics from all scripts (default value).
  • Enter specific script names to limit tracking from these scripts only.

Plugin Installation Instructions

You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server.

Open configure, and open the "Extensions" section. Use "Find More Extensions" to get a list of available extensions. Select "Install".

If you have any problems, or if the extension isn't available in configure, then you can still install manually from the command-line. See http://foswiki.org/Support/ManuallyInstallingExtensions for more help.

Plugin Info

Authors: Foswiki:Main.ArthurClemens
Copyright ©: 2006,2009 Arthur Clemens, 2009 Will Norris
License: GPL
Version: 4729
Release: 2.1.1
Change History:  
27 Aug 2009 2.1 Arthur Clemens: Moved settings to configure. No longer uses a skin template. Tracking can be specified per web, user and script.
26 Feb 2009 2.0.1 converted to skin template, increased apparent page rendering speed (Foswiki:Main.WillNorris)
25 Feb 2009 2.0.0 Ported to ga.js (Foswiki:Main.WillNorris)
24 Feb 2009 1.001 Ported to Foswiki (Foswiki:Main.WillNorris)
21 Sep 2006 1.0.0 First Version
Foswiki Dependency: $Foswiki::Plugins::VERSION 2.0
CPAN Dependencies: none
Other Dependencies: none
Perl Version: 5.005
Home: http://foswiki.org/Extensions/GoogleAnalyticsPlugin
Support: http://foswiki.org/Support/GoogleAnalyticsPlugin
Feedback: http://foswiki.org/Extensions/GoogleAnalyticsPluginDev

Related Topics: DefaultPreferences, SitePreferences
I Attachment Action Size Date Who Comment
GoogleAnalyticsPlugin.md5md5 GoogleAnalyticsPlugin.md5 manage 186 bytes 31 Aug 2009 - 12:31 ArthurClemens  
GoogleAnalyticsPlugin.sha1sha1 GoogleAnalyticsPlugin.sha1 manage 210 bytes 31 Aug 2009 - 12:31 ArthurClemens  
GoogleAnalyticsPlugin.tgztgz GoogleAnalyticsPlugin.tgz manage 192 K 31 Aug 2009 - 12:30 ArthurClemens  
GoogleAnalyticsPlugin.zipzip GoogleAnalyticsPlugin.zip manage 194 K 31 Aug 2009 - 12:30 ArthurClemens  
GoogleAnalyticsPlugin_installerEXT GoogleAnalyticsPlugin_installer manage 4 K 31 Aug 2009 - 12:31 ArthurClemens  
Google_Analytics_Dashboard_small.jpgjpg Google_Analytics_Dashboard_small.jpg manage 45 K 02 May 2009 - 17:01 WillNorris  
Topic revision: r11 - 10 Dec 2009, CrawfordCurrie
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy