mirror of
https://github.com/jazzband/django-analytical.git
synced 2026-04-25 09:14:45 +00:00
Modified utils.build_paq_cmd to remove the trailing comma and white space as well as add a semi colon to the end of the push command. Added context_providers directory with matomo.py file with a context provider that builds the tracking consent code and adds it to the context. Modified matomo.MatomoNode.render. Removed original ugly settings check code with simply rendering the 'consent_script' context variable and adding it to the html variable only if its length is greater than 1. NOTE: The context provider and rendering it (line 110 templatetags/matomo.py) are untested. Both utils.build_paq_cmd and utils.get_event_bind_js are tested but need need more rigorous testing to be sure it won't break. |
||
|---|---|---|
| .. | ||
| context_providers | ||
| templatetags | ||
| __init__.py | ||
| models.py | ||
| utils.py | ||