The method is also very simple. The specific operations are as follows:
1. Log in to the WordPress background and select Theme - Astra Settings - Footer Settings.As shown below:
2. In the blank space of the Copyright column, click the pop-up option to select an HTML.
3. Add the Google statistics code (this can be done for other statistics codes)
If you don't have a Google statistics code, followThis articleGo to apply for a Google statistics code, and then add the code later.
After adding, you can go to the website foreground, right click to view the website source code, and then search some data in the code just added, such as the Global site tag, to see whether the code is successfully loaded.
After the statistical code is added, you can see the statistical data very soon, but it usually takes the next day for the data to be accurate, so you can see the traffic data of the website the next day.
In addition, the official recommendation of Google is to add it to the<head>code, so you can choose Astra's header generator to avoid problems when users load the page. We are accustomed to adding it to the footer.
In addition to the above methods, you can also use plug-ins to add code. See:
With more than 10 years of experience in WordPress use and website operation management, we now provide: 1. website hosting services;2. Solve the problem of paid WordPress;3. Genuine Astra theme and plug-in authorization service.If you have questions, you can ask me on WeChat for free, but the blogger is not Lei Feng, so please don't take others' help for granted, thank you for understanding!