Skip to main content
Google Analytics Integration
============================

Previously known as ` (Trac) 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.

Download and Install
--------------------

The easiest way to install is using EasyInstall_:

::

sudo easy_install GoogleAnalyticsIntegration


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

::

[components]
googleanalytics.* = 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://trac-hacks.org/wiki/GoogleAnalyticsIntegration


Source Code
-----------

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

::

svn co http://trac-hacks.org/svn/GoogleAnalyticsIntegration

Release files for TracGoogleAnalytics 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for TracGoogleAnalytics 0.3.0
File Size Uploaded
TracGoogleAnalytics-0.3.0.tar.gz 10.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for TracGoogleAnalytics 0.3.0
File Interpreter ABI Platform
TracGoogleAnalytics-0.3.0-py2-none-any.whl Python 2 none any Details

Total release size: 22.6 kB

Release files / TracGoogleAnalytics-0.3.0.tar.gz

Download URL TracGoogleAnalytics-0.3.0.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d2fc6a0a63960062501eda5708d84b73e78ac5900e34a531731e23fad85c11d3
BLAKE2b-256 checksum
How to use checksums
a10fbbb627ef5aa3f832990a066507410aeb54008ee103e7f1a116e40e60327d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / TracGoogleAnalytics-0.3.0-py2-none-any.whl

Download URL TracGoogleAnalytics-0.3.0-py2-none-any.whl
Size 12.3 kB
Tags Python 2
SHA-256 checksum
How to use checksums
79e45ebb1536436b8e018bdef534298775761641a237268383564ece5798f7df
BLAKE2b-256 checksum
How to use checksums
ae966eee3f40ffc23610020bf4e314cc57983800d9eed6a666892a7f6f662381
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.4

4 release files

0.2.3

4 release files

0.2.2

4 release files

0.2.1

4 release files

0.2.0

4 release files

0.1.2

4 release files

0.1.1

4 release files

0.1.0

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page