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.

  • 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/ TracGoogleAds

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.0.zip (13.5 kB view details)

Uploaded Source

TracGoogleAnalytics-0.2.0.tar.gz (6.1 kB view details)

Uploaded Source

TracGoogleAnalytics-0.2.0.tar.bz2 (6.5 kB view details)

Uploaded Source

Built Distribution

TracGoogleAnalytics-0.2.0-py2.5.egg (17.9 kB view details)

Uploaded Source

File details

Details for the file TracGoogleAnalytics-0.2.0.zip.

File metadata

File hashes

Hashes for TracGoogleAnalytics-0.2.0.zip
Algorithm Hash digest
SHA256 46f64d961e85f4a46bd6bf96a557060e35440f1f50cb7baacac849c50adc784d
MD5 2f199daa144a2e3401682dc370903ddf
BLAKE2b-256 467710fcb06dbdc7b92d3b9d93fea9a3f18b277c1bec25165b09b1c5fbf145d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for TracGoogleAnalytics-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9155857af0f2c61cacff2744b384e7ba6e28225c5aedce9486975d670433afa1
MD5 888c84e7ed65b04ea003aa5e87279320
BLAKE2b-256 81d57ad529f54fffc38937ae62c11a1d34786519ef78ee15930e65c84a7705c8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for TracGoogleAnalytics-0.2.0.tar.bz2
Algorithm Hash digest
SHA256 1c6143f73b4a885960d5713bdb2c0f33d6405d880dfda882c2fa3d0d4ffa9b6d
MD5 021d6a8f2820de487845a169adc321fc
BLAKE2b-256 5a5fccad17ac74bc2e3fc4a8e081c0c99e678927451c4f1ed2c9d24b6641ab43

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for TracGoogleAnalytics-0.2.0-py2.5.egg
Algorithm Hash digest
SHA256 e768e131b3380890770e7cffb598ffa11641a0df05d3ab68e23e484d4e2becf1
MD5 f4001d802b89f7d0648ee8a27a7120b3
BLAKE2b-256 4622cc2dfa761cc9489dbb316edd191c9bbf20560a507b09f3509641e88320e1

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