Skip to main content

Trac plugin to enable your trac environment to be logged by Google Analytics

Project description

Previously known as Google Analytics Plugin, 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.

Plugin has been renamed and package hierarchy has changed to join other trac plugins that addressed Google services.

Download and Install

The easiest way to install is using EasyInstall:

sudo easy_install TracGoogleAnalytics

Then, to enable the plugin add to the [components] section in your trac.ini:

[components]
tracext.google.analytics.* = 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.

  • authenticated_logging: Disabling this option will prevent all authenticated users 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.

Bugs and/or New Features

Please submit bugs of new features to:

http://google.ufsoft.org/

Source Code

If you wish to be on the bleeding edge and get the latest available code:

hg clone http://google.ufsoft.org/hg/analytics/ TracGoogleAnalytics

Note: For up-to-date documentation please visit TracGoogleAnalytics’s site.

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.2.3.zip (21.0 kB view details)

Uploaded Source

TracGoogleAnalytics-0.2.3.tar.gz (11.3 kB view details)

Uploaded Source

TracGoogleAnalytics-0.2.3.tar.bz2 (11.3 kB view details)

Uploaded Source

Built Distribution

TracGoogleAnalytics-0.2.3-py2.6.egg (18.5 kB view details)

Uploaded Source

File details

Details for the file TracGoogleAnalytics-0.2.3.zip.

File metadata

File hashes

Hashes for TracGoogleAnalytics-0.2.3.zip
Algorithm Hash digest
SHA256 cbc824a8f274b27657c59e5fc507e2a3b51e5d5f63740adf529e3e3067a88ef2
MD5 409b5bc57acbf67baef24ebc6d378022
BLAKE2b-256 ce2ea7aec64a7aba456c1956599f44630063bcc2fd06a9747dd38ce4b2365ddd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for TracGoogleAnalytics-0.2.3.tar.gz
Algorithm Hash digest
SHA256 f6fbc56427b613f95a5366e2a2b17e8979073defe6a4cd5cbce15b0c351859b2
MD5 667dd39b2c6b3c4c4c787418b6d27629
BLAKE2b-256 24d6f86070a9d397ff775e91e30bb4c860c6639a2173c54b8e0546e6b76cd92f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for TracGoogleAnalytics-0.2.3.tar.bz2
Algorithm Hash digest
SHA256 7f988d5c7bab7d3b70f7f1e4cf1e53f43883b6fcffe94a8eaf88b08772d0323d
MD5 5cf93e9cd9b997e23fa9f054a93af72b
BLAKE2b-256 193d4ad131e4290a0c4eae9bc8fe440335b15b899ebe69fff6453fd88e151f15

See more details on using hashes here.

File details

Details for the file TracGoogleAnalytics-0.2.3-py2.6.egg.

File metadata

File hashes

Hashes for TracGoogleAnalytics-0.2.3-py2.6.egg
Algorithm Hash digest
SHA256 f1402303d01d14cf8ce08b52c469c6447d2ceb27e2f5f5cc010c2d1a4a4b691f
MD5 a39d363297a0687939e63c228b593a35
BLAKE2b-256 720b9a778134d5d5dff34c211ff0fc87fd6218ae685d5bfce1d872a7a3021b5d

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