Skip to main content

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.

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:

http://devnull.ufsoft.org/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

TracGoogleAnalytics-0.1.2.zip (15.9 kB view details)

Uploaded Source

TracGoogleAnalytics-0.1.2.tar.gz (7.9 kB view details)

Uploaded Source

TracGoogleAnalytics-0.1.2.tar.bz2 (9.0 kB view details)

Uploaded Source

Built Distribution

TracGoogleAnalytics-0.1.2-py2.5.egg (15.9 kB view details)

Uploaded Source

File details

Details for the file TracGoogleAnalytics-0.1.2.zip.

File metadata

File hashes

Hashes for TracGoogleAnalytics-0.1.2.zip
Algorithm Hash digest
SHA256 717156a49db654630d08955041333b818c45c847d222faaf1eed018a7756a43a
MD5 93fbab446ba16d02f37a399a879d32a5
BLAKE2b-256 828c40f3a5853faf3a85c36cf32507bdadebfbb308a4ece9cc6e35892d4ece8e

See more details on using hashes here.

File details

Details for the file TracGoogleAnalytics-0.1.2.tar.gz.

File metadata

File hashes

Hashes for TracGoogleAnalytics-0.1.2.tar.gz
Algorithm Hash digest
SHA256 2078972927cdf8a2fd85b22dc4145102862b0f47d8eab4b0c153ca1e13275199
MD5 5734b8e569ea8f25db3f8927e7d6984a
BLAKE2b-256 49791f183f58f744bf33ea2cf9b7f29dcec8e73745126c34bddb069859c0ddde

See more details on using hashes here.

File details

Details for the file TracGoogleAnalytics-0.1.2.tar.bz2.

File metadata

File hashes

Hashes for TracGoogleAnalytics-0.1.2.tar.bz2
Algorithm Hash digest
SHA256 282771519328ea0b09fb979c5386645872ddae74017d9771570619c93f5ed0a1
MD5 fae9c71d991cdc737059301748c0a0f6
BLAKE2b-256 ab2849e47183849979ce1abbd790783d705dad370b00534bfb1203da8c2076ca

See more details on using hashes here.

File details

Details for the file TracGoogleAnalytics-0.1.2-py2.5.egg.

File metadata

File hashes

Hashes for TracGoogleAnalytics-0.1.2-py2.5.egg
Algorithm Hash digest
SHA256 f868be0bef2606438b2335cbe0246a464d17e453a68702f866da2f0753d520fa
MD5 df515917b878ea61b00f0ae08fa605fa
BLAKE2b-256 57907adf2bcad99d0365dc6fc5e56f8c4bb57a53d015c7356a1f179df3d746ff

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page