Trac plugin to enable your trac environment to be logged by Google Analytics
Project description
This plugin will enable your trac environment to be logged by Google Analytics.
It ads the necessary javascript code to log your environment, plus, it also logs the downloads of regular filenames which end with a specific extension; these extensions are defined by you; and also external links.
To enable the plugin add to the [components] section in your trac.ini:
[components] tracgoogleanalytics.* = enabled
Configuration
- The necessary configuration is:
UID: Google Analytics’ UID. The UID is needed for Google Analytics to log your website stats. Your UID can be found by looking in the JavaScript Google Analytics gives you to put on your page. Look for your UID in between the javascript:
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:
<a href="http://trac.edgewall.org/">Trac</a>
The above link will be shown as:
/external/trac.edgewall.org/
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for TracGoogleAnalytics-0.1.0.tar.bz2
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19e2cd14b63e02a733c003bbd53cc0d7fbb9fade04d469a6c14c2268b2a0305d |
|
MD5 | a3915fcf94d09da5836854f4611bcabe |
|
BLAKE2b-256 | 028241fd1e5d4d6476fa12273d431cd2b9c30d40d324fe56cde6511d899b321c |
Hashes for TracGoogleAnalytics-0.1.0-py2.5.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f4005d87c4890f964e3963ad46ca72f0e9b332850dd2388d6e64082ca841ba6 |
|
MD5 | c2f83aa4aa30e4d64ba6c6c85bcee5e4 |
|
BLAKE2b-256 | e5e841fbd1aba39945d4b81123ec11cab47310e15d4e4b2f1eb9cd6f3b1d2390 |