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

In the Admin Dashboard, go to Plugins, Install Plugin, search for 'Google'. The first result that appears 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 site to Google. Follow the prompts and click the 'Next' button.

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

Next, the Google account authorization interface will pop up again. Grant the permissions, and you're done. After adding the analytics code, data typically becomes visible 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.