sphinxcontrib-googleanalytics 0.1

Sphinx extension googleanalytics

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
BSD License 
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Domen Kozar
HOMEPAGE:
bitbucket.org
CATEGORY:
ROOT \ Utilities
sphinxcontrib-googleanalytics is a Sphinx extensions that allows you to track generated HTML files with Google Analytics web service.

Installing from sphinx-contrib checkout

Checkout sphinx-contrib:

hg clone https://bitbucket.org/birkenfeld/sphinx-contrib/

Change into the googleanalytics directory:

cd sphinx-contrib/googleanalytics

Install the module:

python setup.py install

Enabling the extension in Sphinx

Just add sphinxcontrib.googleanalytics to the list of extensions in the conf.py file. For example:

extensions = ['sphinxcontrib.googleanalytics']

Configuration

For now one optional configuration is added to Sphinx. It can be set in conf.py file:

googleanalytics_id < string >:

 UA id for your site, example::
 googleanalytics_id = 'UA-123-123-123'

googleanalytics_enabled < bool >:
 True by default, use it to turn off tracking.

Last updated on June 7th, 2010

requirements

#Google Analytics #Sphinx extensions #HTML tracker #HTML #Google #Analytics #tracker

Add your review!

SUBMIT