当前位置:网站首页>One Minute! No code! Add [statistical analysis] to the website

One Minute! No code! Add [statistical analysis] to the website

2022-06-24 16:20:00 Programmer fish skin

This is the real webmaster artifact !

Programming navigation open source repository :https://github.com/liyupi/code-nav

Hello everyone , I'm Yuer .

Want to run your own website , Get more users , We must do a good job in the data statistics of the website , And through the daily analysis of the data , To get to know your users , To continuously optimize your website .

But it is very troublesome to develop the website statistics function by ourselves , The front-end buried point shall be reported 、 Back end collection, etc , Every piece needs careful design , Students who don't understand this knowledge can't even do the basic statistical function , Not to mention big data analysis and Visualization .

But also good , Some giants have already helped us achieve .

What is Baidu Statistics ?

Baidu statistics , It is the leading Chinese website analysis platform in China , Support website 、APP、 Applet 、 Offline retail and other scenarios , Help developers easily realize the automatic collection of global data 、 Statistical and analytical requirements .

Based on Baidu's big data capability , We can see the user image of our own site , Including multi-dimensional basic attributes 、 Visit intention and industry change trend, etc , Coupled with the multi-dimensional event model and the various complex high-level analysis capabilities it provides , It can help site leaders understand the target groups of the website 、 Lock hotspot trend 、 Optimize content operations , And it can gain insight into potential traffic through network wide analysis , Deeply excavate the value of portraits , Achieve user growth .

The user portrait provided by Baidu statistics

Besides , Baidu statistics also has minimalist access 、 Second response 、 Strong stability 、 Export data 、 Massive resources and other advantages .

Said a lot , It sounds like it's awesome ! Let's try it with Yu Er .

Access to Baidu statistics

It only takes a minute , Don't write any code , You can easily access Baidu Statistics , Meet various common data analysis needs of the webmaster .

First log in to Baidu statistics , Go to the application management page , Each website is an independent application . Click to add a new website , Directly input the website domain name, home page address and other information :

Click ok , It will automatically jump to the code acquisition page , Here you can see the statistics code generated for the site , Directly <script> The tag is copied to the beginning of the master page file of your project <head> In the label .

Code acquisition

If you want more advanced statistics , You can also use custom code , After the application center opens the required functions , You can see it on the code acquisition page .

Advanced features

After adding the code to the project file , You can see the code installation status in the management interface at any time , If the installation is wrong , Please check carefully or reconfigure it .

Check the code installation status

You can also open your own configured website , Press F12 Open developer tools , Listen for network requests , If you see such a hm The first request , The installation is successful .

View Baidu statistics request

Be accomplished , Now you can view the website statistics report happily !

For example, the number of views on the website 、 Number of visitors 、IP Count 、 Retention 、 Access trends 、 Search terms :

View website statistics report

And the source of visitors 、 Page access, etc :

Visitor sources and entrances

You can even see visitors' information , For example, the number of new and old visitors 、 Age distribution 、 Geographical distribution, etc . Don't be surprised , Baidu has been searching for decades , User portraits are very rich .

image-20210427201533864

How to use these data to optimize the website ? Fish two give a few examples :

  • Analyze the trend of website access , If one day the traffic is high , You can analyze the reason , Think about more drainage opportunities .
  • Analyze the source of users , So as to evaluate the effect of drainage .
  • Analyze the most popular visited pages , Focus on optimizing these pages .
  • Analyze the proportion of new and old visitors , So as to determine the development goal of the website , Is it new or retained ?
  • Analyze the geographical distribution of visitors , So as to put targeted advertisements .

Okay , The functions of Baidu statistics are really powerful and diverse , I'm not going to introduce it , Interested friends must try !

Project address :https://www.code-nav.cn/rd/?rid=ce805e785ff30ad403399b916d84978b

stay Programming navigation We can also find more high-quality programming learning resources , Welcome to share it with the students in need !

原网站

版权声明
本文为[Programmer fish skin]所创,转载请带上原文链接,感谢
https://yzsam.com/2021/04/20210428185131071Q.html