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 googleanalytics sphinx extension:

$ git clone https://github.com/sphinx-contrib/googleanalytics

Change into the googleanalytics directory:

$ cd 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.5.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

sphinxcontrib_googleanalytics-0.5-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file sphinxcontrib_googleanalytics-0.5.tar.gz.

File metadata

File hashes

Hashes for sphinxcontrib_googleanalytics-0.5.tar.gz
Algorithm Hash digest
SHA256 a2ac6df9d16b9c124febf6b44e714c1fd9725e692b73ee84ec6b52b377ff5561
MD5 d71818824f70d6484136d2c9064ad9bc
BLAKE2b-256 b578ad9a210c24499ccfd97f0eccc902576b587af82ae2dc27021e0662929940

See more details on using hashes here.

File details

Details for the file sphinxcontrib_googleanalytics-0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinxcontrib_googleanalytics-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 437e529c33c441bcccceabe3ead1585115e6ba83fe90e23bd42e42521333cc0a
MD5 d9061298398d1cd9fbd4c262b74ab31e
BLAKE2b-256 6bc7e68a33ba7b8a4a697c8ad278a37d7bc8521c4175b0f9248fec80ae6fed4f

See more details on using hashes here.

Supported by

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