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

File details

Details for the file sphinxcontrib-googleanalytics_workaround-0.2.dev20231020.tar.gz.

File metadata

File hashes

Hashes for sphinxcontrib-googleanalytics_workaround-0.2.dev20231020.tar.gz
Algorithm Hash digest
SHA256 5563e84d6427680533943145ec1bb337b310bdbc5a8dd3c3f1ce29f6551e7c9a
MD5 3f0404562618046b722317420b2a6e0f
BLAKE2b-256 628f6cde55b024ac40d8300d0bb921152766889f01baabd32e25adb893a64703

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