Sphinx extension for googleanalytics and baiduanalytics
Project description
Sphinxcontrib-Analytics-Hub
About
Sphinx extension for googleanalytics and baidu analytics .
Based on sphinx-contrib/googleanalytics and add baidu analytics .
Install
with pip
:
pip install sphinxcontrib-analytics-hub
Using
Just add sphinxcontrib_analytics_hub
to the list of extension in the conf.py
file .
For example:
extensions = [
...,
'sphinxcontrib_analytics_hub',
]
Config items:
config name | value | value type | default | description |
---|---|---|---|---|
analytics_enabled | True or False |
bool | True |
set True to enable analytics, False to ruff off |
analytics_with | google or baidu |
str | '' |
analytics name |
analytics_id | analytics id | str | `` | the analytics id google or baidu |
For example of analytics with google :
# conf.py
...
analytics_with = 'google'
analytics_id = 'xxxxxxxxxxxxx'
For example of analytics with baidu :
# conf.py
...
analytics_with = 'baidu'
analytics_id = 'xxxxxxxxxxxxx'
Supported platforms
Now:
More analytics platforms will be added in the future.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file sphinxcontrib_analytics_hub-0.0.3.tar.gz
.
File metadata
- Download URL: sphinxcontrib_analytics_hub-0.0.3.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.18.1 CPython/3.10.12 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af3ee0a5d0ae391a1017c1e5a720e0d46f1dc587f99a4487e948e255b9bd39ce |
|
MD5 | 7b635fef20bc61045be70d1e555ec689 |
|
BLAKE2b-256 | 440ed7ea38703edf841695cc1db8afd82d26574c86f170b81c55229d200ae1ee |
File details
Details for the file sphinxcontrib_analytics_hub-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: sphinxcontrib_analytics_hub-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.18.1 CPython/3.10.12 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c13a957deaafdf5f618cb2ce38f1c685afc50415c62d42cfa04da1e95fcf7983 |
|
MD5 | 41ffd80e329ab4a95b53c1b39e0b854c |
|
BLAKE2b-256 | 4f8a11922ed647c84a42aac370892e16b72f5b3dd022ecf6818d2809a7565a48 |