
当After building your own websiteand updating articles daily, you must also want to knowhow many people have visited your websitenow.
Viewhow many IPs visit the website dailyis called atracking code。
What is a tracking code?
tracking codeis a piece of code added to the website that can track your website's daily visits, IP count, visitor geographic location, and other information, also known as webmaster statistics.
Statistics code is also calledwebsite statisticsAnalyzing website statistics daily helps us understand the visitor situation of the site, allowing for targetedSEO Optimization。
What are the available tracking codes?
Tracking codes were very popular before. Now, the top ones in terms of usage are: Baidu Tongji, Google Analytics, 51la, CNZZ.
Baidu Tongji
Baidu Tongji is a statistical system launched by Baidu, and its website ishttps://tongji.baidu.com/
在How to get a website indexed by BaiduThat article mentioned that using Baidu Tongji may increase the chances of Baidu indexing your website.
Google Analytics
As the name suggests, this statistics system is launched by Google. It can also be used by domestic websites, but the registration address cannot be accessed normally, so you need to prepare a VPN.
The URL for Google Analytics is:https://www.google.com/analytics/web/?hl=zh-CN
The functionality and stability of Google Analytics are slightly higher than Baidu Tongji, just like search. Adding Google Analytics to a domestic website will not affect the website loading speed (it used to in previous years, but now it has all been switched to domestic servers).
51la
Naiba used 51la many years ago, and the experience was okay. It's unclear how it is now. The website ishttps://www.51.la/
51la used to provide many useful webmaster tools, but they are no longer maintained. The mobile internet has hit the ordinary website industry too hard.
CNZZ (Youmeng+ U-Web)
It used to be called CNZZ, now renamed to Umeng. Naiba also used it before. The current website ishttps://web.umeng.com/
CNZZ and 51la lost a significant market share after Baidu Tongji emerged, and the statistical data from these companies have certain discrepancies, possibly due to different statistical algorithms.
How to use a tracking code?
WeBy adding statistical code to the website, you can view how many people visit the site daily and how many IPs there are., so how do youapply for this statistical code, and after applying, how do you add it to the website?
Statistical Code Application:
Choose any one of the four statistical systems introduced above that you feel comfortable with, register an account, add your website after registration, fill in the URL of the website you want to track, and after verification, you will obtain a piece of statistical code.
Statistical Code Addition:
The method to add statistical code is simple: directly copy the statistical code, go to the WordPress admin dashboard, Appearance > Theme Editor > Theme Footer (footer.php), then at the very bottom of the code, above the</body>Paste it on the line above, then save the file.
If you are afraid of modifying the code incorrectly, you can use a plugin to help.Here are a few plugins:。
Too troublesome? Then install a WP plugin
If you think it's troublesome to apply for a statistics code and verify the website, and you don't know how, is there a simple and direct way to track website traffic and see how many people visit?
Of course, it is possible. Below I will introduceWP Statistics Plugins。
WP Statistics
WP Statistics is the most popular statistics plugin on the WordPress platform,Naibabijihas also been used for a long time.
Like the third-party statistics code shared above, it can track the number of users visiting the website, IP count, referral sites, browsers, search engines, operating systems, countries, and cities.
It supports statistical data chart analysis, and can also track user visit time, online users, entry pages, exit pages, etc.
The only problem is that the results from WP Statistics will be higher than otherwebmaster statistical codes, not very precise, but it's fine for self-satisfaction.
Real Time Visitor Statistics & Analytics
This WP statistics plugin is more streamlined compared to WP Statistics, and it also has a professional version.
Free version features include:
- Real-time statistics
- Visitors, interactive map with visitor locations.
- Comprehensive overview page and user-friendly interface
- GeoIP location (by country and city)
- Search engine queries from popular search engines (e.g., Google, Bing, DuckDuckGo, Yahoo, Yandex, and Baidu)
- Supports hashing IP addresses in the database to protect user privacy.
- Database that automatically deletes old data
- Automatic GeoIP database updates.
- Fully compliant with European GDPR guidelines.
If you just want simple statisticsdaily website IP visits, then Real Time Visitor Statistics & Analytics is a good choice.
Slimstat Analytics
Slimstat Analytics has similar functionality to WP Statistics, a free statistics plugin with paid add-ons.
The features are largely the same, so I won't go into detail. The download link is as follows:
Notes on installing statistics plugins
Although directlyinstalling WP pluginsIt's relatively simple and can also achieve the effect of tracking website traffic data. However, Naiba would like to remind you that installing a statistics plugin consumes more server resources compared to installing tracking code.
Over time, the database size may become quite large and needs to be cleaned regularly. Additionally, on some low-quality servers, installing a statistics plugin may noticeably slow down the website.

