How to Add Analytics to Your Site


In this topic you will learn how to add Google Analytics to your site. Learning how to do this will help you understand how Google Analytics can help you measure how many people were reached by your website or mobile application, and how you can reach more.



1. Sign in to your Google Analytics

001-Project Zealous

2. Head over to the Admin section from your dashboard

002-Project Zealous003-Project Zealous

3. In the Admin section, go to the property column

004-Project Zealous005-Project Zealous

4. Use the dropdown menu of the property column to make sure that you have already selected the correct property of your website

006-Project Zealous

5. In the column property look for “Tracking Info”, select and click the button

007-Project Zealous008-Project Zealous

6. Once you have clicked the Tracking Info button, a few sub-selections will be shown to you. This time choose “Tracking Code”

009-Project Zealous

7. Selecting Tracking Code will show your Tracking ID and the gtag.js code for your site

010-Project Zealous011-Project Zealous

8. Copy the gtag.js also known as your Global Site Tag

012-Project Zealous013-Project Zealous

9. Paste this code to your server, sign in to your server

014-Project Zealous

10. Go to Files category and select File Manager

015-Project Zealous

11. Inside File Manager

016-Project Zealous

12. From the files of public_html, select and open the wp-content

017-Project Zealous

13. Inside the wp-content folder, open the themes folder

018-Project Zealous

14. Inside the themes folder, select the child-theme folder and open it

019-Project Zealous

15. Select Functions.php

020-Project Zealous

16. Right-click and select Edit

021-Project Zealous

17. Paste the code

022-Project Zealous

18. Click Save changes

023-Project Zealous

19. Refresh and go back to your Google analytics, inside your tracking info under tracking code, send test traffic

024-Project Zealous

20. After you send your test traffic, it should show that it has one active user. Then you’re good to go

025-Project Zealous026-Project Zealous