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

Uploaded Source

TracGoogleAnalytics-0.2.1.tar.gz (10.9 kB view details)

Uploaded Source

TracGoogleAnalytics-0.2.1.tar.bz2 (11.0 kB view details)

Uploaded Source

Built Distribution

TracGoogleAnalytics-0.2.1-py2.5.egg (18.4 kB view details)

Uploaded Source

File details

Details for the file TracGoogleAnalytics-0.2.1.zip.

File metadata

File hashes

Hashes for TracGoogleAnalytics-0.2.1.zip
Algorithm Hash digest
SHA256 26919cf49fd6af0fd984bde04964661c803de38587c8fbeaf5e61caee098d7cd
MD5 ac943db00f82da92dfbadb610504c130
BLAKE2b-256 dcbe236428964df3e169ae88590f2919d211e47e278861c043d907f57e3405e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for TracGoogleAnalytics-0.2.1.tar.gz
Algorithm Hash digest
SHA256 905969f9171788de4c00343073ac8f2aa2c2b99271d232e667c13107326c8287
MD5 5d7feee1e9c9cecf024e9f19217d3b0f
BLAKE2b-256 518310edecb32f4d0da596201c85b5cd2e59aba6f9a4d355758a110acb7ab049

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for TracGoogleAnalytics-0.2.1.tar.bz2
Algorithm Hash digest
SHA256 1a96ea9c012ff044eb02309d77bac507f2b9df9a5b6d493dcefc2f379b7333fd
MD5 5c0e7a976f06a131d216e88ae9b5b4b3
BLAKE2b-256 d77856c86581e64ac8283d9c09c986022508e6bdd08d4ead9e0cb213d9fbbc75

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for TracGoogleAnalytics-0.2.1-py2.5.egg
Algorithm Hash digest
SHA256 54230d4abbeceb4886deeb5e4e277610ec0dc80aaa6e959e47e8cd8e331aac50
MD5 7b1f8c9b721ee92b119c28c1a1d6afef
BLAKE2b-256 9106fe2d2f3f03ebd299eb6cec7eebda9197cb0fc0266d36f84bbee07811eeb7

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