Search

CN-122027615-A - Method for dynamically putting questionnaires in third party application through SDK

CN122027615ACN 122027615 ACN122027615 ACN 122027615ACN-122027615-A

Abstract

The invention discloses a method for dynamically putting questionnaires in a third party application through an SDK, which belongs to the technical field of computer data processing, and comprises the following steps: six types of data are collected, a multi-platform exclusive integrated scheme is provided through multi-factor weighted decision, questionnaire display and disturbance-free strategies are configured, the display effect is intelligently triggered and optimized, answer data are checked in real time, and the answer data are submitted in a differentiated mode and are synchronously and efficiently transferred in a multi-mode. The method for dynamically putting the questionnaire in the third party application through the SDK improves the compatibility and flexibility of questionnaire putting through the multi-dimensional factor weighted decision model, and is suitable for digitalized operation scenes such as user feedback collection, demand investigation and the like of various third party applications.

Inventors

  • YU LEI
  • CHEN KAI

Assignees

  • 众言科技股份有限公司

Dates

Publication Date
20260512
Application Date
20260126

Claims (10)

  1. 1. A method for dynamically delivering questionnaires to third party applications via an SDK, comprising: Acquiring six types of input data of platform environment, host application, user behavior, service configuration, network state and data characteristics, and calculating an optimal execution scheme through a multi-factor weighted decision model; Providing a proprietary integration scheme aiming at different platform types of the third party application, configuring the display form and the appearance style of the questionnaire according to dynamic optimization rules, and simultaneously adjusting a disturbance-free strategy by combining user behavior data; accurately controlling the questionnaire display time through an intelligent trigger mechanism, and optimizing the display effect by matching with a hot zone obstacle avoidance and size adaptation technology; And carrying out real-time verification on answer data, adopting a differential submitting strategy, and realizing high-efficiency data circulation in a multi-mode synchronous mode.
  2. 2. The method of claim 1 wherein the questionnaire is dynamically delivered by the SDK to the third party application, the integrated scheme is characterized by comprising the following steps: The Web/H5 application adopts JavaScriptSDK and iframe to integrate in isolation, the Android application adopts SDK.aar and WebView to integrate, the iOS application adopts SDK.frame work to integrate, the WeChat applet adopts plug-in and state management to integrate, and a Maven/CocoaPods dependency management mode is provided.
  3. 3. The method of claim 1 wherein the questionnaire is dynamically delivered by the SDK to the third party application, the dynamic optimization rule is characterized by comprising the following steps: The questionnaire theme color calculation formula is: ; And checking the readability by a contrast formula, expressed as: ; In the formula, Is the brightness value of the foreground region; the brightness value of the background area; The non-disturbing strategy is adjusted through a dynamic non-disturbing period, and the calculation formula of the dynamic non-disturbing period is as follows: ; The method comprises the following steps of setting a basic period as a preset reference interval time for putting the questionnaire again, defaulting for 7 days, setting a dynamic period as an actually executed questionnaire putting interval time, and setting a completion rate as a completion proportion of the user to the questionnaire in a history manner; The display form comprises a card popup window, an embedded display and a suspension button.
  4. 4. The method for dynamically delivering questionnaires by SDK application to a third party according to claim 1, wherein the intelligent triggering mechanism comprises an automatic delay trigger and an external custom trigger, and the calculation formula of the actual delay time of the automatic delay trigger is as follows: ; In the formula, The basic delay is preset questionnaire triggering reference waiting time; the loading completion proportion of the DOM element of the page is the loading completion proportion of the page resource; whether the questionnaire is displayed or not is judged by the allowed display probability, and the allowed display probability calculation formula is as follows: ; Wherein, the display probability is allowed to be a probability value displayed by questionnaire triggering; The negative behavior weight is a weight coefficient corresponding to the negative operation of the user on the questionnaire.
  5. 5. The method for dynamically delivering questionnaires to third party applications through an SDK according to claim 1, wherein the optimizing the presentation effect specifically comprises: the coordinates of the suspension button are determined, and the calculation formula is as follows: ; ; The optimal coordinates are the final display position of the questionnaire suspension trigger button on the page, the buttons are suspension controls for calling the questionnaire, the hot area is an area for high-frequency operation of a user in host application, the button size is the actual display size of the questionnaire suspension buttons, and the shortest side of the screen is the shorter side length of the equipment screen; Determining the deviation of a questionnaire popup window, wherein the calculation formula is as follows: ; Wherein, the offset is the vertical displacement distance to be adjusted of the questionnaire popup window, and the overlapping height is the height of the vertical overlapping part of the initial position of the questionnaire and the host application high-frequency operation area; A safety distance reserved for the extra; determining the interactive animation duration of the questionnaire, wherein the calculation formula is as follows: ; The common duration of the platform is the default duration of the popup window type interactive animation in the operating system/platform corresponding to the host application where the questionnaire is located; determining the height of the card, wherein the calculation formula is as follows: ; Wherein the height of the card is the actual height of the questionnaire when being displayed in the form of the card, the basic height is the fixed reference height of the card, the question number is the question number contained in the questionnaire, the complexity coefficient is a coefficient set according to the question type, and the complexity coefficient is set as 、 、 。
  6. 6. The method for dynamically delivering questionnaires by SDK application at a third party according to claim 1, wherein the differential submission policy is specifically: When the network bandwidth is less than 0.5Mbps, adopting the slicing submission, wherein the calculation formula of the slicing size is as follows: ; ; wherein the size of the fragments is the maximum data volume of a single fragment when the answer data are transmitted in fragments; The method comprises the steps of obtaining a preset upper limit of the size of a fragment, wherein the bandwidth is the actual network bandwidth of the current equipment, and the fragment data is answer data content corresponding to a single fragment; the check code is a tamper-proof code for verifying the integrity of the fragmented data; the multi-mode synchronization mode comprises real-time synchronization and polling backup synchronization, wherein a polling interval calculation formula is as follows: ; the method comprises the steps of determining a polling interval, wherein the polling interval is actual waiting time of two adjacent requests when questionnaire data are synchronized in a polling mode, the initial interval is a preset reference interval of a polling request, defaults to 5 seconds, and the delay is network delay time of current equipment.
  7. 7. The method for dynamically delivering questionnaires by SDK application to third parties according to claim 1, wherein the data real-time verification is implemented by a parametric legal scoring formula, which is: ; wherein, the legal score of the parameter is the score of the legitimacy of the related parameter of the questionnaire; The method comprises the steps of accumulating calculation results of all parameter items with problems, wherein error fields are parameter fields with validity problems, and error weights are importance coefficients of corresponding error fields.
  8. 8. The method for dynamically delivering questionnaires to third parties through SDK according to claim 1, wherein after network interruption, an exponential backoff reconnection strategy is adopted, and the reconnection interval is calculated according to the formula: ; wherein, the reconnection interval is the waiting time of the next attempt of reconnection after the network connection is disconnected; the number of reconnection attempts; In basic time units.
  9. 9. A computer device comprising a processor for coupling with a memory, reading and executing instructions and/or program code in the memory to perform the method of any of claims 1-8.
  10. 10. A computer readable medium, characterized in that the computer readable medium stores computer program code which, when run on a computer, causes the computer to perform the method according to any of claims 1-8.

Description

Method for dynamically putting questionnaires in third party application through SDK Technical Field The invention belongs to the technical field of computer data processing, and particularly relates to a method for dynamically putting questionnaires in third-party application through an SDK. Background With the increasing digital operation demands, enterprises/institutions need to collect user feedback and research demands in various third party applications (Web/H5, weChat applet, android/iOSAPP). However, the prior art has the following defects that most schemes only support a single platform (such as Web only or Android only), a set of scheme coverage ends cannot be realized, repeated development is needed, a questionnaire display form (popup window only) and an appearance form are fixed, self-definition according to service requirements cannot be achieved, a no-disturbance mechanism is not needed, the 'entry page immediate popup window' is only supported, delay triggering and external self-definition triggering are not supported, no isolation mechanism is needed between the questionnaire and host application, data leakage is caused, application operation is influenced, answer data is needed to be uploaded regularly, real-time submission to a management background is not needed, statistical efficiency is low, a questionnaire function is needed to be embedded in a hard coding mode, and the third party application has high access cost and long period. Thus, a new method is needed. Disclosure of Invention The invention aims to provide a method for dynamically putting questionnaires in third party applications through SDK, which improves compatibility and flexibility of questionnaire putting through a multi-dimensional factor weighted decision model, and is suitable for digitalized operation scenes such as user feedback collection, demand investigation and the like of various third party applications. In order to achieve the above object, the present invention provides a method for dynamically delivering questionnaires to third party applications through an SDK, including: Acquiring six types of input data of platform environment, host application, user behavior, service configuration, network state and data characteristics, and calculating an optimal execution scheme through a multi-factor weighted decision model; Providing a proprietary integration scheme aiming at different platform types of the third party application, configuring the display form and the appearance style of the questionnaire according to dynamic optimization rules, and simultaneously adjusting a disturbance-free strategy by combining user behavior data; accurately controlling the questionnaire display time through an intelligent trigger mechanism, and optimizing the display effect by matching with a hot zone obstacle avoidance and size adaptation technology; And carrying out real-time verification on answer data, adopting a differential submitting strategy, and realizing high-efficiency data circulation in a multi-mode synchronous mode. Preferably, the integration scheme includes: The Web/H5 application adopts JavaScriptSDK and iframe to integrate in isolation, the Android application adopts SDK.aar and WebView to integrate, the iOS application adopts SDK.frame work to integrate, the WeChat applet adopts plug-in and state management to integrate, and a Maven/CocoaPods dependency management mode is provided. Preferably, the dynamic optimization rule includes: The questionnaire theme color calculation formula is: ; And checking the readability by a contrast formula, expressed as: ; In the formula, Is the brightness value of the foreground region; the brightness value of the background area; The non-disturbing strategy is adjusted through a dynamic non-disturbing period, and the calculation formula of the dynamic non-disturbing period is as follows: ; The method comprises the following steps of setting a basic period as a preset reference interval time for putting the questionnaire again, defaulting for 7 days, setting a dynamic period as an actually executed questionnaire putting interval time, and setting a completion rate as a completion proportion of the user to the questionnaire in a history manner; The display form comprises a card popup window, an embedded display and a suspension button. Preferably, the intelligent triggering mechanism comprises automatic delay triggering and external custom triggering, and the calculation formula of the actual delay time of the automatic delay triggering is as follows: ; In the formula, The basic delay is preset questionnaire triggering reference waiting time; the loading completion proportion of the DOM element of the page is the loading completion proportion of the page resource; whether the questionnaire is displayed or not is judged by the allowed display probability, and the allowed display probability calculation formula is as follows: ; Wherein, the display probability is allowed to be a p