1. Register and log on to Baidu statistics, click "website Center" at the top of the page, click "+ Add Website" in the upper right corner, enter the website domain name, and click "Copy code ";
2. log on to the WordPress background, click "edit" in "appearance" on the left navigation bar, and click "bottom" under "template" on the right (footer. PHP), paste the access analysis code copied in step 1 to "", and click "Update file ";
3. Return to the "website center" of Baidu statistics and click the refresh icon under "homepage code status, if the text on the left side of the icon changes from "no code detected" to "correct code installation", it means you can do it.
Original article, reprinted Please note:Reposted from http://www.mr-wu.cn/Wu chuanbin's blog
Link:How to install Baidu Statistical Code http://www.mr-wu.cn/wordpress-baidu-tongji/ for WordPress
How to install Baidu statistics code for WordPress