Previously, I shared with everyone
the method to add Google Analytics code in the Astra Pro version. So, if you are using the free version
Astra Theme, how do you add the Google Analytics code? The method is also very simple. The specific steps are as follows: 1. Log in to the WordPress Admin Dashboard, select Theme - Astra Settings - Footer Settings. As shown in the image below:

2. In the blank space of the Copyright field, click and select HTML from the pop-up options.

3. Add the Google Analytics code there (other tracking codes can also be added this way).

If you don't have a Google Analytics code yet, then follow
this articleto apply for one, and then come back to add the code. After adding, you can go to the website Frontend, right-click, view the page source, and search for part of the data from the code you just added, such as 'Global site tag', to see if the code is successfully loaded.

After adding the tracking code, you can see the statistics very soon, but the data usually becomes accurate only the next day. So, you can see the website's traffic data the following day. Additionally, Google officially recommends adding it within the code. In that case, you can choose Astra's Header Builder. To avoid issues with users loading the webpage, we habitually add it to the footer. Besides the method above, you can also use a Plugin to add the code. Refer to:
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.