django-analytical/analytical
SilverStrings024 d1d1be189a Added conditional tracking consent for Matomo
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.
2021-07-13 00:35:26 -04:00
..
context_providers Added conditional tracking consent for Matomo 2021-07-13 00:35:26 -04:00
templatetags Added conditional tracking consent for Matomo 2021-07-13 00:35:26 -04:00
__init__.py Release v3.0.0 2020-12-06 23:14:25 +01:00
models.py Fix small code style issues based on pylint 2011-02-18 13:57:04 +01:00
utils.py Added conditional tracking consent for Matomo 2021-07-13 00:35:26 -04:00