🚀 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 and ICP Filing Number to Website Footer

When wehave built the website, in order to track daily website traffic and visitor numbers, it is necessary to install a webmaster analytics code. For novice users, they might not knowhow to install this webmaster analytics code. This article shares several plugins for adding analytics code or other codes. It also introduces the method ofadding the ICP filing number to the website footerinformation.

Plugin for inserting code into website header and footer

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

AddFunc Head & Footer Code

AddFunc Head & Footer CodeAllows administrators to add code in the section or footer of individual posts or the entire site. Very suitable for scripts (such as Google Analytics conversion tracking code and any other general 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 post.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 header or footer code separately for pages or the entire site. It can set different codes for desktop and mobile devices. It can also add code to the functions file, with 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 homepage, entire site, pages, tags, categories, or via shortcode. It can also specify on which devices to display.Download LinkAnother method suitable for quickly adding code to websites on foreign servers:Quickly submit your WordPress website to Google and add Google Analytics code

Manually add website analytics code

Manually adding analytics code can be done in two situations. First,if your Theme settings have a default place for adding analytics code, simply add the code there. The other situation is if the Theme does not have an option to add code, then you have to add it manually. The method is as follows:
  1. Website backend, Appearance, Theme Editor
  2. Find the Theme footer (footer.php) file (you can also download and modify it using FTP software)
  3. Insert the code at an appropriate position (usually on the line before <\/body>)
网站添加统计代码

Add website filing number (ICP)

Websites in China need to be filed (ICP), and after filing is completed, the filing information needs to be added to the website footer. Similarly, if your Theme has a place to fill in the website filing number, just add it there.你的备案号If your website Theme does not support directly filling in filing information, you can only manually edit the Theme footer (footer.php) file to modify it.
  1. Website backend, Appearance, Theme Editor
  2. Find the Theme footer (footer.php) file (you can also download and modify it using FTP software)
  3. Insert the code at an appropriate position (position requires experience to judge)
插入备案号代码Different themes have different code. If your theme includes footer code, you can generally insert the code in an appropriate location before .

How to add ICP filing number in Relativity Theme

A website owner was using the free WordPress theme 'Relativity' and didn't know how to add the ICP filing code. This 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 just need to edit the theme's footer.php file, then search for wordpress.org and add the ICP filing code at the end of that line, as shown in the image above. The ICP filing number code is as follows:你的备案号

Where to apply for webmaster analytics code

Common website analytics tools for webmasters 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 (Baidu Analytics)(Recommended for domestic users)
  2. Google Analytics(Recommended for international websites)
  3. 51.la Analytics (Naiba hasn't used this)

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

「Naibabiji WordPress Website Building Coaching」 — From selecting a domain and purchasing hosting to installing themes and publishing posts, I「ll guide you through every step, helping you avoid detours and reach your goals directly.

👉 Learn about 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 to Follow