Home Astra Theme Tutorial Standard Post

Standard Post

How to Add Google Analytics Code to a Foreign Trade Website Built with the Free Version of Astra

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

Updated on July 22, 2022 About 2 minutes read
使用免费版Astra搭建的外贸网站怎么添加Google统计代码

Previously, I sharedthe method for adding Google Analytics code in Astra Pro, so if you are using the free version ofAstra Theme, how to add Google Analytics code?

The method is also very simple. The specific steps are as follows:

1. Log in to the WordPress backend, select Theme - Astra Settings - Footer Settings. As shown below:

astra添加统计代码

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

astra添加统计代码

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

astra添加统计代码

If you don't have a Google Analytics code yet, then followthis articleGo apply for a Google Analytics code, then add the code back.

After adding, you can go to the website frontend, right-click, view the website source code, then search for part of the data in the added code, such as Global site tag, to see if the code is loaded successfully.

astra添加统计代码

After adding the tracking code, you can see the statistics soon, but usually the data is accurate only after the next day, so you can see the website traffic data the next day.

Additionally, Google officially recommends adding it to the <head> code, so you can choose Astra's header builder. To avoid problems when users load the page, we are used to adding it to the footer.

In addition to the above method, you can also use plugins to add code. See:

2.2/5 - (10 votes)
Previous SEO Spider Log Analysis Helper: Introduction and Download of Spider Analyser Plugin Continue reading content around the same timeline. Next A Case of WordPress Website .htaccess File Virus Infection View the next related tutorial or experience.

AI Website Building Assistant

🤖
Hello! I am the Naibabiji AI Assistant. How can I help you?
Quick Consultation: