CN113536165B - Link tracking method, device, server and computer storage medium - Google Patents
Link tracking method, device, server and computer storage medium Download PDFInfo
- Publication number
- CN113536165B CN113536165B CN202110873674.2A CN202110873674A CN113536165B CN 113536165 B CN113536165 B CN 113536165B CN 202110873674 A CN202110873674 A CN 202110873674A CN 113536165 B CN113536165 B CN 113536165B
- Authority
- CN
- China
- Prior art keywords
- tracking
- page
- tracking identifier
- identifier
- text file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The application provides a link tracking method, a device, a server and a computer storage medium, wherein the link tracking method comprises the steps of receiving a trigger instruction of a page element, wherein the page element comprises a tracking identifier, recording the tracking identifier into a text file under a primary domain name of a page network address to which the page element belongs, responding to the trigger instruction, taking out the tracking identifier in the text file based on a link source address of a new page if the new page is opened, and setting the tracking identifier into a window object of the new page. Therefore, the cross-page parameter transmission of the subsequent page elements can be automatically carried out, the participation of service lines is not needed, and the purpose of accurately tracking the later conversion effect of the page elements is achieved.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and apparatus for tracking a link, a server, and a computer storage medium.
Background
With the development of the internet, the service data needs are more and more refined, and companies are concerned about not only overall revenue, but also revenue conversion caused by each page element (such as a button, each picture, each text, etc.) on a page.
At present, the later conversion effect of the page element cannot be accurately tracked.
Disclosure of Invention
In view of the above, the present application provides a method, an apparatus, a server and a computer storage medium for tracking links, which can accurately track the conversion effect of the later period of the page element.
The first aspect of the present application provides a method for tracking a link, including:
receiving a trigger instruction of a page element, wherein the page element comprises a tracking identifier;
recording the tracking identification to a text file under a primary domain name of a page network address to which the page element belongs;
responding to the trigger instruction, and if a new page is opened, taking out the tracking identifier in the text file based on the link source address of the new page;
And setting the tracking identification into a window object of the new page.
Optionally, after the setting the tracking identifier to the window object of the new page, the method further includes:
And deleting the tracking identifier in the text file.
Optionally, the method for tracking a link further includes:
And if the log event is reported, reporting the log event and the tracking identifier carried by the window object of the new page together.
A second aspect of the present application provides a link tracking device, comprising:
the receiving unit is used for receiving a trigger instruction of a page element, wherein the page element comprises a tracking identifier;
the recording unit is used for recording the tracking identification to a text file under a primary domain name of a page network address to which the page element belongs;
the response unit is used for responding to the trigger instruction, and if a new page is opened, the tracking identification in the text file is taken out based on the link source address of the new page;
And the setting unit is used for setting the tracking identification into the window object of the new page.
Optionally, the tracking device of the link further includes:
and the deleting unit is used for deleting the tracking identifier in the text file.
Optionally, the tracking device of the link further includes:
And the reporting unit is used for reporting the log event and the tracking identifier carried by the window object of the new page together if the log event is reported.
A third aspect of the present application provides a server comprising:
one or more processors;
a storage device having one or more programs stored thereon;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of tracking links as claimed in any of the first aspects.
A fourth aspect of the present application provides a computer storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements a method of tracking a link according to any of the first aspects.
According to the scheme, the link tracking method, the link tracking device, the server and the computer storage medium comprise the steps of firstly receiving a trigger instruction of a page element, recording the tracking identification into a text file under a primary domain name of a page network address to which the page element belongs, responding to the trigger instruction, taking out the tracking identification in the text file based on a link source address of a new page if the new page is opened, and finally setting the tracking identification into a window object of the new page. Therefore, the cross-page parameter transmission of the subsequent page elements can be automatically carried out, the participation of service lines is not needed, and the purpose of accurately tracking the later conversion effect of the page elements is achieved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
Fig. 1 is a specific flowchart of a link tracking method according to an embodiment of the present application;
fig. 2 is a schematic diagram of a link tracking method according to another embodiment of the present application;
Fig. 3 is a flowchart of a link tracking method according to another embodiment of the present application;
FIG. 4 is a schematic diagram of a link tracking device according to another embodiment of the present application;
FIG. 5 is a schematic diagram of a link tracking device according to another embodiment of the present application;
fig. 6 is a schematic diagram of a server for implementing a link tracking method according to another embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be noted that the terms "first," "second," and the like herein are merely used to distinguish between different devices, modules, or units and are not intended to limit the order or interdependence of functions performed by such devices, modules, or units, but the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but also other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
The embodiment of the application provides a link tracking method, as shown in fig. 1, which specifically comprises the following steps:
S101, receiving a trigger instruction of a page element.
Wherein the page element includes a tracking identifier.
It should be noted that, the trigger instruction may be generated by a user operating through a mouse, or may be generated by a user operating through a touch screen, and the modes are very diversified, which is not limited herein.
It can be understood that a technician, a software provider and a demander can set a tracking identifier for a page element in a page in a targeted manner, so that effect tracking can be performed for the page element in a targeted manner, and of course, all the page elements can be set with a middle mark, which is not limited herein.
S102, recording and tracking identification to a text file under a primary domain name of a page network address to which the page element belongs.
Wherein the text file may be, but is not limited to, a cookie, and is not limited herein. A cookie is a small piece of data that the server sends to the user's browser and saves locally, which will be carried and sent to the server the next time the browser re-sends a request to the same server. Typically, it is used to inform the server whether two requests come from the same browser, such as to keep the user logged on.
It should be noted that a cookie is a simple text file stored in a client that is associated with a particular Web document, storing information that the client accesses the Web document, which information is available to the client when it accesses the Web document again. Since the cookie has the magic character that can be stored on the client, the cookie can help us to realize the function of recording personal information of the user, and all the cookie does not need to use complex CGI and other programs.
The page network address to which the page element belongs may be, but is not limited to, a uniform resource locator (Uniform Resource Locator, URL), which is also not limited herein. The primary domain name of the URL of the page to which the page element belongs may also be referred to as a top-level domain name.
Specifically, in the text file under the primary domain name of the page network address to which the page element belongs, the key of the cookie is "tracking" +window.location.href hashcode (), and the value is the tracking identifier on the page element.
And S103, responding to the trigger instruction, and if a new page is opened, taking out the tracking identification in the text file based on the link source address of the new page.
The link source address may be, but is not limited to, reference, and is not limited herein. reference indicates the address of the source page of the current request page, i.e., indicates that the current page is entered via a link in this source page.
For example, the page element is an icon of the application A, and when a new page B is opened after the trigger instruction of the application A is responded, the tracking identifier in the text file is taken out according to the reference of the page B.
S104, setting the tracking identification into a window object of the new page.
Specifically, the tracking identifier in the cookie is extracted according to the reference of the page, the key of the cookie is tracking "+document. Reference. Hashcode (), and the tracking identifier is set to the value of window. Tracking_id.
Optionally, in another embodiment of the present application, an implementation of the method for tracking a link further includes:
and if the log event is reported, reporting the log event and the tracking identifier carried by the window object of the new page together.
Specifically, when a log event is reported, the window_id of the current page is reported as the value of the tk_id field.
As shown in FIG. 2, it can be seen that when a user performs an operation on an operation interface, the user clicks a page element containing a tracking identifier, after receiving a trigger instruction of the page element, the user accesses a newly opened page from the current page if the new page is opened in the tracking identifier cookie, and the newly opened page obtains the tracking identifier stored in the cookie according to the reference, and stores the tracking identifier in the window object. Therefore, when the log event is reported, the log event and the tracking identifier in the window object of the new page can be reported together.
According to the scheme, the link tracking method comprises the steps of firstly, receiving a trigger instruction of a page element, wherein the page element comprises a tracking identifier, then, recording the tracking identifier into a text file under a primary domain name of a page network address to which the page element belongs, responding to the trigger instruction, taking out the tracking identifier in the text file based on a link source address of a new page if the new page is opened, and finally, setting the tracking identifier into a window object of the new page. Therefore, the cross-page parameter transmission of the subsequent page elements can be automatically carried out, the participation of service lines is not needed, and the purpose of accurately tracking the later conversion effect of the page elements is achieved.
Optionally, in another embodiment of the present application, an implementation of a method for tracking a link, as shown in fig. 3, includes:
s301, receiving a trigger instruction of the page element.
Wherein the page element includes a tracking identifier.
It should be noted that the specific implementation procedure of step S301 is the same as that of step S101 described above, and reference may be made to each other.
S302, recording and tracking identification to a text file under a primary domain name of a page network address to which the page element belongs.
It should be noted that the implementation procedure of step S302 is the same as that of step S102, and can be seen from each other.
S303, responding to the trigger instruction, and if a new page is opened, taking out the tracking identification in the text file based on the link source address of the new page.
It should be noted that the specific implementation procedure of step S303 is the same as the specific implementation procedure of step S103 described above, and reference may be made to each other.
S304, setting the tracking identification into a window object of the new page.
It should be noted that the specific implementation procedure of step S304 is the same as the specific implementation procedure of step S104 described above, and reference may be made to each other.
S305, deleting the tracking identification in the text file.
It should be noted that, the trace identifier in the text file is deleted, so as to avoid the situation that a plurality of tag pages are confused with data when the trace identifier is acquired.
Optionally, in another embodiment of the application, an implementation of the method for tracking a link further includes:
and if the log event is reported, reporting the log event and the tracking identifier carried by the window object of the new page together.
Specifically, when a log event is reported, the window_id of the current page is reported as the value of the tk_id field.
As shown in FIG. 2, it can be seen that when a user performs an operation on an operation interface, the user clicks a page element containing a tracking identifier, after receiving a trigger instruction of the page element, the current page sets the tracking identifier in a cookie, and if a new page is opened, the newly opened page obtains a tracking identifier stored in the cookie before according to a reference, and stores the tracking identifier in a window object. Therefore, when the log event is reported, the log event and the tracking identifier carried by the window object of the new page can be reported together.
According to the scheme, the link tracking method comprises the steps of firstly, receiving a trigger instruction of a page element, wherein the page element comprises a tracking identifier, then, recording the tracking identifier into a text file under a primary domain name of a page network address to which the page element belongs, responding to the trigger instruction, taking out the tracking identifier in the text file based on a link source address of a new page if the new page is opened, and finally, setting the tracking identifier into a window object of the new page and deleting the tracking identifier in the text file. Therefore, the cross-page parameter transmission of the subsequent page elements can be automatically carried out, the participation of service lines is not needed, and the purpose of accurately tracking the later conversion effect of the page elements is achieved.
Another embodiment of the present application provides a link tracking device, as shown in fig. 4, specifically including:
The receiving unit 401 is configured to receive a trigger instruction of a page element.
Wherein the page element includes a tracking identifier.
A recording unit 402, configured to record a tracking identifier in a text file under a primary domain name of a page network address to which the page element belongs.
And the response unit 403 is configured to respond to the trigger instruction, and if a new page is opened, take out the tracking identifier in the text file based on the link source address of the new page.
A setting unit 404, configured to set the tracking identifier to the window object of the new page.
The specific working process of the unit disclosed in the above embodiment of the present application may refer to the content of the corresponding method embodiment, as shown in fig. 1, and will not be described herein.
Optionally, in another embodiment of the present application, an implementation of the tracking device for a link further includes:
and the reporting unit is used for reporting the log event and the tracking identifier carried by the window object of the new page together if the log event is reported.
The specific working process of the unit disclosed in the above embodiment of the present application can be referred to the corresponding method embodiment, and will not be described herein.
According to the scheme, the receiving unit 401 receives the trigger instruction of the page element, wherein the page element comprises the tracking identifier, the recording unit 402 records the tracking identifier in the text file under the primary domain name of the page network address to which the page element belongs, the responding unit 403 responds to the trigger instruction, if a new page is opened, the tracking identifier in the text file is taken out based on the link source address of the new page, and finally the setting unit 404 sets the tracking identifier in the window object of the new page. Therefore, the cross-page parameters of the subsequent page elements can be automatically carried out, the participation of service lines is not needed, and the purpose of accurately tracking the later conversion effect of the page elements is achieved.
Alternatively, in another embodiment of the present application, an implementation of a tracking device for a link, as shown in fig. 5, includes:
A receiving unit 501, configured to receive a trigger instruction of a page element.
Wherein the page element includes a tracking identifier.
A recording unit 502, configured to record a tracking identifier in a text file under a primary domain name of a page network address to which the page element belongs.
And a response unit 503, configured to respond to the trigger instruction, and if a new page is opened, take out the tracking identifier in the text file based on the link source address of the new page.
A setting unit 504, configured to set the tracking identifier to the window object of the new page.
A deleting unit 505, configured to delete the tracking identifier in the text file.
The specific working process of the unit disclosed in the above embodiment of the present application may refer to the content of the corresponding method embodiment, as shown in fig. 3, and will not be described herein.
Optionally, in another embodiment of the present application, an implementation of the tracking device for a link further includes:
and the reporting unit is used for reporting the log event and the tracking identifier carried by the window object of the new page together if the log event is reported.
The specific working process of the unit disclosed in the above embodiment of the present application can be referred to the corresponding method embodiment, and will not be described herein.
According to the scheme, the link tracking device provided by the application comprises the steps that firstly, the receiving unit 501 receives a trigger instruction of a page element, wherein the page element comprises a tracking identifier, then the recording unit 502 records the tracking identifier in a text file under a primary domain name of a page network address to which the page element belongs, the responding unit 503 responds to the trigger instruction, if a new page is opened, the tracking identifier in the text file is taken out based on a link source address of the new page, and finally, the setting unit 504 sets the tracking identifier in a window object of the new page, and the deleting unit 505 deletes the tracking identifier in the text file. Therefore, the cross-page parameter transmission of the subsequent page elements can be automatically carried out, the participation of service lines is not needed, and the purpose of accurately tracking the later conversion effect of the page elements is achieved.
Another embodiment of the present application provides a server, as shown in fig. 6, including:
One or more processors 601.
A storage device 602 on which one or more programs are stored.
The one or more programs, when executed by the one or more processors 601, cause the one or more processors 601 to implement the method of tracking links as in any of the embodiments described above.
Another embodiment of the present application provides a computer storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements a method for tracking a link as in any of the above embodiments.
In the above embodiments of the present disclosure, it should be understood that the disclosed apparatus and method may be implemented in other manners. The apparatus and method embodiments described above are merely illustrative, for example, flow diagrams and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in various embodiments of the present disclosure may be integrated together to form a single portion, or each module may exist alone, or two or more modules may be integrated to form a single portion. The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present disclosure may be embodied in essence or a part contributing to the prior art or a part of the technical solution, or in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a live device, or a network device, etc.) to perform all or part of the steps of the method described in the embodiments of the present disclosure. The storage medium includes a U disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, an optical disk, or other various media capable of storing program codes.
Those skilled in the art will be able to make or use the application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (6)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110873674.2A CN113536165B (en) | 2021-07-30 | 2021-07-30 | Link tracking method, device, server and computer storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110873674.2A CN113536165B (en) | 2021-07-30 | 2021-07-30 | Link tracking method, device, server and computer storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN113536165A CN113536165A (en) | 2021-10-22 |
| CN113536165B true CN113536165B (en) | 2025-07-04 |
Family
ID=78121648
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202110873674.2A Active CN113536165B (en) | 2021-07-30 | 2021-07-30 | Link tracking method, device, server and computer storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN113536165B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115357761A (en) * | 2022-08-29 | 2022-11-18 | 建信金融科技有限责任公司 | Link tracking method and device, electronic equipment and storage medium |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105677866A (en) * | 2016-01-08 | 2016-06-15 | 车智互联(北京)科技有限公司 | Content conversion tracing method, device and system and conversion server |
| CN107291759A (en) * | 2016-04-01 | 2017-10-24 | 腾讯科技(深圳)有限公司 | The treating method and apparatus of browser page resource |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| GB2425194A (en) * | 2005-04-15 | 2006-10-18 | Exponetic Ltd | Tracking user network activity using a client identifier |
| CN101315629B (en) * | 2007-06-01 | 2010-11-17 | 潘晓梅 | Downloading method and system for web page dynamic contents |
| CN103390128A (en) * | 2013-08-01 | 2013-11-13 | 贝壳网际(北京)安全技术有限公司 | Page labeling method and device and terminal equipment |
| CN105373533B (en) * | 2014-07-31 | 2019-04-09 | 阿里巴巴集团控股有限公司 | A kind of detection method, client and the device of page link address |
| CN108391009A (en) * | 2018-02-13 | 2018-08-10 | 广东欧珀移动通信有限公司 | Application page display method, device, storage medium and electronic device |
| CN113051508A (en) * | 2019-12-27 | 2021-06-29 | 中国电信股份有限公司 | Method, system and medium for detecting click traffic of page elements in page |
-
2021
- 2021-07-30 CN CN202110873674.2A patent/CN113536165B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105677866A (en) * | 2016-01-08 | 2016-06-15 | 车智互联(北京)科技有限公司 | Content conversion tracing method, device and system and conversion server |
| CN107291759A (en) * | 2016-04-01 | 2017-10-24 | 腾讯科技(深圳)有限公司 | The treating method and apparatus of browser page resource |
Also Published As
| Publication number | Publication date |
|---|---|
| CN113536165A (en) | 2021-10-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110688598B (en) | Service parameter acquisition method and device, computer equipment and storage medium | |
| CN103443781B (en) | data delivery | |
| US8266243B1 (en) | Feedback mechanisms providing contextual information | |
| US9248068B2 (en) | Security threat detection of newly registered domains | |
| CN112035205B (en) | Data processing method, device, equipment and storage medium | |
| JP2006146882A (en) | Content evaluation | |
| CN109684571B (en) | A data collection method and device, and storage medium | |
| CN109309664B (en) | Browser fingerprint detection behavior monitoring method | |
| US12481788B2 (en) | Method to randomize online activity | |
| CN113158118B (en) | Page embedding data collection method, device and system | |
| Reddy et al. | Preprocessing the web server logs: an illustrative approach for effective usage mining | |
| AU2014233889A1 (en) | Online privacy management | |
| US9462067B2 (en) | Engine, system and method for an adaptive search engine on the client computer using domain social network data as the search topic sources | |
| RU2669172C2 (en) | Method and monitoring system of web-site consistency | |
| JP5709448B2 (en) | Access analysis device, access analysis method, and access analysis program | |
| CN113536165B (en) | Link tracking method, device, server and computer storage medium | |
| CN103618760B (en) | Processing method of cookie information in browser and browser | |
| KR20200040594A (en) | A social shopping link generating method of identifying user's sharing activities easily and providing reward | |
| CN100437740C (en) | Association of site clicks with links on web pages | |
| CN108023779A (en) | A kind of method and system based on network traffic analysis user behavior | |
| Dahlke et al. | Pie metrics: Quantifying the systematic bias in the ephemerality and inaccessibility of web scraping content from url-logged web-browsing digital trace data | |
| WO2017117912A1 (en) | Data acquisition method, apparatus and device, and computer storage medium | |
| WO2017054041A1 (en) | Method, system and computer program for recording online browsing behaviour | |
| Raghavan et al. | Reconstructing tabbed browser sessions using metadata associations | |
| JP2007219619A (en) | Information management program, device, and method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |