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

2. In the blank space of the Copyright column, click and select an HTML from the popped-up options.

3. Add the Google Analytics code there (other analytics codes can be added in the same way).

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

After adding the analytics code, you can see the statistical data soon, but usually the data becomes accurate only after the next day, so you can see the website's traffic data the next day. Additionally, Google officially recommends adding it to the <head> code, so you can choose Astra's Header Builder for that. To avoid potential issues with webpage loading for users, we habitually add it to the footer. Besides the method above, you can also use a Plugin to add the code, see:
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.