🚀 Is building a website too difficult? Let me guide you step by step—Learn about the 「Naibabiji WordPress Website Building Coaching Service」 →

Plugins and Methods for Adding Webmaster Statistics Code/ICP Filing Number to the Website Footer

When weBuild the websiteAfter building the website, to track daily website traffic and the number of visitors, it is necessary to install a webmaster tracking code. For novice users, they might not know how tohow to install a webmaster tracking code, this article shares several plugins for adding tracking codes or other codes. It also introduces how toAdd ICP filing number to website footermethods for information.

Plugins for inserting code into website header and footer

WordPress PluginVery powerful, you can use any of the following three to quickly and conveniently insert tracking codes and other codes you want to add into the website header or footer.

AddFunc Head & Footer Code

AddFunc Head & Footer CodeAllows administrators to add code in the <head> section or footer of individual posts or the entire site. Perfect for scripts (such as Google Analytics conversion tracking code and any other regular or page-specific JavaScript). A very simple, reliable, and lightweight plugin. To add to a specific post, fill in the corresponding widget when publishing the article.Download Link

Head, Footer and Post Injections

Head, Footer and Post InjectionsHead, Footer and Post Injections has more features, but it might be more complex for beginners. It can add code to the header or footer for individual pages or the entire site. It can set different codes for desktop and mobile devices. It can also add code to the functions file, offering many features.Download Link

Header Footer Code Manager

Header Footer Code ManagerHeader Footer Code Manager has options when adding code in the backend. You can choose where to display it, such as the homepage, entire site, pages, tags, categories, or via shortcodes. You can also choose on which devices to display it.Download LinkAnother method suitable for quickly adding to websites on foreign servers:Quickly Submit Your WordPress Website to Google and Add Google Analytics Code

Manually add website tracking code

Manually adding tracking codes is divided into two situations. The first isIf your theme settings include a default option for adding tracking codes, simply add the tracking code there. Another scenario is if the theme lacks an option for adding code, then you must add it manually. The method is as follows:
  1. Website backend, Appearance, Edit Theme
  2. Find the theme footer (footer.php) file (you can also download and modify it using FTP software)
  3. Insert the code at the appropriate position (usually on the line before </body>)
网站添加统计代码

Add filing number to website

Websites in China require ICP filing, and after completing the filing, the filing information needs to be added to the website footer. Similarly, if your theme has a field for entering the website ICP filing number, simply add it there.<a href="http://www.beian.miit.gov.cn">你的备案号</a>If your website theme does not support directly filling in filing information, you can only manually edit the theme footer (footer.php) file to make changes.
  1. Website backend, Appearance, Edit Theme
  2. Find the theme footer (footer.php) file (you can also download and modify it using FTP software)
  3. Insert code at an appropriate position (position requires experience to judge)
插入备案号代码Different themes have different code. If your theme includes footer code, generally insert the code at an appropriate position before <\/footer>.

Method to add ICP filing number in Relativity theme

A webmaster is using the free WP theme Relativity and doesn't know how to add the ICP filing code. Here, it serves as a case study to teach everyone how to add the ICP filing code.网站添加备案号This type of theme is very easy to modify. You only need to edit the theme's footer.php file, then search for wordpress.org and add the filing code at the end of that line, as shown in the image above. The filing number code is as follows:<a href="http://www.beian.miit.gov.cn">你的备案号</a>

Where to apply for webmaster tracking code

Common webmaster tracking tools include the following. You can register an account yourself, add your website, obtain the tracking code, and add it to your website.
  1. Baidu Tongji(Recommended for domestic users)
  2. Google analytics(Recommended Foreign Websites)
  3. 51.la statistics (Naiba hasn't used it)

🚀 Still feeling confused after reading the tutorial? Let me guide you step-by-step.

「Naibabiji WordPress Website Building Coaching Service」—From choosing a domain and buying hosting, to installing a Theme and publishing content, I「ll coach you through every step, helping you avoid detours and reach your goal directly.

👉 Learn about the Website Building Coaching Service
🔒

Comments are closed

The comment function for this article is closed. If you have any questions, please feel free to contact us through other channels.

×
二维码

Scan QR Code to Follow

AI Website Building Assistant

🤖
Hello! I am the Naibabiji AI Assistant. How can I help you?
Quick Consultation: