In the process of website administration, you must regularly analyze data related to its operation. Such as: the number of visitors by day/month/year, how many people are currently on the website, the most viewed content, the location of the visitor, etc. This not only helps you to understand the situation. development of the website, but also support to come up with a plan to optimize the website and develop it better.
What is Google Analytics?
Google Analytics is a real-time website monitoring tool, developed by Google. It is an extremely useful tool for you to track metrics related to website activity. All metrics collected by Google Analytics are thanks to a bot that you will install on your website. It helps Google Analytics to track websites and collect activity metrics accurately, completely and quickly.
The following article will guide your friend.

Integrate Google Analytics into your website
First, we have to sign up for an account at https://analytics.google.com/
You can login with your gmail account. Then, at the main screen, press the Set up for free button

At the step of creating a tracking account, you enter the account name.

The next step you choose to track content, such as Website, Mobile Apps, or both. Here I choose Website tracking.

Then, fill in the website name, website address (remember to choose https:// if your website has security settings), website category (if nothing related, select Orther ), Time Zone select Vietnam. Finally hit the Create button .

After creating an account, it will provide you with a tracking code. Copy this code and paste it on your website.

Now open the website admin page. Go to menu Appearance > Edit Interface . Then, on the right, select the file Header.php (header.php).
In the file content box, find the closing </head> tag, paste the tracking code before this tag as shown. Then click the Update file button .

Now open the homepage of this website, then go back to Google Analytics, Click on the menu Realtime > Overview on the right. Right now , you will see the number 1 showing up as successful.

summary
Above is how to integrate Google Analytics into the website. This is the step that cannot be skipped after you complete the website design. It helps you to monitor the website in the most comprehensive way. Thereby you have the right website development direction, SEO standard. As a result, the website has a good ranking on the search page.
