Mini program SDK changelog

更新时间:
复制 MD 格式

SDK acquisition

The SDK is available in the Data Collection section of the QuickTracking management console.

image.png

2.4.18 (2026-06-23)

  • Added time events.

2.4.17 (2026-06-15)

  • Improved prototype chain handling.

2.4.16 (2025-11-11)

  • Added support for boolean and date data types for event properties.

2.4.12 (2025-09-24)

  • Fixed an issue where automatic click and automatic exposure events did not work when using hold BLOCK.

2.4.9 (2025-07-02)

  • Fixed an issue with duplicate automatic exposures.

  • Optimized the frequency of js sync API calls.

2.4.8 (2025-04-22)

  • Added protection for cache API calls.

  • Improved log output.

2.4.7 (2025-03-31)

  • Fixed incorrect sharing parameters in asynchronous sharing functions.

2.4.6 (2025-02-24)

  • Optimized the sampling rate fetching mechanism.

  • Added a polling mechanism for batch data uploads.

  • Fixed an issue causing failure queue data to be lost upon exiting the mini program.

2.4.4 (2024-12-16)

  • Optimized internal regular expressions.

  • Added sampling rate control for automatic click events.

2.4.2 (2024-10-30)

  • Fixed an issue with automatic tracking for mini program click events.

2.3.6 (2024-10-14)

  • Added support for automatic tracking of mini program click events. This feature can be enabled by setting autotrackMethodEnable=true.

2.3.5 (2024-09-24)

  • Added support for AMD build artifacts.

2.3.4 (2024-08-30)

  • Improved parsing of sharing and channel parameters when a mini program is launched from a QR code.

2.3.3 (2024-08-14)

  • Fixed an issue where automatic exposure events failed to trigger on subsequent pages after all elements on the current page had been exposed.

2.3.2 (2024-07-22)

  • Optimized automatic exposure processing in mini programs.

2.3.0 (2024-06-27)

  • Optimized automatic exposure processing in mini programs.

2.2.4 (2024-04-28)

  • Fixed an issue where remote configuration failed to control the automatic sending of page view (PV) events.

2.2.3 (2024-04-22)

  • Fixed an obj.hasOwnProperty is not a function error.

2.2.2 (2024-03-20)

  • Added the option to manually enable or disable the SDK.

2.2.1 (2024-03-14)

  • Fixed an internal logic issue related to page view (PV) processing.

2.2.0 (2024-03-07)

  • Added support for viral sharing.

  • Improved function and parameter naming conventions.

2.1.3 (2023-09-08)

  • Added platform identifiers for Xiaohongshu and JD Mini Program.

2.1.0 (2023-09-02)

  • Added event tracking support for Xiaohongshu Mini Programs.

2.0.17 (2023-07-04)

  • Optimized the conditional logic for triggering automatic exposure events.

  • Added an ESM format for the mini program SDK build artifact.

2.0.15 (2023-06-27)

  • Fixed an issue where _hold=BLOCK was not released after automatically fetching the OpenID.

2.0.14 (2023-06-06)

  1. Fixed an intermittent error in random UUID generation during event triggers.

2.0.12 (2023-05-18)

  1. Fixed an issue where query information was blocked when sharing to WeChat Moments using onShareTimeline.

2.0.9 (2023-04-25)

  1. Added Promise support for the return value of onShareAppMessage requests.

  2. Added a switch to enable or disable preset events for mini programs.

2.0.8 (2023-04-03)

  • Fixed an issue where log blocking with BLOCK was failing.

  • Fixed an issue where updatePageProperties would fail if pageConfig was not set, and resolved a mapping issue when no default path was configured.

  • Fixed an issue where the page leave event was not reported on the first launch of the application.

  • Fixed an issue where logs were not reported when both _anony_id and autoGetOpenid=true were set.

  • Ensured that setting max-queue-count to an invalid value no longer affects the data sending logic.

  • Added support for configuring a path for the domain.

2.0.7 (2023-04-03)

  • Added the updatePageProperties API to set page properties. This API only affects automatic PV events and allows for dynamic changes to the page code.

  • Added a token bucket to limit the number of requests in a short period. It defaults to 1 channel and can be configured for up to 5 channels via the aplus-mini-requests-limit setting.

  • Added a default request timeout of 3 seconds.

  • Aggregated failed requests in the failure queue.

  • Fixed an issue where UTM parameter values were required to be strings.

1.11.3 (2023-04-12)

  • Fixed an issue where setting _anony_id, _dev_id, or _user_id to null resulted in the value being read from the cache as the string 'null'.

1.10.6 (2023-03-31)

  • Fixed an issue where a remote configuration returning an empty object would incorrectly modify the local default configuration.

1.10.3 (2023-03-10)

  • Fixed a pageTitle mapping issue within pageConfig.

  • Fixed an incorrect default page code mapping for the application start event. The fix includes handling for delayed relaunches.

1.9.62 (2023-02-15)

  • Removed the caching logic for mini program channel parameters.

  • Added caching logic for user account IDs.

1.9.61 (2023-02-10)

  • Fixed an issue with updating channel parameters during a warm start.

1.9.60 (2023-01-11)

  • Added caching logic for anony_id and dev_id.

1.9.55 (2022-12-28)

  • Added collection of ref_page_name.

  • Set track_type to 1 for all preset events.

1.9.51 (2022-11-22)

  • Added persistence for UTM parameters.

1.9.46 (2022-11-02)

  • Fixed a parsing issue when the query in a page share was not an object.

1.9.43 (2022-10-12)

  • Added support for custom request timeout durations.

1.9.40 (2022-09-08)

  • Fixed an issue where data was not sent if the automatic fetching of the OpenID failed.

1.9.36 (2022-08-19)

  • Adapted the SDK for use as a WeChat Mini Program plugin.

1.9.34 (2022-07-04)

  • Fixed an issue where channel properties were being overridden by global properties.

1.9.26 (2022-06-17)

  • Fixed an issue where an empty anony_id would not prevent log reporting.

1.9.25 (2022-06-08)

  1. Added an interface to ignore automatic PV events.

  2. Added callback functions for automatic click and automatic exposure events.

1.9.24 (2022-06-02)

  1. Added automatic OpenID fetching for WeChat Mini Programs.

1.9.23 (2022-06-01)

  • Resolved inconsistencies between the Alipay and WeChat storage APIs.

1.9.21 (2022-05-24)

  • Fixed an issue where an automatic click on a navigator component would cause the page code to be incorrectly identified as belonging to the next page.

1.9.20 (2022-05-14)

  • Fixed an issue where event tracking logs were interrupted by system functions like incoming calls or opening the photo album during validation.

1.9.16 (2022-04-26)

  • Ensured that the event type ID is reported only for automatic tracking events.

1.9.14 (2022-04-19)

  • Added a page_title event property to set the page title. For WeChat Mini Programs, this defaults to navigationBarTitle.

1.9.12 (2022-04-18)

  • Improved log messages for cases where an event logkey is empty or null.

1.9.10 (2022-04-12)

  • Refactored the log output for domain validation.

1.9.9 (2022-04-08)

  • Added support for configuring the data collection domain with the HTTPS protocol.

1.9.8 (2022-04-01)

  • Refactored Chinese log messages into English.

1.9.2 (2022-03-12)

  • Added startId logic.

  • Added a version stamp to the build artifact banner.

1.9.1 (2022-03-08)

  • Added support for sending GET and POST logs over HTTPS in DingTalk.

1.9.0 (2022-03-04)

  • Added automatic tracking.

1.8.9 (2022-03-04)

  • Fixed an issue where the DEBUG switch was not working.

1.8.7 (2022-03-01)

  • Fixed an issue that prevented custom parameters for low-code event tracking from being reported.