🚀 Is building a website too difficult? Let me guide you step by step—Learn about the 「Naibabiji WordPress Website Building Coaching Service」 →

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

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 operations are as follows: 1. Log in to the WordPress Admin Dashboard, 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 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.astra添加统计代码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:

🚀 Still feeling confused after reading the tutorial? Let me guide you step-by-step.

「Naibabiji WordPress Website Building Coaching Service」—From choosing a domain and buying hosting, to installing a Theme and publishing content, I「ll coach you through every step, helping you avoid detours and reach your goal directly.

👉 Learn about the Website Building Coaching Service
🔒

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.

×
二维码

Scan QR Code to Follow

AI Website Building Assistant

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