Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Trac plugin to enable your trac environment to be logged by Google Analytics
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.
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
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::
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.
Please submit bugs of new features to::
http://trac-hacks.org/wiki/GoogleAnalyticsIntegration
If you wish to be on the bleeding edge and get the latest available code:
::
FAQs
Trac plugin to enable your trac environment to be logged by Google Analytics
We found that TracGoogleAnalytics demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.