Method and device for optimizing website, computer equipment and storage medium

文档序号:1520992 发布日期:2020-02-11 浏览:5次 中文

阅读说明:本技术 一种优化网站的方法、装置、计算机设备及存储介质 (Method and device for optimizing website, computer equipment and storage medium ) 是由 李标庆 谭泽汉 张诗茹 侯俊光 于 2019-10-28 设计创作,主要内容包括:本发明公开了一种优化网站的方法、装置、计算机设备及存储介质,该方法包括:接收请求方发送来的包括目标网站和查询日期范围的查询请求;获取目标网站中的各个页面在查询日期范围内的用户访问行为信息并据此分别统计出目标网站中的各个页面的访问总时长和访问总次数;对统计出的访问总时长从大到小进行排序,对统计出的访问总次数从小到大进行排序;从前N个访问总时长对应的N个页面和前M个访问总次数对应的M个页面中确定出重合的页面以作为待优化页面,并将待优化页面发送至请求方。本发明多维度分析用户访问行为信息,以确定出目标网站中需要优化的页面,从而有针对性的进行网站优化,进而提高了使用体验度、减少了用户流失率。(The invention discloses a method, a device, computer equipment and a storage medium for optimizing a website, wherein the method comprises the following steps: receiving a query request which is sent by a requester and comprises a target website and a query date range; acquiring user access behavior information of each page in the target website within the query date range, and respectively counting the total access time and the total access times of each page in the target website according to the user access behavior information; sequencing the counted total visit duration from large to small, and sequencing the counted total visit times from small to large; and determining a coincident page as a page to be optimized from the N pages corresponding to the previous N total access durations and the M pages corresponding to the previous M total access times, and sending the page to be optimized to the requester. According to the invention, the user access behavior information is analyzed in a multi-dimensional manner to determine the page needing to be optimized in the target website, so that the website is optimized in a targeted manner, the use experience is further improved, and the user loss rate is reduced.)

1. A method for optimizing a website, the method comprising:

receiving a query request sent by a requester; wherein the query request comprises: target web site and query date range;

acquiring user access behavior information of each page in the target website within the query date range;

respectively counting the total access time and the total access times of each page in the target website according to the user access behavior information;

sequencing the counted total visit duration from large to small, and sequencing the counted total visit times from small to large;

and determining a coincident page as a page to be optimized from the N pages corresponding to the first N total access durations indicated by the sequencing result and the M pages corresponding to the first M total access times indicated by the sequencing result, and sending the page to be optimized to the requester, wherein M and N are integers greater than 1.

2. The method for optimizing a website according to claim 1, wherein before the receiving the query request sent by the requester, the method further comprises:

receiving user access behavior information sent by each client accessing the target website; wherein the user access behavior information comprises: the method comprises the steps that a Uniform Resource Locator (URL) of a current page, the access duration of the current page and a URL of an incoming page are obtained;

and storing the user access behavior information into a log file of a corresponding date according to the receiving date.

3. The method according to claim 2, wherein the obtaining of the user access behavior information of each page in the target website within the query date range specifically includes:

and acquiring log files of corresponding dates according to the inquiry date range, and acquiring user access behavior information from each acquired log file.

4. The method according to claim 2, wherein the receiving the user access behavior information sent by each client accessing the target website specifically includes:

receiving request information which is sent by the client and used for accessing a preset picture;

and acquiring the user access behavior information attached in the request information from the back of the request path in the request information.

5. The method according to claim 2, wherein the step of respectively counting total access time of each page in the target website according to the user access behavior information includes:

acquiring the URL of the current page and the access duration of the current page in each user access behavior information;

and accumulating all the access time lengths corresponding to the URLs aiming at one URL to obtain the total access time length of the page corresponding to the URL.

6. The method according to claim 2, wherein the step of counting the total number of visits of each page in the target website according to the user visit behavior information includes:

acquiring URLs of the access pages in the access behavior information of each user;

and counting the occurrence times of the URL in all user access behavior information aiming at one URL to obtain the total access times of the page corresponding to the URL.

7. An apparatus for optimizing a website, the apparatus comprising:

the receiving module is used for receiving the query request sent by the requester; wherein the query request comprises: target web site and query date range;

the acquisition module is used for acquiring user access behavior information of each page in the target website within the inquiry date range;

the statistical module is used for respectively counting the total access time and the total access times of each page in the target website according to the user access behavior information;

the first sequencing module is used for sequencing the counted total access duration from large to small;

the second sequencing module is used for sequencing the counted total number of visits from small to large;

and the sending module is used for determining a coincident page as a page to be optimized from N pages corresponding to the first N total access durations indicated by the sorting result obtained by the first sorting module and M pages corresponding to the first M total access times indicated by the sorting result obtained by the second sorting module, and sending the page to be optimized to the requester, wherein M and N are integers greater than 1.

8. The apparatus for optimizing a website of claim 7, wherein the receiving module is further configured to:

receiving user access behavior information sent by each client accessing the target website; wherein the user access behavior information comprises: the method comprises the steps that a Uniform Resource Locator (URL) of a current page, the access duration of the current page and a URL of an incoming page are obtained; storing the user access behavior information into a log file of a corresponding date according to the receiving date;

the acquisition module is specifically configured to:

and acquiring log files of corresponding dates according to the inquiry date range, and acquiring user access behavior information from each acquired log file.

9. A computer device, the computer device comprising: memory, a processor, the memory storing a computer program operable on the processor, wherein the processor, when executing the computer program, performs the steps of the method of any of claims 1 to 6.

10. A storage medium having a computer program stored thereon, the computer program, when being executed by a processor, performing the steps of the method of any one of claims 1 to 6.

Technical Field

The invention relates to the technical field of internet, in particular to a method and a device for optimizing a website, computer equipment and a storage medium.

Background

With the development and popularization of the internet, a large number of users can access the internet every day; in order to obtain user approval and prevent user loss, website developers need to continuously optimize the website, so that the use experience is improved, the loyalty of users is improved, and the user loss rate is reduced; in the prior art, optimizing a website becomes an effective solution by analyzing with access behavior information of a user in the website; however, because different users have differences in various aspects, it is difficult to effectively and accurately analyze a page with a problem in a website according to access behavior information; therefore, how to effectively and accurately determine the page needing to be optimized by using the access behavior information becomes a technical problem which needs to be solved urgently.

Disclosure of Invention

The invention aims to provide a method, a device, computer equipment and a storage medium for optimizing a website, which are used for analyzing user access behavior information in a multi-dimensional way to determine a page needing to be optimized in a target website, so that the website is optimized in a targeted way, the use experience is improved, and the user loss rate is reduced.

In a first aspect, the present invention provides a method for optimizing a website, which specifically includes the following steps:

receiving a query request sent by a requester; wherein the query request comprises: target web site and query date range;

acquiring user access behavior information of each page in the target website within the query date range;

respectively counting the total access time and the total access times of each page in the target website according to the user access behavior information;

sequencing the counted total visit duration from large to small, and sequencing the counted total visit times from small to large;

and determining a coincident page as a page to be optimized from the N pages corresponding to the first N total access durations indicated by the sequencing result and the M pages corresponding to the first M total access times indicated by the sequencing result, and sending the page to be optimized to the requester, wherein M and N are integers greater than 1.

Optionally, before receiving the query request sent by the requester, the method further includes:

receiving user access behavior information sent by each client accessing the target website; wherein the user access behavior information comprises: the method comprises the steps that a Uniform Resource Locator (URL) of a current page, the access duration of the current page and a URL of an incoming page are obtained;

and storing the user access behavior information into a log file of a corresponding date according to the receiving date.

Optionally, the obtaining user access behavior information of each page in the target website within the query date range specifically includes:

and acquiring log files of corresponding dates according to the inquiry date range, and acquiring user access behavior information from each acquired log file.

Optionally, the receiving the user access behavior information sent by each client accessing the target website specifically includes:

receiving request information which is sent by the client and used for accessing a preset picture;

and acquiring the user access behavior information attached in the request information from the back of the request path in the request information.

Optionally, the respectively counting total access time of each page in the target website according to the user access behavior information specifically includes:

acquiring the URL of the current page and the access duration of the current page in each user access behavior information;

and accumulating all the access time lengths corresponding to the URLs aiming at one URL to obtain the total access time length of the page corresponding to the URL.

Optionally, the respectively counting the total number of accesses to each page in the target website according to the user access behavior information specifically includes:

acquiring URLs of the access pages in the access behavior information of each user;

and counting the occurrence times of the URL in all user access behavior information aiming at one URL to obtain the total access times of the page corresponding to the URL.

In a second aspect, the present invention further provides a device for optimizing a website, which specifically includes the following components:

the receiving module is used for receiving the query request sent by the requester; wherein the query request comprises: target web site and query date range;

the acquisition module is used for acquiring user access behavior information of each page in the target website within the inquiry date range;

the statistical module is used for respectively counting the total access time and the total access times of each page in the target website according to the user access behavior information;

the first sequencing module is used for sequencing the counted total access duration from large to small;

the second sequencing module is used for sequencing the counted total number of visits from small to large;

and the sending module is used for determining a coincident page as a page to be optimized from N pages corresponding to the first N total access durations indicated by the sorting result obtained by the first sorting module and M pages corresponding to the first M total access times indicated by the sorting result obtained by the second sorting module, and sending the page to be optimized to the requester, wherein M and N are integers greater than 1.

Optionally, the receiving module is further configured to:

receiving user access behavior information sent by each client accessing the target website; wherein the user access behavior information comprises: the method comprises the steps that a Uniform Resource Locator (URL) of a current page, the access duration of the current page and a URL of an incoming page are obtained; storing the user access behavior information into a log file of a corresponding date according to the receiving date;

the acquisition module is specifically configured to:

and acquiring log files of corresponding dates according to the inquiry date range, and acquiring user access behavior information from each acquired log file.

In a third aspect, the present invention further provides a computer device, specifically including: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of optimizing a website described above when executing the program.

In a fourth aspect, the present invention also provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, performs the steps of the above method of optimizing a website.

According to the method, the device, the computer equipment and the storage medium for optimizing the website, the total visit duration and the total visit times of each page in the target website are counted to determine the page to be optimized, which is long in total visit duration and few in total visit times, in the target website, so that website developers can perform page optimization operation on the page to be optimized; according to the method and the device, the page to be optimized is determined by analyzing the user access behavior information from two dimensions, so that the target website can be optimized and designed in a targeted manner, the use experience of the target website is better, the loyalty of the user is improved, and the loss rate of the user is reduced.

Drawings

Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:

FIG. 1 is a schematic flow chart of an alternative method for optimizing a website according to an embodiment;

FIG. 2 is a schematic flow chart illustrating an alternative method for optimizing a website according to the second embodiment;

FIG. 3 is a schematic diagram illustrating an alternative program module of an apparatus for optimizing a website according to a third embodiment;

fig. 4 is a schematic diagram of an alternative hardware architecture of the computer device according to the fourth embodiment.

Detailed Description

In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:榜单更新方法、装置、可读介质和电子设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!