如何在部署于 GCP 的 Discourse 实例中添加 Facebook Pixel 代码以进行分析?

I have installed Discourse in our server and we need to add facebook pixel code in our installations, any idea how to make it happen?

i saw there’s an inbuilt plugin for google analytics but not facebook analytics.

You should be able to add that code as a theme component. Probably stick it in the head section.

仅仅将其放入头部并不会遗漏虚拟页面浏览吧?我想每次触发虚拟页面浏览时,它都需要触发其页面浏览事件。