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 アナリティクスでページ遷移時に統計情報を送信する方法の例です(これは組み込み機能で、管理設定で Google アナリティクスの認証情報を追加するとすぐに機能し始めます)。

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

また、Statcounter のスクリプトが、テーマコンポーネント または サイト設定 を通じて CSP(コンテンツセキュリティポリシー)で許可されていることを確認する必要があります。

「いいね!」 1