Skip to main content
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.

Release files for sphinxcontrib-googleanalytics 0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sphinxcontrib-googleanalytics 0.5
File Size Uploaded
sphinxcontrib_googleanalytics-0.5.tar.gz 4.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sphinxcontrib-googleanalytics 0.5
File Interpreter ABI Platform
sphinxcontrib_googleanalytics-0.5-py3-none-any.whl Python 3 none any Details

Total release size: 8.9 kB

Release files / sphinxcontrib_googleanalytics-0.5.tar.gz

Download URL sphinxcontrib_googleanalytics-0.5.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a2ac6df9d16b9c124febf6b44e714c1fd9725e692b73ee84ec6b52b377ff5561
BLAKE2b-256 checksum
How to use checksums
b578ad9a210c24499ccfd97f0eccc902576b587af82ae2dc27021e0662929940
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release files / sphinxcontrib_googleanalytics-0.5-py3-none-any.whl

Download URL sphinxcontrib_googleanalytics-0.5-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
437e529c33c441bcccceabe3ead1585115e6ba83fe90e23bd42e42521333cc0a
BLAKE2b-256 checksum
How to use checksums
6bc7e68a33ba7b8a4a697c8ad278a37d7bc8521c4175b0f9248fec80ae6fed4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release history Release notifications | RSS feed

This release

0.5 This release

2 release files

0.4

2 release files

0.3

2 release files

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page