Baidu Tongji Discourse Plugin
This is a Discourse plugin for integrating Baidu Tongji (Baidu Analytics) into your Discourse forum.
Features
- Integrate Baidu Tongji tracking code
- Support configuring Baidu Tongji Site ID through the admin interface
- On/off control
Installation
-
Clone the code to the plugins directory
/var/www/discourse/pluginsdocker exec -it discourse-web-1 bash cd /var/www/discourse/plugins git clone https://github.com/xuxiaowei-com-cn/discourse-baidu-tongji.git -
Restart the container
docker restart discourse-web-1
Notes
- Abnormalities may occur if software such as AdGuard is installed in the browser.
- Test with an incognito browser
- Add the domain to the whitelist
- Temporarily disable AdGuard and try again


