diff --git a/analytical/templatetags/matomo.py b/analytical/templatetags/matomo.py index 00dd88d..977cb91 100644 --- a/analytical/templatetags/matomo.py +++ b/analytical/templatetags/matomo.py @@ -43,8 +43,8 @@ VARIABLE_CODE = '_paq.push(["setCustomVariable", %(index)s, "%(name)s", "%(value IDENTITY_CODE = '_paq.push(["setUserId", "%(userid)s"]);' DISABLE_COOKIES_CODE = "_paq.push(['disableCookies']);" -GIVE_CONSENT_CLASS = "piwik_give_consent" -REMOVE_CONSENT_CLASS = "piwik_remove_consent" +GIVE_CONSENT_CLASS = "matomo_give_consent" +REMOVE_CONSENT_CLASS = "matomo_remove_consent" ASK_FOR_CONSENT_CODE = """ _paq.push(['requireConsent']); diff --git a/analytical/tests/test_tag_matomo.py b/analytical/tests/test_tag_matomo.py index 01e6cb2..3ebb47c 100644 --- a/analytical/tests/test_tag_matomo.py +++ b/analytical/tests/test_tag_matomo.py @@ -151,7 +151,7 @@ class MatomoTagTestCase(TagTestCase): r = MatomoNode().render(Context({})) self.assertTrue("_paq.push(['disableCookies']);" in r, r) - @override_settings(PIWIK_ASK_FOR_CONSENT=True) + @override_settings(MATOMO_ASK_FOR_CONSENT=True) def test_ask_for_consent(self): - r = PiwikNode().render(Context({})) + r = MatomoNode().render(Context({})) self.assertTrue("_paq.push(['requireConsent']);" in r, r) \ No newline at end of file diff --git a/docs/services/matomo.rst b/docs/services/matomo.rst index 8527795..77b742a 100644 --- a/docs/services/matomo.rst +++ b/docs/services/matomo.rst @@ -157,15 +157,15 @@ To enable this, set :data:`MATOMO_ASK_FOR_CONSENT` to :const:`True`. By default, To give and remove consent in your page, create DOM elements with the following classes: -`piwik_give_consent` - class name for element to click when visitors want to **give** consent -`piwik_remove_consent` - class name for element to click when visitors want to **remove** consent +`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: # button to allow tracking - + # button to remove tracking consent - + .. _`asking for consent`: https://developer.matomo.org/guides/tracking-javascript-guide#asking-for-consent