Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Sphinx extension googleanalytics

Project description

Note

Original PyPI for this extension is outdated. Publishing this to PyPI with changes from 2015-08-11 by Lev Levitsky.

author:Domen Kožar <domen@dev.si>

About

This extensions 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.

Project details


Release history Release notifications

This version
History Node

0.1

History Node

0.1dev-20161002

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
robpol86-sphinxcontrib-googleanalytics-0.1.tar.gz (3.0 kB) Copy SHA256 hash SHA256 Source None Oct 16, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page