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.1.zip (15.8 kB view details)

Uploaded Source

TracGoogleAnalytics-0.1.1.tar.gz (7.8 kB view details)

Uploaded Source

TracGoogleAnalytics-0.1.1.tar.bz2 (8.9 kB view details)

Uploaded Source

Built Distribution

TracGoogleAnalytics-0.1.1-py2.5.egg (15.7 kB view details)

Uploaded Source

File details

Details for the file TracGoogleAnalytics-0.1.1.zip.

File metadata

File hashes

Hashes for TracGoogleAnalytics-0.1.1.zip
Algorithm Hash digest
SHA256 600e6a6a25b43161777094572cb486d709ee4ca5cc38a425485d3d68041416a6
MD5 a5b51c7318b28824e540c5bca3591443
BLAKE2b-256 60612959c867f9cae7a0fa275808e7ab80a7b06386acf59c2bd6439b9039ae91

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for TracGoogleAnalytics-0.1.1.tar.gz
Algorithm Hash digest
SHA256 136f2312862f98d7e6f704d25ecc2e33d162fd85bfec913c9ebcfd627125ccde
MD5 01a9df3e8c43ea502b8efff0ad661def
BLAKE2b-256 c6783d4984ba7c9114b289cace6d64e411a11cbb5431842392d33c435f4f98cc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for TracGoogleAnalytics-0.1.1.tar.bz2
Algorithm Hash digest
SHA256 172a59333af5ee990966988feaad463e584221d7a3c9cc5dbb54639639fa8d59
MD5 8c895d1ec30cbc5b427e64ccf4e582bf
BLAKE2b-256 3324cf602c995cc59988dad4e7af5c6e0e7cd9de440a54fed0120c0eba7385a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for TracGoogleAnalytics-0.1.1-py2.5.egg
Algorithm Hash digest
SHA256 faffce21e78e16f35a4772302e0bb03754c9e87374fef2a46d80ea4af763eb6a
MD5 a188e5ccd0178859176974411c20f6bf
BLAKE2b-256 4fe0250c7e4c01aa750f15568dd38fb6595723095df1cf0a5997023977e296ba

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