Trac plugin to enable your trac environment to be logged by Google Analytics
This plugin will enable your trac environment to be logged by Google Analytics.
To enable the plugin add to the [components] section in your trac.ini:
[components] tracgoogleanalytics.* = enabled
- The necessary configuration is:
var pageTracker = _gat._getTracker("UA-111111-11");
In this example you would put UA-11111-1 in the UID box.
- There are other, more advanced configuration options:
admin_logging: Disabling this option will prevent all logged in TRAC_ADMIN’s from showing up on your Google Analytics reports.
outbound_link_tracking: Disabling this option will turn off the tracking of outbound links. It’s recommended not to disable this option unless you’re a privacy advocate (now why would you be using Google Analytics in the first place?) or it’s causing some kind of weird issue.
google_external_path: This will be the path shown on Google Analytics regarding external links. Consider the following link:
The above link will be shown as:
This way you will be able to track outgoing links. Outbound link tracking must be enabled for external links to be tracked.
extensions: Enter any extensions of files you would like to be tracked as a download. For example to track all MP3s and PDFs enter mp3,pdf. Outbound link tracking must be enabled for downloads to be tracked.
tracking_domain_name: If you’re tracking multiple subdomains with the same Google Analytics profile, like what’s talked about here, enter your main domain here. For more info, please visit the previous link.
Download and Install
The easiest way to install is using EasyInstall:
sudo easy_install TracGoogleAnalytics
Or if you wish to install the current development version:
sudo easy_install http://devnull.ufsoft.org/svn/TracGoogleAnalytics/trunk
Bugs and/or New Features
Please submit bugs of new features to:
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for TracGoogleAnalytics-0.1.1.tar.gz
Hashes for TracGoogleAnalytics-0.1.1.tar.bz2
Hashes for TracGoogleAnalytics-0.1.1-py2.5.egg