إضافة كود Statcounter

I added my statcounter code but it appears to not work. Anyone know how to solve this?

No. No one can possibly help answer that question.

If you world like to answer a question that has an answer it should include the following: What did you do? What code did you add. Where did you add it? What happens when you try to run it? What do you do to try to run it? What did you expect to happen?

6 إعجابات

Let me rephrase: Has anyone got statcounter code working and tracking visitors on their discourse community?

Discourse comes out of the box with a dashboard and reports for various statistics. I believe many also have Google stats.

I see that. But not what I am looking for.

ما زلت أحاول جعل هذا يعمل.

هذا هو الكود:

هل يعرف أحد كيف يمكنني إضافته؟

تضيف هذا الكود في قسم </head> لمكون السمة. يمكنك قراءة المزيد عن ذلك هنا.

تطبيق Discourse هو تطبيق صفحة واحدة. لذا، قد يختلف التنفيذ عن الوثائق التي قدمها Statcounter. يجب أن يأخذ تنفيذك ذلك في الاعتبار؛ وإلا، فستحصل فقط على إحصائيات لعرض الصفحة الأولية.

إليك مثال على كيفية إرسالنا لإحصائيات أثناء انتقالات الصفحات لـ Google Analytics (هذا مدمج، ولا يبدأ العمل إلا بعد إضافة بيانات اعتماد Google Analytics الخاصة بك في إعدادات المسؤول).

https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/app/initializers/page-tracking.js#L29-L37

ستحتاج أيضًا إلى التأكد من أن السكربتات من Statcounter مسموح بها عبر (CSP) إما عبر مكون السمة الخاص بك أو في إعدادات الموقع الخاصة بك.

إعجاب واحد (1)