Regarding adding analytics code to a WordPress website, Naibabiji has previously shared multiple methods:
This article recommends a simpler method. If your website server is located overseas or in Hong Kong and can directly access Google's websites, then we can directly install the Site Kit by Google plugin.

In the Admin Dashboard, go to Plugins, Install Plugin, search for Google, and the first result is the one we need to install.

Then, in the setup wizard interface, check the option to also connect Google Analytics. Next, click the 'Sign in with Google' button and log in with your Google account.

There will be some permission prompts along the way; just allow all of them. Then, you will enter the wizard page for adding your website to Google; follow the prompts and click the Next button.

Then, for adding the Google Analytics code, if you haven't added it for other websites before, a new account will be created by default. If you have added it before, you can also choose to add a new website under your existing account.

Next, the Google account authorization interface will pop up again. Grant the permissions, and that's it. After adding the analytics code, data usually appears the next day.
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.