Baidu Statistics Plugin Configuration

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/plugins

    docker 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.
    1. Test with an incognito browser
    2. Add the domain to the whitelist
    3. Temporarily disable AdGuard and try again