sphinxcontrib-gtagjs

Sphinx extension to render global site tag of Google.

4 个版本
attakei <attakei@gmail.com>
安装
pip install sphinxcontrib-gtagjs
poetry add sphinxcontrib-gtagjs
pipenv install sphinxcontrib-gtagjs
conda install sphinxcontrib-gtagjs
描述

sphinxcontrib-gtagjs

Sphinx extension to render global site tag of Google.

Installation

Install from PyPI

.. code-block:: bash

pip install sphinxcontrib-gtagjs

Configuration

1 - Add this extension into conf.py .

.. code-block:: python

extensions = [
    'sphinxcontrib.gtagjs',
]

2 - Set your IDs for gtag.js

.. code-block:: python

gtagjs_ids = [
    'UA-1234-1234',
]