Skip to main content

Sphinx extension googleanalytics

Project description

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


Download files

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

Source Distribution

File details

Details for the file robpol86-sphinxcontrib-googleanalytics-0.1dev-20161002.tar.gz.

File metadata

File hashes

Hashes for robpol86-sphinxcontrib-googleanalytics-0.1dev-20161002.tar.gz
Algorithm Hash digest
SHA256 a26b70e465afd28fded2629f90f604e72c3db83921ef387808dadef07ba56ece
MD5 e343795d6228bfbb5e1343d680fe71ad
BLAKE2b-256 e0042218f75b734e488e39eb233d2268801d9816e91009d46d2ffa2e384317b5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page