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)
| File | Size | Uploaded | |
|---|---|---|---|
| sphinxcontrib_googleanalytics-0.5.tar.gz | 4.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|