H5 applies for Google Analytics, and uses Google Analytics for data analysis of websites and applications.

Google Analytics official website

Google Analytics URL : https://analytics.google.com/

  • Log in to your Google account

Log in to your Google account

  • Open a Google Analytics account

Click to start measurement
Insert image description here
and fill in the account name
Insert image description here

Click Next
. Fill in the resource name of the analysis website
Insert image description here
. Click Next
. Fill in the business information
. Click Create
. Click I Accept
. Click Save.
Insert image description here
At this point, our Google Analytics account application has been successful.

Create a new website

Insert image description here
Set the website data flow we want, such as: Baidu, www.baidu.com.
Insert image description here
Click to create a data flow

  • Add code

View the code description
Insert image description here
, select Manual Add
Insert image description here
, then copy the code inside and put it on our web htmlpage, headjust after the element.
Publish it online, and anyone who visits can see the data analysis.
Insert image description here

Guess you like

Origin blog.csdn.net/weixin_39550080/article/details/128714046