In order to comply with the European laws, users must have the possibility to reject piwik’s cookie. Piwik offers a really simple solution for this, by including an IFrame.
Unfortunately, Discourse doesn’t allow iframe tags in posts…
Does anyone see a way to include this piwik iframe in Discourse TOS ?
Thanks.
So I have the JS loaded into the theme customizations, and the external “theme JavaScript file”* is linked in my test browser, just under where I inserted it like in the screenshot in a few posts earlier … BUT the requests aren’t coming through to the Matomo tracking web server.
(Tracking works fine for other non-Discourse sites, FWIW.)
Has anyone else seen that happen?
* e.g. https://discourse-cdn.example.com/standard11/theme-javascripts/{numeric_string}.js?__ws=my-discourse-forum.example.org
I’m confused why the tracking code is sending a custom variable called Anonymous. Isn’t that custom for your particular Matomo setup? It doesn’t seem like it should be there for everyone.
يجب عليك إضافة عنوان URL الخاص بـ Matomo إلى القائمة البيضاء ضمن رأس سياسة أمان المحتوى (Content-Security-Policy). ابحث عن إعداد المسؤول content_security_policy_script_src وأضف نطاقك (مع https://) هناك.
أواجه صعوبة في جعل هذا يعمل على التثبيت الخاص بي. لقد قمت بتثبيت المكون وإضافته إلى سميّتي، لكن Matomo يقول إنه لا توجد بيانات للموقع. أعتقد أن الإعدادات صحيحة:
تعديل: كشفت المزيد من التحقيقات أن الخطأ في وحدة تحكم JavaScript يظهر فقط في Firefox، وليس في Chrome (مع أحدث إصدارات كل منهما على جهاز Mac). وأرى الآن بعض النتائج في Matomo، رغم أن Firefox غائب بشكل لافت؛ فجميع الزوار باستثناء واحد يستخدمون Chrome، بينما المستخدم الوحيد الذي لا يستخدم Chrome يستخدم Safari.
إلى أنه قد يكون بسبب إعدادات “عدم التتبع” في متصفح فايرفوكس، ولكن حتى عندما أقوم بتعطيلها لموقعي، أواجه نفس الخطأ في وحدة تحكم الويب باستخدام فايرفوكس. ولا يبدو أن فايرفوكس يعتبر هذا الموقع أداة تتبع في أي حال: