This release is a pre-release and may not be stable for production use.
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.
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
- Download URL: sphinxcontrib-googleanalytics_workaround-0.2.dev20231020.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.2 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5563e84d6427680533943145ec1bb337b310bdbc5a8dd3c3f1ce29f6551e7c9a
|
|
| MD5 |
3f0404562618046b722317420b2a6e0f
|
|
| BLAKE2b-256 |
628f6cde55b024ac40d8300d0bb921152766889f01baabd32e25adb893a64703
|