CN111737334A - Data reporting method, device, equipment and storage medium - Google Patents

Data reporting method, device, equipment and storage medium Download PDF

Info

Publication number
CN111737334A
CN111737334A CN202010596088.3A CN202010596088A CN111737334A CN 111737334 A CN111737334 A CN 111737334A CN 202010596088 A CN202010596088 A CN 202010596088A CN 111737334 A CN111737334 A CN 111737334A
Authority
CN
China
Prior art keywords
target
reporting
data
parameter
click
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.)
Pending
Application number
CN202010596088.3A
Other languages
Chinese (zh)
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.)
WeBank Co Ltd
Original Assignee
WeBank 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 WeBank Co Ltd filed Critical WeBank Co Ltd
Priority to CN202010596088.3A priority Critical patent/CN111737334A/en
Publication of CN111737334A publication Critical patent/CN111737334A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a data reporting method, a device, equipment and a storage medium, wherein the method comprises the steps of obtaining a target platform corresponding to a data reporting instruction to be reported, and determining a target processing subclass corresponding to the target platform in a file processing packet; acquiring a target click parameter in user click data through a target data request interface in the target processing subclass, and converting the target click parameter into a target reporting parameter based on a data conversion rule; and reporting the target reporting parameters to the target platform in a target reporting mode in the target processing subclass. The invention decouples the data reporting logic based on the current data reporting system, then calls different data processing subclasses for different reporting platforms, and can access a new reporting platform by adding a new data processing subclass in the file processing packet, thereby improving the reusability and expansibility of the data reporting system and improving the user experience.

Description

Data reporting method, device, equipment and storage medium
Technical Field
The present invention relates to the field of financial technology (Fintech), and in particular, to a data reporting method, apparatus, device, and computer-readable storage medium.
Background
With the development of computer technology, more and more technologies are applied in the financial field, the traditional financial industry is gradually changing to financial technology (Finteh), and the data reporting technology is no exception, but higher requirements are also put forward on the data reporting technology due to the requirements of security and real-time performance of the financial industry. At present, different data reporting systems need to be developed for different advertisement platforms, and when an advertisement platform is newly added, the codes of the original data reporting system need to be modified, so that the current data reporting system has poor reusability and expansibility, and the user experience is reduced.
Disclosure of Invention
The invention mainly aims to provide a data reporting method, a data reporting device, data reporting equipment and a computer readable storage medium, and aims to solve the technical problem that the existing data reporting system is poor in reusability and expansibility.
In order to achieve the above object, the present invention provides a data reporting method, which comprises the following steps:
when a data reporting instruction triggered by a user click operation is detected, acquiring a target platform corresponding to the data reporting instruction and reporting, and determining a target processing subclass corresponding to the target platform in a file processing packet;
acquiring a target click parameter in user click data through a target data request interface in the target processing subclass, and converting the target click parameter into a target reporting parameter based on a data conversion rule in the target processing subclass;
and reporting the target reporting parameters to the target platform in a target reporting mode in the target processing subclass.
Optionally, when a data reporting instruction triggered by a user click operation is detected, the data reporting method obtains a target platform reported by the data reporting instruction, and determines a target processing subclass corresponding to the target platform in a file processing package, where the step of determining the target processing subclass corresponding to the target platform specifically includes:
when a data reporting instruction triggered by a user click operation is detected, acquiring a target platform corresponding to the data reporting instruction and reporting, and judging whether a target processing subclass corresponding to the target platform exists in the processing file packet or not;
if the target processing subclass does not exist in the processing file packet, acquiring a target demand document corresponding to the target platform, and calling a preset processing class template;
and generating a target processing subclass corresponding to the target platform based on the target request data, the data conversion rule, the target reporting mode and the processing class template in the target demand document.
Optionally, before the step of reporting the target reporting parameter to the target platform by using the target reporting manner in the target processing sub-class, the method further includes:
and generating a report record of the target report parameter according to the user click data and the target report parameter, and storing the report record and the report state information of the target report parameter into a data storage table in the file processing packet in an associated manner.
Optionally, after the step of reporting the target reporting parameter to the target platform by using the target reporting manner in the target processing sub-class, the method further includes:
acquiring an initial reporting result fed back by the target platform based on a target reporting parameter, and analyzing the initial reporting result into a recognizable target reporting result through a data analysis rule in the target processing subclass;
and updating the reporting state information corresponding to the target reporting parameters in the data storage table according to the target reporting result.
Optionally, the step of updating the reporting state information corresponding to the target reporting parameter in the data storage table according to the target reporting result specifically includes:
and updating the reporting state information corresponding to the target reporting parameter in the data storage table to be successful in reporting when the reporting state result is successful in reporting.
Optionally, the step of updating the reporting state information corresponding to the target reporting parameter in the data storage table according to the target reporting result specifically includes:
when the report state result is report failure, updating the report state information corresponding to the target report parameter in the data storage table to report failure;
and acquiring the target reporting parameters in the data storage table, and carrying out secondary reporting on the target reporting parameters in the target reporting mode.
Optionally, the step of obtaining a target click parameter in user click data through a target data request interface in the target processing subclass, and converting the target click parameter into a target reporting parameter based on a data conversion rule in the target processing subclass specifically includes:
acquiring a click ID, a click position parameter and a click type parameter in the user click data through the target data request interface;
splicing the click ID, the click position and the click type parameter to generate a target click parameter through a splicing report template in the target processing subclass;
and converting the target click parameter into a target reporting parameter which can be identified by the target platform based on the data conversion rule.
In addition, to achieve the above object, the present invention further provides a data reporting apparatus, including:
the target subclass determining module is used for acquiring a target platform reported corresponding to a data reporting instruction when the data reporting instruction triggered by the user click operation is detected, and determining a target processing subclass corresponding to the target platform in a file processing packet;
a report parameter generating module, configured to obtain a target click parameter in user click data through a target data request interface in the target processing subclass, and convert the target click parameter into a target report parameter based on a data conversion rule in the target processing subclass;
and the reporting parameter reporting module is used for reporting the target reporting parameters to the target platform in a target reporting mode in the target processing subclass.
In addition, to achieve the above object, the present invention further provides a data reporting apparatus, where the data reporting apparatus includes: the data reporting program is executed by the processor to realize the steps of the data reporting method.
In addition, to achieve the above object, the present invention further provides a computer-readable storage medium, where a data reporting program is stored, and when the data reporting program is executed by a processor, the steps of the data reporting method are implemented.
The invention provides a data reporting method, which comprises the steps of acquiring a target platform corresponding to a data reporting instruction when the data reporting instruction triggered by a user click operation is detected, and determining a target processing subclass corresponding to the target platform in a file processing packet; acquiring a target click parameter in user click data through a target data request interface in the target processing subclass, and converting the target click parameter into a target reporting parameter based on a data conversion rule in the target processing subclass; and reporting the target reporting parameters to the target platform in a target reporting mode in the target processing subclass. Through the mode, the data reporting logic is decoupled based on the current data reporting system, the corresponding processing subclasses are generated according to the data request interfaces, the data conversion rules and the reporting modes corresponding to the platforms of the data to be reported, different reporting platforms call different data processing subclasses, and the new reporting platform can be accessed by adding the new data processing subclasses in the file processing packet, so that the reusability and the expansibility of the data reporting system are improved, the user experience is improved, and the technical problem that the existing data reporting system is poor in reusability and expansibility is solved.
Drawings
FIG. 1 is a schematic diagram of an apparatus architecture of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a data reporting method according to a first embodiment of the present invention;
FIG. 3 is a schematic diagram of a current advertisement data reporting process;
fig. 4 is a schematic diagram of a data reporting process according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention.
The data reporting device in the embodiment of the invention can be a PC or a server device, and a Java virtual machine runs on the data reporting device.
As shown in fig. 1, the data reporting device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration of the apparatus shown in fig. 1 is not intended to be limiting of the apparatus and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, the memory 1005, which is a kind of computer storage medium, may include an operating system, a network communication module, a user interface module, and a data reporting program.
In the device shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; the processor 1001 may be configured to call a data reporting procedure stored in the memory 1005, and perform the following operations in the data reporting method.
Based on the hardware structure, the embodiment of the data reporting method is provided.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of a data reporting method according to the present invention, where the data reporting method includes:
step S10, when a data reporting instruction triggered by a user click operation is detected, acquiring a target platform reported by the data reporting instruction correspondingly, and determining a target processing subclass corresponding to the target platform in a file processing package;
the current marketing advertisement data reporting system is divided into 3 subsystems: the system comprises a FRONT subsystem, a CORE subsystem and an ADM subsystem. The FRONT subsystem is used for providing user interaction, does not have the authority of accessing a background database, and is generally deployed in a public network area. The CORE subsystem is used for interacting with a marketing service subsystem (such as platforms like WeChat or express hands) and has the right of accessing a background database, and is deployed in an intranet area generally. The ADM subsystem is used for reporting data to a system administrator for system configuration management, has the authority of accessing a database, and is generally deployed in an intranet area. The specific scene is as follows: an advertisement is required to be set on a head bar, a fast hand or a hundred degree of a certain product, and an administrator sets advertisement display information through an ADM subsystem and sends the advertisement display information to a platform such as a WeChat platform, a head bar platform, a fast hand platform or a hundred degree platform for display; a user clicks through an APP, an applet, an H5 page or a public number and the like corresponding to WeChat, a headline, a fast hand or a hundred degree arranged on a terminal to check advertisements, and the FRONT subsystem monitors that user click data are fed back to the CORE subsystem when the user click operation is monitored; when the CORE subsystem receives the user click data sent by the FRONT subsystem, according to the data conversion specification corresponding to the platform (such as WeChat) for displaying the advertisement, the reporting parameters are extracted from the user click data and sent to the target platform. Wherein the advertisement click id is that after the promotion link is put on the advertisement platform, the user can see the advertisement at the putting position, when the click advertisement jumps to the promotion link, the advertisement platform generates an advertisement click id attached to the tail of the promotion link, taking the promotion link https:// xxx.com as an example, and after the user clicks the advertisement, the actual jump link becomes https:// xxx.com? The CLICK _ ID is _ CLICK _ ID, ad CLICK IDs attached to different advertisement platforms are defined differently, the hectic advertisement platform is defined as bd _ vid, and the express advertisement platform is defined as callback and the like. And (3) advertisement conversion behavior: the user clicks the advertisement to enter the promotion link, when the expected action of the service is completed, the marketing system maps the action as a certain conversion action of the advertisement platform, taking the example that the micro business loan H5 link is put on the micro letter advertisement platform, the user clicks the advertisement to enter the micro business loan H5 page, after filling in the mobile phone number and the verification code to complete the remaining action, the marketing system maps the remaining action as the 'appointment' action of the micro letter advertisement platform, and the user conversion types are distinguished. And the advertisement data is reported in such a way that when a user clicks the advertisement and finishes an expected service action in the promotion link, the marketing system reports the advertisement click id and the mapped conversion behavior to the advertisement platform together, the advertisement platform provides advertisement conversion statistical analysis, and the service can optimize an advertisement putting plan according to a related report and improve the promotion effect. When the advertisement channel is popularized for the same product, a plurality of promotion links are generally generated for putting a plurality of advertisement platforms, therefore, an advertisement channel parameter, namely channel _ id, is added in the promotion links for the marketing subsystem to distinguish the promotion links of which advertisement platforms the advertisement conversion behaviors come from, so that the advertisement click id and the advertisement conversion behaviors are reported to the advertisement platforms. The advertising marketing channel provides various advertising plans for the advertising platform, and a promotion link is associated with one advertising plan when an advertisement is put. When the same product puts advertisements on a certain advertisement platform, multiple promotion links are generally generated for associating different advertisement plans, so that an advertisement marketing channel parameter, namely efs _ channel _ id, is added in the promotion links for a marketing subsystem to distinguish the specific promotion link from which the advertisement conversion behavior comes. As shown in fig. 3, the advertisement data reporting process includes: the CORE subsystem (inaccessible external network) receives an event message of an upstream service system, and if the advertisement click id is not null, the user action is judged to be originated from one advertisement click; if the user action is mapped with a certain advertisement conversion behavior, judging that the user action is calculated as one-time advertisement conversion, and reporting the conversion behavior data; if the advertisement channel is mapped to a certain advertisement platform, judging that the advertisement is converted and reported to the platform. The CORE subsystem sends the key parameters to be reported to the FRONT subsystem (accessible external network), initiates an http request to the advertisement platform to complete the report of the advertisement data, and then reports the result of the report of the advertisement data to the database. Namely, the process of the existing marketing system for reporting the advertisement data is as follows: firstly, a marketing CORE subsystem maps a user action into a certain advertisement conversion behavior in a Topic1Handler, and sends the advertisement conversion behavior together with an advertisement click id, an advertisement marketing channel and an advertisement channel to a marketing FRONT subsystem; secondly, the marketing FRONT subsystem judges which platform the marketing FRONT subsystem reports to according to the advertisement channel in the Topic2Handler, according to the advertisement data report API specification provided by the advertisement platform, assembles and initiates an http request to complete data report, and sends the report result to the marketing CORE subsystem; and thirdly, the marketing CORE subsystem puts the reported results into a warehouse in a TopicHandler 3. Therefore, at present, different data reporting systems need to be developed for different advertisement platforms, and each new type of advertisement platform needs to modify 3 topichandlers of the marketing CORE subsystem and the FRONT subsystem, which is poor in expansibility. That is, the existing advertisement data reporting system of the marketing system directly writes the reporting code corresponding to the advertisement platform into the data reporting system, and the reusability is poor. In addition, adding an advertisement platform type requires modifying the codes of the CORE subsystem and the FRONT subsystem, and the expansibility is poor. In order to solve the above problems, the present invention decouples the data reporting logic based on the current data reporting system, and generates corresponding processing subclasses according to the data request interfaces, data conversion rules and reporting modes corresponding to the platforms of the data to be reported. Different processing subclasses in the file processing packet are called by butting different reporting platforms, and a new reporting platform can be accessed by adding a new processing subclass in the file processing packet, so that the reusability and the expansibility of the data reporting system are improved. Specifically, through a jar packet of a file data packet, for example, cn.webbank.ad: we-ad-postback:1.0.4, the CORE subsystem only needs to designate a platform identifier corresponding to an advertisement platform, a data conversion rule and a click id corresponding to a user click operation as entry parameters, and calls a jar packet postback method, the jar packet can automatically assemble a corresponding advertisement data reporting url and send parameters to a FRONT subsystem, the FRONT subsystem is used as a channel for accessing an external network, and after a report result is obtained, the jar packet stores the report result in a warehouse. When a new advertisement platform is added for data reporting, an implementation subclass of an abstract PostBack abstract class is newly added in a we-ad-postback packet. By decoupling the logic of advertisement data reporting from the CORE subsystem and the FRONT subsystem, we-ad-postback packages can be multiplexed in different marketing systems. When a data reporting instruction triggered by the action of clicking the advertisement link of the target platform by the user is detected, the target platform to be reported is determined, and a target processing subclass for reporting data is determined in the database.
Step S20, obtaining a target click parameter in user click data through a target data request interface in the target processing subclass, and converting the target click parameter into a target reporting parameter based on a data conversion rule in the target processing subclass;
in this embodiment, the advertisement data HTTP request is sent to the FRONT subsystem through the notifyffrontlogic interface of the target data request interface. Specifically, notifyfontlogic interface declares notifyfontget and notifyfontget methods, and uses two interface methods (POST/GET) to match the URL of advertisement data and target click parameters, such as advertisement click ID (i.e. advertisement page trigger link on each platform) and user behavior data (e.g. click, registration identity card number, mobile phone number, etc.); according to a data conversion rule corresponding to the target platform, the user behavior data is converted into corresponding target reporting parameters, for example, the user click parameters are converted into corresponding registration behavior data or click behavior data, and the registration identity information of the user does not need to be reported; and then sending the advertisement click ID and the converted target reporting parameter to an FRONT subsystem which can access an external network, and receiving response data fed back by the advertisement platform based on the advertisement data reporting HTTP request through the FRONT subsystem, thereby initiating an advertisement data reporting HTTP request based on a target data request interface NotifyFrontLogic.
Wherein, the step S20 specifically includes:
acquiring a click ID, a click position parameter and a click type parameter in the user click data through the target data request interface;
splicing the click ID, the click position and the click type parameter to generate a target click parameter through a splicing report template in the target processing subclass;
and converting the target click parameter into a target reporting parameter which can be identified by the target platform based on the data conversion rule.
In this embodiment, the user click data includes a click ID for identifying a click advertisement platform (e.g., WeChat, express, or Baidu), a click location parameter (e.g., a top page of the platform or a middle page of a browser), and a click type parameter (e.g., different click types generated through channels such as WeChat public or applet). And after each parameter in the user click data is acquired through the target data request interface, calling a splicing reporting template (a splicing reporting URL template and a splicing reporting parameter template) in the file data packet, and integrating each parameter in the user click data to generate a target click parameter. And converting the target click parameters integrated by the data reporting system into target reporting parameters which are required and recognizable by the target platform according to the data conversion rule conversion required by the target platform.
Step S30, reporting the target reporting parameter to the target platform by a target reporting mode in the target processing subclass.
In this embodiment, a target reporting mode in the target processing subclass is called, where the reporting mode includes two methods, namely, adspos tbackutilis.getcall and adspos tbackutilis.postcall, a jar package exposes two entry methods, namely, getCall and postCall, to an administrator of a data reporting system, and the two entry methods are respectively used for advertisement data reporting in a get request mode and a post request mode, and the administrator can determine the target reporting mode in the two methods based on a target platform support or a common method. That is, the data reporting system only needs to define key information such as advertisement click id (traceid), reporting behavior (conversionType), reporting platform (platform), reporting advertiser token (accesstoken), and the like, and does not need to perform a specific implementation step of reporting advertisement data. Therefore, the advertisement data reporting is decoupled from the service subsystems, the advertisement data reporting logic of one jar packet can be multiplexed in a plurality of service subsystems, and the portability, the reusability and the expansibility of the data reporting system are improved.
The embodiment provides a data reporting method, which includes acquiring a target platform corresponding to a data reporting instruction when the data reporting instruction triggered by a user click operation is detected, and determining a target processing subclass corresponding to the target platform in a file processing packet; acquiring a target click parameter in user click data through a target data request interface in the target processing subclass, and converting the target click parameter into a target reporting parameter based on a data conversion rule in the target processing subclass; and reporting the target reporting parameters to the target platform in a target reporting mode in the target processing subclass. Through the mode, the data reporting logic is decoupled based on the current data reporting system, the corresponding processing subclasses are generated according to the data request interfaces, the data conversion rules and the reporting modes corresponding to the platforms of the data to be reported, different reporting platforms call different data processing subclasses, and the new reporting platform can be accessed by adding the new data processing subclasses in the file processing packet, so that the reusability and the expansibility of the data reporting system are improved, the user experience is improved, and the technical problem that the existing data reporting system is poor in reusability and expansibility is solved.
Further, a second embodiment of the data reporting method of the present invention is provided based on the first embodiment of the data reporting method of the present invention.
In this embodiment, the step S10 specifically includes:
when a data reporting instruction triggered by a user click operation is detected, acquiring a target platform corresponding to the data reporting instruction and reporting, and judging whether a target processing subclass corresponding to the target platform exists in the processing file packet or not;
if the target processing subclass does not exist in the processing file packet, acquiring a target demand document corresponding to the target platform, and calling a preset processing class template;
and generating a target processing subclass corresponding to the target platform based on the target request data, the data conversion rule, the target reporting mode and the processing class template in the target demand document.
In this embodiment, as shown in fig. 4, in order to further increase convenience of the data reporting system extension, a processing class template is provided for commonality of the advertisement platform, and characteristics of the advertisement platform to be added are defined, so as to generate data processing subclasses corresponding to the advertisement platforms. The processing type template comprises an initUrl (splicing reporting URL module), an initParams (splicing reporting parameter module), a save reporting record module, a notfiyFront (initiating reporting request module), a parseResCode (analyzing reporting result module), an update (updating reporting result module), and a data conversion module, namely, the acquired user click data is converted according to the data conversion rule defined by each advertisement. Corresponding data processing subclasses such as head bar, fast hand, hundred degrees, Tencent Guangdong point and the like can be prestored in the database, such as TencentAdsPostBack () corresponding to Tencent Guangdong point, WechatadsPostBack () corresponding to Wechat and PostBack () or BaidusAdsPostBack () corresponding to hundred degrees. Determining a corresponding target platform according to a platform parameter in a reporting parameter by an AdsPostBackutils & postCall/getCall method, calling a target processing subclass in a jar packet, namely an advertisement data reporting subclass, executing a postback method in the target processing subclass, and sequentially executing each module to finish the reporting of the target reporting parameter. Specifically, a corresponding target platform is determined according to a platform parameter in a data reporting instruction, whether a jar packet corresponding to the target platform exists in a database is judged, if the jar packet does not exist, it is indicated that a new advertisement platform needs to be docked, a calling processing class template is added in the database, initUrl (a splicing reporting URL module) and initParams (a splicing reporting parameter module) in the processing class template are overwritten based on target request data defined in a requirement document of the target platform, corresponding modules are determined to be generated in a plurality of methods of the template according to a data request mode and a data reporting mode corresponding to the new advertisement platform, a processing subclass corresponding to the new advertisement platform is generated in combination with a data conversion rule corresponding to the new advertisement platform, and therefore development of corresponding processing of the new platform subclass is completed based on the processing class.
Further, a third embodiment of the data reporting method of the present invention is provided based on the second embodiment of the data reporting method of the present invention.
In this embodiment, before the step S30, the method further includes:
and generating a report record of the target report parameter according to the user click data and the target report parameter, and storing the report record and the report state information of the target report parameter into a data storage table in the file processing packet in an associated manner.
In this embodiment, in order to further improve the accuracy and the success rate of data reporting, an oppc _ conversion table is newly created. The jar packet in the data reporting system registers SqlSessionFactory and OcpcConversionDao when the reporting system is started. The SqlSessionsFactory is used for connecting and configuring the Sql database, and the OcpcConversionDao is used for storing target reporting parameters and other information required by the data reporting system, such as user registration information (name, identity card number, mobile phone number, questionnaire survey result information and the like), into an ocpc _ conversion table. And storing the report records corresponding to the target report parameters and report state information (such as report success, report failure and the like) in an associated manner, so as to reduce repeated report of data according to the report records in the data storage table and timely detect the data which fails to report and carry out secondary report, thereby ensuring the success rate of data report.
After step S30, the method further includes:
acquiring an initial reporting result fed back by the target platform based on a target reporting parameter, and analyzing the initial reporting result into a recognizable target reporting result through a data analysis rule in the target processing subclass;
and updating the reporting state information corresponding to the target reporting parameters in the data storage table according to the target reporting result.
And updating the reporting state information corresponding to the target reporting parameter in the data storage table to be successful in reporting when the reporting state result is successful in reporting.
When the report state result is report failure, updating the report state information corresponding to the target report parameter in the data storage table to report failure;
and acquiring the target reporting parameters in the data storage table, and carrying out secondary reporting on the target reporting parameters in the target reporting mode.
In this embodiment, the jar packet further provides a corresponding response data parsing policy for parsing the report result according to the specification of the response data corresponding to the report result fed back by reporting the data on the different advertisement platforms. And when response data returned by the target platform based on the advertisement data reporting HTTP are received, the jar packet can determine a corresponding analysis strategy analysis reporting result based on the platform identification of the target platform. For example, 1 fed back by the WeChat platform indicates that the report is successful, and 0 fed back by the Baidu platform indicates that the report is successful. And calling an OcpcConversionDao method to store the analyzed reporting result and other information into an ocpc _ conversion table, and updating the state information of the reporting record corresponding to the target reporting parameter into a data storage table to be reported successfully when the reporting result is successful, so as to finish the reporting corresponding to the target reporting parameter. And when the reporting result is failure, carrying out secondary reporting on the target reporting parameters recorded in the data storage table until the target reporting parameters are reported successfully.
The present invention also provides a data reporting device, which includes:
the target subclass determining module is used for acquiring a target platform reported corresponding to a data reporting instruction when the data reporting instruction triggered by the user click operation is detected, and determining a target processing subclass corresponding to the target platform in a file processing packet;
a report parameter generating module, configured to obtain a target click parameter in user click data through a target data request interface in the target processing subclass, and convert the target click parameter into a target report parameter based on a data conversion rule in the target processing subclass;
and the reporting parameter reporting module is used for reporting the target reporting parameters to the target platform in a target reporting mode in the target processing subclass.
Further, the reporting parameter generating module specifically includes:
the click parameter acquisition unit is used for acquiring a click ID, a click position parameter and a click type parameter in the user click data through the target data request interface;
a target parameter generating unit, configured to splice the click ID, the click position, and the click type parameter to generate a target click parameter through a splice reporting template in the target processing subclass;
and the reporting parameter conversion unit is used for converting the target click parameter into a target reporting parameter which can be identified by the target platform based on the data conversion rule.
Further, the target subclass determining module specifically includes:
the target subclass judging unit is used for acquiring a target platform reported by the data reporting instruction correspondingly when the data reporting instruction triggered by the user clicking operation is detected, and judging whether a target processing subclass corresponding to the target platform exists in the processing file packet or not;
the target requirement acquisition unit is used for acquiring a target requirement document corresponding to the target platform and calling a preset processing class template if the target processing subclass does not exist in the processing file packet;
and the target subclass generating unit is used for generating a target processing subclass corresponding to the target platform based on the target request data, the data conversion rule, the target reporting mode and the processing class template in the target demand document.
Further, the data reporting apparatus further includes:
and the report record storage module is used for generating a report record of the target report parameter according to the user click data and the target report parameter, and storing the report record and the report state information of the target report parameter into a data storage table in the file processing packet in an associated manner.
Further, the data reporting device further includes a reporting result analyzing module, and the reporting result analyzing module is further configured to:
acquiring an initial reporting result fed back by the target platform based on a target reporting parameter, and analyzing the initial reporting result into a recognizable target reporting result through a data analysis rule in the target processing subclass;
and updating the reporting state information corresponding to the target reporting parameters in the data storage table according to the target reporting result.
Further, the report result analyzing module is further configured to:
and updating the reporting state information corresponding to the target reporting parameter in the data storage table to be successful in reporting when the reporting state result is successful in reporting.
Further, the report result analyzing module is further configured to:
when the report state result is report failure, updating the report state information corresponding to the target report parameter in the data storage table to report failure;
and acquiring the target reporting parameters in the data storage table, and carrying out secondary reporting on the target reporting parameters in the target reporting mode.
The method executed by each program module can refer to each embodiment of the data reporting method of the present invention, and is not described herein again.
The invention also provides a computer readable storage medium.
The computer readable storage medium of the present invention stores a data reporting program, and the data reporting program, when executed by a processor, implements the steps of the data reporting method as described above.
The method implemented when the data reporting program running on the processor is executed may refer to each embodiment of the data reporting method of the present invention, and details are not described here.
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 system 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 system. 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 system 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 solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., 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.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A data reporting method is characterized in that the data reporting method comprises the following steps:
when a data reporting instruction triggered by a user click operation is detected, acquiring a target platform corresponding to the data reporting instruction and reporting, and determining a target processing subclass corresponding to the target platform in a file processing packet;
acquiring a target click parameter in user click data through a target data request interface in the target processing subclass, and converting the target click parameter into a target reporting parameter based on a data conversion rule in the target processing subclass;
and reporting the target reporting parameters to the target platform in a target reporting mode in the target processing subclass.
2. The data reporting method of claim 1, wherein when a data reporting instruction triggered by a user click operation is detected, the method obtains a target platform reported by the data reporting instruction, and determines a target processing subclass corresponding to the target platform in a file processing package, specifically includes:
when a data reporting instruction triggered by a user click operation is detected, acquiring a target platform corresponding to the data reporting instruction and reporting, and judging whether a target processing subclass corresponding to the target platform exists in the processing file packet or not;
if the target processing subclass does not exist in the processing file packet, acquiring a target demand document corresponding to the target platform, and calling a preset processing class template;
and generating a target processing subclass corresponding to the target platform based on the target request data, the data conversion rule, the target reporting mode and the processing class template in the target demand document.
3. The data reporting method of claim 1, wherein before the step of reporting the target reporting parameter to the target platform in the target reporting manner in the target processing sub-class, the method further comprises:
and generating a report record of the target report parameter according to the user click data and the target report parameter, and storing the report record and the report state information of the target report parameter into a data storage table in the file processing packet in an associated manner.
4. The data reporting method of claim 3, wherein after the step of reporting the target reporting parameter to the target platform by the target reporting mode in the target processing sub-class, the method further comprises:
acquiring an initial reporting result fed back by the target platform based on a target reporting parameter, and analyzing the initial reporting result into a recognizable target reporting result through a data analysis rule in the target processing subclass;
and updating the reporting state information corresponding to the target reporting parameters in the data storage table according to the target reporting result.
5. The data reporting method of claim 4, wherein the step of updating the reporting status information corresponding to the target reporting parameter in the data storage table according to the target reporting result specifically comprises:
and updating the reporting state information corresponding to the target reporting parameter in the data storage table to be successful in reporting when the reporting state result is successful in reporting.
6. The data reporting method of claim 4, wherein the step of updating the reporting status information corresponding to the target reporting parameter in the data storage table according to the target reporting result specifically comprises:
when the report state result is report failure, updating the report state information corresponding to the target report parameter in the data storage table to report failure;
and acquiring the target reporting parameters in the data storage table, and carrying out secondary reporting on the target reporting parameters in the target reporting mode.
7. The data reporting method according to any one of claims 1 to 6, wherein the step of obtaining a target click parameter in user click data through a target data request interface in the target processing subclass, and converting the target click parameter into a target reporting parameter based on a data conversion rule in the target processing subclass specifically includes:
acquiring a click ID, a click position parameter and a click type parameter in the user click data through the target data request interface;
splicing the click ID, the click position and the click type parameter to generate a target click parameter through a splicing report template in the target processing subclass;
and converting the target click parameter into a target reporting parameter which can be identified by the target platform based on the data conversion rule.
8. A data reporting apparatus, wherein the data reporting apparatus comprises:
the target subclass determining module is used for acquiring a target platform reported corresponding to a data reporting instruction when the data reporting instruction triggered by the user click operation is detected, and determining a target processing subclass corresponding to the target platform in a file processing packet;
a report parameter generating module, configured to obtain a target click parameter in user click data through a target data request interface in the target processing subclass, and convert the target click parameter into a target report parameter based on a data conversion rule in the target processing subclass;
and the reporting parameter reporting module is used for reporting the target reporting parameters to the target platform in a target reporting mode in the target processing subclass.
9. A data reporting device, wherein the data reporting device comprises: a memory, a processor and a data reporting program stored in the memory and operable on the processor, wherein the data reporting program, when executed by the processor, implements the steps of the data reporting method according to any one of claims 1 to 7.
10. A computer-readable storage medium, wherein a data reporting program is stored on the computer-readable storage medium, and when executed by a processor, the data reporting program implements the steps of the data reporting method according to any one of claims 1 to 7.
CN202010596088.3A 2020-06-24 2020-06-24 Data reporting method, device, equipment and storage medium Pending CN111737334A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010596088.3A CN111737334A (en) 2020-06-24 2020-06-24 Data reporting method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010596088.3A CN111737334A (en) 2020-06-24 2020-06-24 Data reporting method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111737334A true CN111737334A (en) 2020-10-02

Family

ID=72652097

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010596088.3A Pending CN111737334A (en) 2020-06-24 2020-06-24 Data reporting method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111737334A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112215652A (en) * 2020-10-12 2021-01-12 上海酷量信息技术有限公司 Cross-platform advertisement copying strategy system and method
CN112395024A (en) * 2020-12-09 2021-02-23 上海益世界信息技术集团有限公司 Interface calling method and related device
CN113568543A (en) * 2021-06-30 2021-10-29 北京达佳互联信息技术有限公司 Information processing method, information processing device, electronic equipment and storage medium
CN113821467A (en) * 2021-09-29 2021-12-21 广联达科技股份有限公司 Data transmission method and device and electronic equipment
CN114553666A (en) * 2022-01-07 2022-05-27 广东万丈金数信息技术股份有限公司 Channel event reporting method, system, device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461582A (en) * 2014-12-30 2015-03-25 乐视网信息技术(北京)股份有限公司 Service processing method and device and equipment
US9390423B1 (en) * 2009-10-08 2016-07-12 Prime Research Alliance E, Inc. Methods and systems for verifying advertisements in a multi-platform targeted advertising system
CN108959430A (en) * 2018-06-11 2018-12-07 北京金山安全软件有限公司 Advertisement promotion data acquisition method, device and equipment
CN109284165A (en) * 2018-10-30 2019-01-29 武汉斗鱼网络科技有限公司 Client skin change method, device, equipment and computer readable storage medium
CN109688047A (en) * 2018-12-07 2019-04-26 中国建设银行股份有限公司 Message adaptation method, equipment and storage medium based on XML
CN110457289A (en) * 2019-07-08 2019-11-15 北京三快在线科技有限公司 Advertisement promotion channel interconnection method, system, electronic equipment and readable storage medium storing program for executing
CN110517082A (en) * 2019-08-29 2019-11-29 深圳前海微众银行股份有限公司 Advertisement sending method, device, equipment and computer readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9390423B1 (en) * 2009-10-08 2016-07-12 Prime Research Alliance E, Inc. Methods and systems for verifying advertisements in a multi-platform targeted advertising system
CN104461582A (en) * 2014-12-30 2015-03-25 乐视网信息技术(北京)股份有限公司 Service processing method and device and equipment
CN108959430A (en) * 2018-06-11 2018-12-07 北京金山安全软件有限公司 Advertisement promotion data acquisition method, device and equipment
CN109284165A (en) * 2018-10-30 2019-01-29 武汉斗鱼网络科技有限公司 Client skin change method, device, equipment and computer readable storage medium
CN109688047A (en) * 2018-12-07 2019-04-26 中国建设银行股份有限公司 Message adaptation method, equipment and storage medium based on XML
CN110457289A (en) * 2019-07-08 2019-11-15 北京三快在线科技有限公司 Advertisement promotion channel interconnection method, system, electronic equipment and readable storage medium storing program for executing
CN110517082A (en) * 2019-08-29 2019-11-29 深圳前海微众银行股份有限公司 Advertisement sending method, device, equipment and computer readable storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112215652A (en) * 2020-10-12 2021-01-12 上海酷量信息技术有限公司 Cross-platform advertisement copying strategy system and method
CN112395024A (en) * 2020-12-09 2021-02-23 上海益世界信息技术集团有限公司 Interface calling method and related device
CN113568543A (en) * 2021-06-30 2021-10-29 北京达佳互联信息技术有限公司 Information processing method, information processing device, electronic equipment and storage medium
CN113821467A (en) * 2021-09-29 2021-12-21 广联达科技股份有限公司 Data transmission method and device and electronic equipment
CN114553666A (en) * 2022-01-07 2022-05-27 广东万丈金数信息技术股份有限公司 Channel event reporting method, system, device and storage medium
CN114553666B (en) * 2022-01-07 2024-01-19 广东万丈金数信息技术股份有限公司 Channel event reporting method, system, device and storage medium

Similar Documents

Publication Publication Date Title
CN111737334A (en) Data reporting method, device, equipment and storage medium
CN110688598B (en) Service parameter acquisition method and device, computer equipment and storage medium
CN108563768B (en) Data conversion method, device, equipment and storage medium for different data models
CN110011875B (en) Dial testing method, device, equipment and computer readable storage medium
CN111143207B (en) Method for checking model training notice and training log at mobile terminal
CN110716743B (en) Aggregation API development method and system suitable for multiparty collaborative development
CN114416075A (en) Service processing method and device
CN108650123B (en) Fault information recording method, device, equipment and storage medium
CN109587351B (en) Call testing method, device, equipment and storage medium
CN106485520B (en) Cross-channel communication control method and server
CN114385382A (en) Light application access method and device, computer equipment and storage medium
CN114022183A (en) Advertisement information attribution method, system, equipment and storage medium
CN117194259A (en) Interface testing method, system, electronic equipment and storage medium
CN110048940A (en) Sending method, device, server and the readable storage medium storing program for executing of instant communication message
CN110874278A (en) Embedding method of external system, workflow system, device and storage medium
CN112230938B (en) Method and device for configuring rental products of industrial Internet
CN113672205B (en) Workflow framework based on business event driving
CN110659191B (en) Buried data analysis method, buried data analysis device, computer equipment and storage medium
CN114861076A (en) Information processing method, information processing device, computer equipment and storage medium
CN113419738A (en) Interface document generation method and device and interface management equipment
CN114428723A (en) Test system, system test method, related device and storage medium
CN113469740A (en) Advertisement data acquisition method, device, equipment and storage medium
CN109101515B (en) Rule configuration method, server and computer-readable storage medium
CN112671615A (en) Method, system and storage medium for collecting operation behavior data of front-end user
CN118396631B (en) Online protocol text interaction method, system, electronic equipment and storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20201002

RJ01 Rejection of invention patent application after publication