mirror of
https://github.com/jazzband/django-analytical.git
synced 2026-03-16 22:20:25 +00:00
Remove personal references and fix doc styling
This commit is contained in:
parent
c9434208b1
commit
69dd23c797
3 changed files with 5 additions and 6 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -3,8 +3,6 @@
|
|||
/.idea
|
||||
/.tox
|
||||
/.vscode
|
||||
/.envrc
|
||||
/playground
|
||||
|
||||
*.pyc
|
||||
*.pyo
|
||||
|
|
|
|||
|
|
@ -150,17 +150,19 @@ If you want to `disable cookies`_, set :data:`MATOMO_DISABLE_COOKIES` to
|
|||
.. _`disable cookies`: https://matomo.org/faq/general/faq_157/
|
||||
|
||||
Ask for consent
|
||||
-----------------
|
||||
---------------
|
||||
|
||||
If you do not want to track visitors without permission, you can `ask for consent`_ first.
|
||||
To enable this, set :data:`MATOMO_ASK_FOR_CONSENT` to :const:`True`. By default, no consent for tracking is needed (i.e. :const:`False`).
|
||||
To enable this, set :data:`MATOMO_ASK_FOR_CONSENT` to :const:`True`.
|
||||
By default, no consent for tracking is needed (i.e. :const:`False`).
|
||||
|
||||
To give and remove consent in your page, create DOM elements with the following classes:
|
||||
|
||||
`matomo_give_consent` - class name for element to click when visitors want to **give** consent
|
||||
`matomo_remove_consent` - class name for element to click when visitors want to **remove** consent
|
||||
|
||||
Examples:
|
||||
Examples::
|
||||
|
||||
# button to allow tracking
|
||||
<button class="matomo_give_consent">Track me!</button>
|
||||
|
||||
|
|
|
|||
|
|
@ -108,7 +108,6 @@ source = ["analytical"]
|
|||
[tool.pytest.ini_options]
|
||||
addopts = "--junitxml=tests/unittests-report.xml --color=yes --verbose"
|
||||
DJANGO_SETTINGS_MODULE = "tests.testproject.settings"
|
||||
norecursedirs = ["playground"]
|
||||
|
||||
[tool.ruff.format]
|
||||
quote-style = "single"
|
||||
|
|
|
|||
Loading…
Reference in a new issue