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

sphinxcontrib-googleanalytics-0.1.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file sphinxcontrib-googleanalytics-0.1.tar.gz.

File metadata

File hashes

Hashes for sphinxcontrib-googleanalytics-0.1.tar.gz
Algorithm Hash digest
SHA256 92b7d74a45defb01e7d29e86fd8206eba42c896b2272cbd1b4b4f6a7d178d5a8
MD5 f9da59a753b8a045945c5e35ed1e2481
BLAKE2b-256 487e1b383d54276a743ee195f6f97a2a77054fa1f976913923e1e64fe500d975

See more details on using hashes here.

Supported by

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