CN109471638B - Method for identifying application program downloading channel and related equipment - Google Patents

Method for identifying application program downloading channel and related equipment Download PDF

Info

Publication number
CN109471638B
CN109471638B CN201811203970.6A CN201811203970A CN109471638B CN 109471638 B CN109471638 B CN 109471638B CN 201811203970 A CN201811203970 A CN 201811203970A CN 109471638 B CN109471638 B CN 109471638B
Authority
CN
China
Prior art keywords
domain name
application program
cookies
information
channel
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
Application number
CN201811203970.6A
Other languages
Chinese (zh)
Other versions
CN109471638A (en
Inventor
张达理
吕庆春
彭飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuba Co Ltd
Original Assignee
Wuba Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Wuba Co Ltd filed Critical Wuba Co Ltd
Priority to CN201811203970.6A priority Critical patent/CN109471638B/en
Publication of CN109471638A publication Critical patent/CN109471638A/en
Application granted granted Critical
Publication of CN109471638B publication Critical patent/CN109471638B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method and related equipment for identifying an application program downloading channel, wherein the method comprises the following steps: generating cookie information corresponding to the application program according to the Web activity page where the application program is located; sending the cookies information to the terminal to be stored in a preset domain name of a terminal browser; the preset domain name of the browser is the same as the domain name to which the URL of the Web activity page belongs; receiving all Cookies information which is fed back by the terminal and is obtained from a preset domain name of the browser when the terminal runs the application program; and acquiring downloading channel information corresponding to the application program from all the Cookies information according to the application program operated by the terminal. The method and the device realize that all the Cookies information under the same domain name is obtained when the application program is operated by storing the Cookies information containing the downloading channel information in the preset domain name and utilizing the mode of sharing the Cookies under the same domain name so as to accurately obtain the downloading channel of the application program from the Cookies, thereby solving the problem of inaccurate identification of the existing downloading channel.

Description

Method for identifying application program downloading channel and related equipment
Technical Field
The invention relates to the technical field of communication, in particular to a method for identifying an application program downloading channel and related equipment.
Background
The existing methods for identifying application (App) downloading channels all record data which can mark user characteristics such as an IP address, a browser user agent, a timestamp and the like of a user on an active Web page, when the user downloads the App in an App store, and opens the App, fuzzy matching is performed by comparing data with the same dimensionality, and the downloading channel of the App is identified.
However, since the environment of the user at this stage from the guided download to the downloading after the App is opened may change, the user feature matching may be unsuccessful or inaccurate, and the overall scheme is not accurate enough.
Disclosure of Invention
The embodiment of the invention provides a method and a device for identifying an application program downloading channel, which are used for solving the problem that the downloading channel identification in the prior art is not accurate enough.
In a first aspect, an embodiment of the present invention provides a method for identifying an application download channel, where the method includes the following steps:
generating cookie information corresponding to the application program according to the Web activity page where the application program is located;
sending the Cookies information to a terminal to be stored in a preset domain name of a terminal browser; the preset domain name of the browser is the same as the domain name to which the Uniform Resource Locator (URL) of the Web activity page belongs;
receiving all Cookies information which is fed back by the terminal and is obtained from the preset domain name of the browser when the terminal runs the application program;
and acquiring downloading channel information corresponding to the application program from all the Cookies information according to the application program operated by the terminal.
Optionally, the sending the cookies information to the terminal to be stored in a predetermined domain name of a browser of the terminal specifically includes:
when a user clicks an application program downloading button of a Web activity page, writing the Cookies information into a preset domain name of a browser of the terminal by using an open interface of the Web activity page;
the cookies include channel key information corresponding to the application program and download channel information corresponding to the channel key information.
Optionally, obtaining, according to the application program operated by the terminal, download channel information corresponding to the application program from the information of all cookies, specifically including:
and according to the application program operated by the terminal, acquiring channel key information corresponding to the application program from all the Cookies information, and acquiring downloading channel information corresponding to the channel key information by using the channel key information.
In a second aspect, an embodiment of the present invention provides a method for identifying an application program download channel, where the method includes:
when an application program is clicked and downloaded in a Web activity page, cookie information sent by a server side is received, the received cookie information is stored in a preset domain name of a browser, and the browser jumps to an application store to finish downloading of the application program; the preset domain name of the browser is the same as the domain name to which the URL of the Web activity page belongs;
when the application program is operated, reading a preset URL, and obtaining all the cookies information in the preset domain name which is the same as the domain name of the preset URL according to the domain name of the preset URL;
and sending the obtained information of all the cookies to a server.
Optionally, the cookies information includes channel key information corresponding to the application program and download channel information corresponding to the channel key information.
In a third aspect, an embodiment of the present invention provides an apparatus for identifying an application program download channel, including:
the generating module is used for generating corresponding Cookies information according to the Web activity page where the application program is located;
the first sending module is used for sending the Cookies information to the terminal so as to store the Cookies information in a preset domain name of a terminal browser; the preset domain name of the browser is the same as the domain name to which the URL of the Web activity page belongs;
the receiving module is used for receiving all Cookies information which is fed back by the terminal and is obtained from the preset domain name of the browser when the application program is operated;
and the first acquisition module is used for acquiring the downloading channel information corresponding to the application program from all the Cookies information according to the application program operated by the terminal.
Optionally, the sending module is specifically configured to: when a user clicks an application program downloading button of a Web activity page, writing the Cookies information into a preset domain name of a browser of the terminal by using an open interface of the Web activity page; the cookies include channel key information corresponding to the application program, and download channel information corresponding to the channel key information.
Optionally, the obtaining module is specifically configured to obtain, according to the application program operated by the terminal, channel key information corresponding to the application program from all the cookies, and obtain, by using the channel key information, download channel information corresponding to the channel key information.
In a fourth aspect, an embodiment of the present invention provides an apparatus for identifying an application program download channel, including:
the storage module is used for receiving the Cookies information sent by the server side when the application program is clicked and downloaded in the Web activity page, storing the received Cookies information in a preset domain name of the browser, and jumping to an application store to finish downloading of the application program; the preset domain name of the browser is the same as the domain name to which the URL of the Web activity page belongs;
the second acquisition module is used for reading a preset URL (uniform resource locator) when the application program is operated, and acquiring all Cookies information in the preset domain name which is the same as the domain name of the preset URL according to the domain name of the preset URL;
and the second sending module is used for sending the obtained information of all the cookies to the server side.
Optionally, the cookies information includes channel key information corresponding to the application program, and download channel information corresponding to the channel key information.
In a fifth aspect, an embodiment of the present invention provides a server, where the server includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and the computer program, when executed by the processor, implements the steps of the following method:
generating cookie information corresponding to the application program according to the Web activity page where the application program is located;
sending the Cookies information to a terminal to be stored in a preset domain name of a terminal browser; the preset domain name of the browser is the same as the domain name to which the URL of the Web activity page belongs;
receiving all Cookies information which is fed back by the terminal and is obtained from the preset domain name of the browser when the terminal runs the application program;
and acquiring downloading channel information corresponding to the application program from all the Cookies information according to the application program operated by the terminal.
In a sixth aspect, an embodiment of the present invention provides a terminal, where the terminal includes: memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the method:
when an application program is clicked and downloaded in a Web activity page, cookie information sent by a server side is received, the received cookie information is stored in a preset domain name of a browser, and the browser jumps to an application store to finish downloading of the application program; the preset domain name of the browser is the same as the domain name to which the URL of the Web activity page belongs;
when the application program is operated, reading a preset URL, and obtaining all the cookies information in the preset domain name which is the same as the domain name of the preset URL according to the domain name of the preset URL;
and sending the obtained information of all the cookies to a server.
In a seventh aspect, an embodiment of the present invention provides a storage medium, where the storage medium includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and the computer program, when executed by the processor, implements the following steps of the method:
generating cookie information corresponding to the application program according to the Web activity page where the application program is located;
sending the Cookies information to a terminal to be stored in a preset domain name of a terminal browser; the preset domain name of the browser is the same as the domain name to which the URL of the Web activity page belongs;
receiving all Cookies information which is fed back by the terminal and is obtained from the preset domain name of the browser when the terminal runs the application program;
and acquiring downloading channel information corresponding to the application program from all the Cookies information according to the application program operated by the terminal.
Or, implementing the steps of the method:
when an application program is clicked and downloaded in a Web activity page, cookie information sent by a server side is received, the received cookie information is stored in a preset domain name of a browser, and the browser jumps to an application store to finish downloading of the application program; the preset domain name of the browser is the same as the domain name to which the URL of the Web activity page belongs;
when the application program is operated, reading a preset URL, and obtaining all the cookies information in the preset domain name which is the same as the domain name of the preset URL according to the domain name of the preset URL;
and sending the obtained information of all the cookies to a server.
According to the embodiment of the invention, the Cookies information containing the downloading channel information is stored in the preset domain name, and the Cookies information sharing mode under the same domain name is utilized, so that all the Cookies information under the same domain name can be obtained when the application program is operated, and the downloading channel information of the application program can be accurately obtained from the Cookies information, and the problem that the existing downloading channel identification is not accurate enough is solved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
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 flowchart of a method for identifying an application download channel according to a first embodiment;
FIG. 2 is a flowchart of a method for identifying an application download channel according to a second embodiment;
FIG. 3 is a flowchart of a method for identifying an application download channel according to a third embodiment;
fig. 4 is a block diagram of an apparatus for identifying an application download channel according to the fourth and fifth embodiments;
FIG. 5 is a block diagram of an apparatus for identifying an application download channel according to a sixth embodiment;
fig. 6 is a block diagram showing a configuration of a server according to a seventh embodiment;
fig. 7 is a block diagram of a terminal according to an eighth embodiment;
fig. 8 is a flowchart of a system for identifying an application download channel according to a tenth embodiment.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
A first embodiment of the present invention provides a method for identifying an application download channel, where an execution subject includes but is not limited to a server, as shown in fig. 1, the method includes the following specific steps:
step S11, generating Cookies information corresponding to the application program according to the Web activity page where the application program is located;
in this step, the generated cookies include key information corresponding to the application program and download channel information corresponding to the key information, where the specific key information may be a key value for identifying a channel, and the download channel information may be a value of the channel.
Step S12, sending the Cookies information to the terminal to be stored in a preset domain name of a terminal browser; the preset domain name of the browser is the same as a domain name to which a Uniform Resource Locator (URL) of a Web activity page belongs;
in the step, two or more Web activity pages with the same domain name but different URLs generate corresponding cookies information, and the cookies information is stored in the same preset domain name; for example, xxx1.58.com and xxx2.58.com are two Web activity pages with the same domain name but different URLs, and the domain names of the two Web activity pages are 58.com, the Web activity page corresponding to xxx1.58.com is used for guiding the user to download the application App1, and the Web activity page corresponding to xxx2.58.com is used for guiding the user to download the App 2; then, the Web activity page corresponding to xxx1.58.com generates cookie information corresponding to App1, and the Web activity page corresponding to xxx2.58.com generates cookie information corresponding to App2, both of which are stored in the terminal browser domain name of. 58. com.
Step S13, receiving all Cookies information which is fed back by the terminal and is obtained from the preset domain name of the browser when the terminal runs the application program;
in this step, for example, after App1 and App2 in step S12 are downloaded, when the terminal opens and runs App2, the server receives all cookies information in 58.com, which specifically includes cookies information corresponding to App1 and cookies information corresponding to App2, fed back by the terminal;
and step S14, acquiring downloading channel information corresponding to the application program from all the Cookies information according to the application program operated by the terminal.
In this step, when the terminal runs App2, after the server receives all the cookies fed back by the terminal (including the cookies information corresponding to App1 and the cookies information corresponding to App 2), the server finds the cookies information corresponding to App2 according to the name of App2, so as to obtain the download channel information of App2 in the cookies information.
According to the embodiment of the invention, the Cookies information containing the downloading channel information is stored in the preset domain name, and the Cookies information sharing mode under the same domain name is utilized, so that all the Cookies information under the same domain name can be obtained when the application program is operated, and the downloading channel information of the application program can be accurately obtained from the Cookies information, and the problem that the existing downloading channel identification is not accurate enough is solved.
A second embodiment of the present invention provides a method for identifying an application download channel, as shown in fig. 2, including the following specific steps:
step S21, generating Cookies information corresponding to the application program according to the Web activity page where the application program is located;
step S22, when the user clicks the application program download button of the Web activity page, the Cookies information is written into the preset domain name of the browser of the terminal by using the open interface of the Web activity page; the cookies information includes: channel key information corresponding to the application program, and download channel information corresponding to the channel key information; the preset domain name of the browser is the same as the domain name to which the URL of the Web activity page belongs; in this step, the application program may be an App applied to the IOS system, and the browser is specifically Safari;
in this step, in the implementation process, the following may be specifically mentioned: sending the cookies information to a preset domain name of a browser of the terminal through an Application Programming Interface (API) opened by a Web active page, so as to write the cookies information into the preset domain name for storage.
Step S23, receiving all Cookies information which is fed back by the terminal and is obtained from the preset domain name of the browser when the application program is operated;
step S24, according to the application program operated by the terminal, channel key information corresponding to the application program is obtained from all the cookies information, and downloading channel information corresponding to the channel key information is obtained by utilizing the channel key information;
in this step, when the terminal runs App2, the server receives the name or ID of running App2 fed back by the terminal, acquires key information corresponding to the name of App2 from all cookies according to the name, or acquires key information corresponding to the ID of App2 from all cookies according to the ID of App2, and then acquires application download channel information corresponding to the key information from the cookie information according to the key information.
In the embodiment of the invention, the channel key information corresponding to the application program and the downloading channel information corresponding to the channel key information are written into the cookies information, so that the channel key information corresponding to the application program can be obtained from the cookies information when the application program is operated, and the downloading channel information is decrypted by using the obtained channel key information, thereby more accurately obtaining the downloading channel of the application program and solving the problem that the existing downloading channel is not accurately identified.
A third embodiment of the present invention provides a method for identifying an application download channel, as shown in fig. 3, where the method includes:
step S31, when the application program is clicked and downloaded in the Web activity page, the Cookies information sent by the server side is received, the received Cookies information is stored in the preset domain name of the browser, and the browser jumps to the application store to finish the downloading of the application program; the preset domain name of the browser is the same as the domain name to which the URL of the Web activity page belongs;
in this step, the application program is specifically an App applied to the IOS system, and the browser is specifically Safari.
Step S32, when the application program is running, reading a preset URL, and obtaining all cookies information in the preset domain name which is the same as the domain name of the preset URL according to the domain name of the preset URL;
in this step, taking the IOS system as an example, when running an App, the App executes a code prepared in advance, implicitly (without displaying a User Interface) opens a view controller SFSafariViewController, and accesses a predetermined URL agreed in advance, and the domain name of the predetermined URL is the same as that of an active page where the App is located; because the SFSafariViewController and the Safari have the characteristic of communicating with cookies under the domain name, the SFSafariViewController acquires all the cookie information of the domain name when accessing a preset URL; for example: after App1 and App2 are downloaded, and the domain name of the Web activity page where App1 is located is the same as that of the Web activity page where App2 is located, for example, both the domain names are. 58.com, the generated cookies information corresponding to App1 and the generated cookies information corresponding to App2 are both stored in the domain name. 58. com; when the App2 is running, the terminal accesses a URL with a domain name of 58.com by using sfsafari view controller according to a predetermined convention, and then the terminal acquires all the cookies information in the 58.com, including the cookies information corresponding to the App1 and the cookies information corresponding to the App 2.
And step S33, sending all the obtained Cookies information to a server. In this step, the cookies include channel key information corresponding to the application program, and download channel information corresponding to the channel key information. Examples include: the key value of the channel corresponding to App1 and the channel value corresponding to the key value of the channel, and the key value of the channel corresponding to App2 and the channel value corresponding to the key value of the channel.
In the embodiment of the invention, the received cookies information is stored in the preset domain name, so that when the application program is operated, the preset domain name can be accessed through the view controller to obtain the cookies information from the preset domain name, and the downloading channel information corresponding to the application program is directly obtained from the cookies information, thereby solving the problem that the existing downloading channel is not accurately identified.
A fourth embodiment of the present invention provides an apparatus for identifying an application download channel, as shown in fig. 4, including:
the generating module 11 is configured to generate corresponding cookies information according to the Web activity page where the application program is located;
the first sending module 12 is configured to send the cookies information to the terminal, so as to store the cookies information in a predetermined domain name of a terminal browser; the preset domain name of the browser is the same as the domain name to which the URL of the Web activity page belongs;
a receiving module 13, configured to receive all cookie information obtained from a predetermined domain name of the browser when the application is running and fed back by the terminal;
and the first obtaining module 14 is configured to obtain, according to the application program operated by the terminal, downloading channel information corresponding to the application program from all the cookies information.
According to the embodiment of the invention, the generation module is used for generating the cookies containing the downloading channel information, the first sending module is used for sending the cookies to the terminal to be stored in the preset domain name, and the sharing mode of the cookies under the same domain name is used, so that all the cookies under the same domain name can be obtained when the application program is operated, the downloading channel information of the application program can be accurately obtained from the cookies information, and the problem that the existing downloading channel identification is not accurate enough is solved.
A fifth embodiment of the present invention provides an apparatus for identifying an application download channel, as shown in fig. 4, including: the system comprises a generating module 11, a first sending module 12, a receiving module 13 and a first obtaining module 14;
the generating module 11 is configured to generate corresponding cookies information according to the Web activity page where the application program is located;
the first sending module 12 is configured to write the cookie information into a predetermined domain name of a browser of the terminal by using an open interface of a Web active page when a user clicks an application download button of the Web active page; the cookies information comprises channel key information corresponding to the application program and downloading channel information corresponding to the channel key information;
a receiving module 13, configured to receive all cookie information obtained from a predetermined domain name of the browser when the application is running and fed back by the terminal;
and the first obtaining module 14 is configured to obtain channel key information corresponding to the application program from all the cookies according to the application program run by the terminal, and obtain download channel information corresponding to the channel key information by using the channel key information.
In the embodiment of the invention, the channel key information corresponding to the application program and the downloading channel information corresponding to the channel key information are written into the cookies information by using the first sending module, so that when the application program runs, the channel key information corresponding to the application program is obtained from the cookies information by using the first obtaining module, and the downloading channel information is decrypted by using the channel key information, thereby more accurately obtaining the downloading channel of the application program and solving the problem that the existing downloading channel is not accurately identified.
A sixth embodiment of the present invention provides an apparatus for identifying an application download channel, as shown in fig. 5, including: a storage module 21, an acquisition module 22 and a sending module 23,
the storage module 21 is configured to receive cookie information sent by a server when an application program is clicked and downloaded in a Web active page, store the received cookie information in a predetermined domain name of a browser, and jump to an application store to complete downloading of the application program; the preset domain name of the browser is the same as the domain name to which the URL of the Web activity page belongs;
the second obtaining module 22 is configured to, when the application program is running, read a predetermined URL, and obtain, according to a domain name of the predetermined URL, all pieces of cookie information in the predetermined domain name that are the same as the domain name of the predetermined URL;
and the second sending module 23 is configured to send all the obtained cookies information to the server. The cookies comprise channel key information corresponding to the application program and downloading channel information corresponding to the channel key information.
In the embodiment of the invention, the received cookies information is stored in the preset domain name by using the storage module, so that when the application program runs, the view controller is started by using the second acquisition module, the preset domain name is accessed by using the view controller, the cookies information is acquired from the preset domain name, and the downloading channel information corresponding to the application program is directly acquired from the cookies information, thereby solving the problem that the existing downloading channel identification is not accurate enough.
A seventh embodiment of the present invention provides a server, as shown in fig. 6, including a memory 1, a processor 2, and a communication bus 3; the communication bus 3 is used for realizing connection communication between the processor 2 and the memory 1;
specifically, in the embodiment of the present invention, the Processor 2 may be a general-purpose Processor, such as a Central Processing Unit (CPU), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement the embodiment of the present invention. Wherein the memory is used for storing executable instructions of the processor;
a memory 1 for storing the program code and transferring the program code to the processor. The Memory may include Volatile Memory (Volatile Memory), such as Random Access Memory (RAM); the Memory may also include a Non-Volatile Memory (Non-Volatile Memory), such as a Read-Only Memory (ROM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, HDD), or a Solid-State Drive (SSD); the memory may also comprise a combination of memories of the kind described above.
Specifically, in the embodiment of the present invention, the processor is configured to execute a program for identifying an application program download channel stored in the memory, and when the program for identifying an application program download channel is executed by the processor, the following method steps are implemented:
step one, generating corresponding Cookies information according to a Web activity page where an application program is located;
step two, sending the Cookies information to a terminal to be stored in a preset domain name of a terminal browser; the preset domain name of the browser is the same as the domain name to which the URL of the Web activity page belongs;
receiving all Cookies information which is fed back by a terminal and is obtained from a preset domain name of the browser when the application program is operated;
and step four, acquiring downloading channel information corresponding to the application program from all the Cookies information according to the application program operated by the terminal.
An eighth embodiment of the present invention provides a terminal, which is combined with fig. 7, and includes a memory 1, a processor 2, and a communication bus 3; the communication bus 3 is used for realizing connection communication between the processor 2 and the memory 1;
specifically, in the embodiment of the present invention, the Processor 2 may be a general-purpose Processor, such as a Central Processing Unit (CPU), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement the embodiment of the present invention. Wherein the memory is used for storing executable instructions of the processor;
a memory 1 for storing the program code and transferring the program code to the processor. The Memory may include Volatile Memory (Volatile Memory), such as Random Access Memory (RAM); the Memory may also include a Non-Volatile Memory (Non-Volatile Memory), such as a Read-Only Memory (ROM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, HDD), or a Solid-State Drive (SSD); the memory may also comprise a combination of memories of the kind described above.
Specifically, in the embodiment of the present invention, the processor is configured to execute a program for identifying an application program download channel stored in the memory, and when the program for identifying an application program download channel is executed by the processor, the following method steps are implemented:
step one, when an application program is clicked and downloaded in a Web activity page, receiving cookie information sent by a server, storing the received cookie information in a preset domain name of a browser, and jumping to an application store to finish downloading of the application program; the preset domain name of the browser is the same as the domain name to which the URL of the Web activity page belongs;
reading a preset URL (uniform resource locator) when the application program is operated, and acquiring all Cookies information in the preset domain name which is the same as the domain name of the preset URL according to the domain name of the preset URL;
and step three, sending all the obtained Cookies information to a server.
A ninth embodiment of the invention provides a storage medium having stored thereon a computer program which, when executed by a processor, performs the method steps of:
step one, generating corresponding Cookies information according to a Web activity page where an application program is located;
step two, sending the Cookies information to a terminal to be stored in a preset domain name of a terminal browser; the preset domain name of the browser is the same as the domain name to which the URL of the Web activity page belongs;
receiving all Cookies information which is fed back by a terminal and is obtained from a preset domain name of the browser when the application program is operated;
and step four, acquiring downloading channel information corresponding to the application program from all the Cookies information according to the application program operated by the terminal.
Or the following method steps are realized:
step one, when an application program is clicked and downloaded in a Web activity page, receiving cookie information sent by a server, storing the received cookie information in a preset domain name of a browser, and jumping to an application store to finish downloading of the application program; the preset domain name of the browser is the same as the domain name to which the URL of the Web activity page belongs;
reading a preset URL (uniform resource locator) when the application program is operated, and acquiring all Cookies information in the preset domain name which is the same as the domain name of the preset URL according to the domain name of the preset URL;
and step three, sending all the obtained Cookies information to a server.
A tenth embodiment of the present invention provides a system for identifying an application download channel, including: a client and a server; referring to fig. 8, still taking the IOS system as an example, the specific identification process is as follows:
the server is used for making a Web activity page for guiding the user to download App, and the URL of the Web activity page is attributed to a specific domain name, for example, the domain name of the URL of the Web activity page is 58. com.
Generating corresponding cookies information according to the Web activity page where the application program is located and issuing the cookies information to the terminal;
and guiding the user to click a button for downloading the App on the Web activity page through the promotion activity.
When a user clicks a button, a server writes cookie information into a specific domain name of a terminal browser Safari through an interface API opened by Web, for example, writes the cookie information into the domain name of 58.com, and jumps to a page of an App to be downloaded in the Appstore; wherein, the cookies include: a specific key value for a key for identifying a channel; a value of the channel for identifying the channel.
The user downloads the App in the Appstore.
After any User opens the App, the App executes a code prepared in advance, implicitly (without displaying a UI, i.e., a User Interface) opens an sfsafari view controller, and accesses a specific pre-agreed reporting URL, where the URL and the active page belong to the same specific domain name, such as the domain names belonging to. 58. com.
Because sfsafari viewcontroller and Safari have the property of communicating with cookies under the domain name, sfsafari viewcontroller will bring all the cookie information in the. 58.com domain name when it accesses a particular reporting URL.
The service side obtains all the cookies information through the reported URL accessed by the SFSafariViewController, obtains a specific key value corresponding to the App from all the cookies information through the name or the ID of the App, and obtains the value of the channel in the cookies information by using the specific key value, so that the channel of the App downloaded by the user is known.
According to the method and the device, the Cookies information containing the downloading channel information is stored in the preset domain name of the terminal browser, when the App is operated for the first time, all the Cookies information in the preset domain name is read, the downloading channel information corresponding to the App is obtained according to the Cookies information, the method and the device are accurate and reliable, and the problem that the App downloading channel cannot be accurately identified in the prior art is solved.
It should be noted that, in this document, 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 may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (14)

1. A method for identifying an application download channel, the method comprising the steps of:
generating cookie information corresponding to the application program according to the Web activity page where the application program is located;
sending the Cookies information to a terminal to be stored in a preset domain name of a terminal browser; the preset domain name of the browser is the same as the domain name to which the Uniform Resource Locator (URL) of the Web activity page belongs;
receiving all Cookies information which is fed back by the terminal and is obtained from the preset domain name of the browser when the terminal runs the application program;
and acquiring downloading channel information corresponding to the application program from all the Cookies information according to the application program operated by the terminal.
2. The method for identifying an application download channel as claimed in claim 1, wherein sending the cookies information to the terminal for storage in a predetermined domain name of a browser of the terminal, specifically comprises:
when a user clicks an application program downloading button of a Web activity page, writing the Cookies information into a preset domain name of a browser of the terminal by using an open interface of the Web activity page;
the cookies information includes: channel key information corresponding to the application program, and download channel information corresponding to the channel key information.
3. The method for identifying an application program download channel according to claim 2, wherein acquiring download channel information corresponding to the application program from the information of all cookies according to the application program run by the terminal specifically comprises:
and according to the application program operated by the terminal, acquiring channel key information corresponding to the application program from all the Cookies information, and acquiring downloading channel information corresponding to the channel key information by using the channel key information.
4. A method of identifying an application download channel, the method comprising:
when an application program is clicked and downloaded in a Web activity page, cookie information sent by a server side is received, the received cookie information is stored in a preset domain name of a browser, and the browser jumps to an application store to finish downloading of the application program; the preset domain name of the browser is the same as the domain name to which the URL of the Web activity page belongs;
when the application program is operated, reading a preset URL, and obtaining all the cookies information in the preset domain name which is the same as the domain name of the preset URL according to the domain name of the preset URL;
and sending the obtained information of all the cookies to a server.
5. The method of identifying an application download channel as recited in claim 4, wherein the cookies comprise channel key information corresponding to the application and download channel information corresponding to the channel key information.
6. An apparatus for identifying an application download channel, comprising:
the generating module is used for generating corresponding Cookies information according to the Web activity page where the application program is located;
the first sending module is used for sending the Cookies information to the terminal so as to store the Cookies information in a preset domain name of a terminal browser; the preset domain name of the browser is the same as the domain name to which the URL of the Web activity page belongs;
the receiving module is used for receiving all Cookies information which is fed back by the terminal and is obtained from the preset domain name of the browser when the application program is operated;
and the first acquisition module is used for acquiring the downloading channel information corresponding to the application program from all the Cookies information according to the application program operated by the terminal.
7. The apparatus for identifying an application download channel as recited in claim 6, wherein the sending module is specifically configured to: when a user clicks an application program downloading button of a Web activity page, writing the Cookies information into a preset domain name of a browser of the terminal by using an open interface of the Web activity page; the cookies include channel key information corresponding to the application program, and download channel information corresponding to the channel key information.
8. The apparatus for identifying an application download channel as claimed in claim 6, wherein the acquiring module is specifically configured to acquire channel key information corresponding to the application from the all cookies according to the application running on the terminal, and acquire the download channel information corresponding to the channel key information using the channel key information.
9. An apparatus for identifying an application download channel, comprising:
the storage module is used for receiving the Cookies information sent by the server side when the application program is clicked and downloaded in the Web activity page, storing the received Cookies information in a preset domain name of the browser, and jumping to an application store to finish downloading of the application program; the preset domain name of the browser is the same as the domain name to which the Uniform Resource Locator (URL) of the Web activity page belongs;
the second acquisition module is used for reading a preset URL (uniform resource locator) when the application program is operated, and acquiring all Cookies information in the preset domain name which is the same as the domain name of the preset URL according to the domain name of the preset URL;
and the second sending module is used for sending the obtained information of all the cookies to the server side.
10. The apparatus for identifying an application download channel as recited in claim 9, wherein the cookies comprise channel key information corresponding to the application, and download channel information corresponding to the channel key information.
11. A server, characterized in that the server comprises a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the method of identifying an application download channel according to any of claims 1-3.
12. A terminal, characterized in that the terminal comprises: memory, processor and computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the method of identifying an application download channel according to any of claims 4 to 5.
13. A storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of identifying an application download channel according to any of claims 1-3.
14. A storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of identifying an application download channel according to any of the claims 4-5.
CN201811203970.6A 2018-10-16 2018-10-16 Method for identifying application program downloading channel and related equipment Active CN109471638B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811203970.6A CN109471638B (en) 2018-10-16 2018-10-16 Method for identifying application program downloading channel and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811203970.6A CN109471638B (en) 2018-10-16 2018-10-16 Method for identifying application program downloading channel and related equipment

Publications (2)

Publication Number Publication Date
CN109471638A CN109471638A (en) 2019-03-15
CN109471638B true CN109471638B (en) 2021-08-20

Family

ID=65665108

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811203970.6A Active CN109471638B (en) 2018-10-16 2018-10-16 Method for identifying application program downloading channel and related equipment

Country Status (1)

Country Link
CN (1) CN109471638B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112256520B (en) * 2020-09-17 2023-12-15 北京一亩田新农网络科技有限公司 Method and device for monitoring webpage distribution channel of application program

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102682009A (en) * 2011-03-11 2012-09-19 腾讯科技(北京)有限公司 Method and system for logging in webpage
CN106375411A (en) * 2016-08-30 2017-02-01 乐视控股(北京)有限公司 Method and device for acquiring operation data of browser

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6335657B2 (en) * 2014-05-30 2018-05-30 キヤノン株式会社 Authority delegation system, method, authentication server system, and program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102682009A (en) * 2011-03-11 2012-09-19 腾讯科技(北京)有限公司 Method and system for logging in webpage
CN106375411A (en) * 2016-08-30 2017-02-01 乐视控股(北京)有限公司 Method and device for acquiring operation data of browser

Also Published As

Publication number Publication date
CN109471638A (en) 2019-03-15

Similar Documents

Publication Publication Date Title
CN109471738B (en) Method for identifying application program downloading channel and related equipment
US10108501B2 (en) Terminal backup and recovery method
CN110825424A (en) Channel tracing method and related device
US8352442B2 (en) Determination of an updated data source from disparate data sources
CN113067853A (en) Data pushing method and device, electronic equipment and storage medium
CN110769052A (en) Channel information determination method and device, storage medium and electronic device
CN107370628B (en) Log processing method and system based on embedded points
CN109471638B (en) Method for identifying application program downloading channel and related equipment
CN110825600B (en) Page information processing method, server and page display device
CN109656592B (en) Card management method, device, terminal and computer readable storage medium
CN111506496A (en) Test data acquisition method and device, electronic equipment and storage medium
CN111443920B (en) Frame migration method and device
CN105450513A (en) Method for filing mail attachments, and cloud storage server
CN105224870A (en) Suspected virus applies the method and apparatus uploaded
CN110727895A (en) Sensitive word sending method and device, electronic equipment and storage medium
CN109710128B (en) Shortcut key display method and device
CN111400091A (en) Factory setting restoring method, factory setting restoring device and mobile terminal
CN106210025B (en) Application program download determines method and device
CN107688951B (en) Information pushing method and device
CN114185804A (en) Interface testing method and device and terminal equipment
CN111008345B (en) Method and system for accessing fixed-point access URL
CN108804195B (en) Page display method and device, server and client
CN110597766B (en) Data transmission method and device
CN111782291A (en) Test page starting method and device
CN110750275A (en) APP installation method and device and storage equipment

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