Mini Program SDK
|
Collect
1. Document Directory
2. SDK Feature List
First-level Feature | Second-level Feature | Specific Feature / Description |
---|---|---|
Identify Users | Automatically identify anonymous users | Automatically identify anonymous users using device ID |
Support replacing with custom anonymous ID | ||
Identify logged-in users | Identify logged-in users using login ID | |
Set User Properties | Tag properties for the current user | |
Data Collection | Automatically collect device information | Automatically collect default device information such as screen size, system information, etc. |
Support automatic collection of latitude and longitude information | ||
Full Event Tracking | Mini program launch | |
Mini program display | ||
Mini program hide | ||
Mini program page view | ||
Mini program page click | ||
Mini program page exit | ||
Mini program share | ||
Global attributes | Static global attributes | |
Dynamic global attributes | ||
Clear global attributes | ||
Custom Tracking | Custom code tracking | |
Store data | Set send interval | Set how often to send data in seconds |
Report data | Automatically report data | SDK automatically sends event data when certain conditions are met |
Manually report data | SDK supports manual reporting of event data | |
Debugging function | Debugging logs | Show / close debugging logs |
Advanced features | Data encryption | Data storage and transmission after encryption |
Integration between mini-program and H5 | Pass mini-program user ID to H5 | |
Compliance | Support compliance requirements | |
SDK data collection control | Control the SDK's on/off status |
3. Basic infrastructure
Because different mini-programs provide different APIs, specific mini-programs need to use specific SDKs. For example, WeChat mini-programs can only use WeChat mini-program SDK.
The basic principle of the mini-program SDK is to automatically listen to relevant events (such as startup, hiding), automatically obtain system attributes (system information, network information), and then send network requests.
With the increasing demand, most of the mini-program requirements are implemented through plugins. Before use, you can refer to the usage method of "Plugin Integration".
4. List of mini-program SDKs supported by Sensors Analytics
Mini-program/mini-game | SDK |
---|---|
WeChat Mini Program | |
Alipay Mini Program | |
Baidu Mini Program | |
ByteDance Mini Program | |
Taobao Mini Program | |
JD Mini Program | |
快应用 | |
Xiaohongshu Mini Program | |
WeCode Mini Program | |
QQ Mini Program | |
Kuaishou Mini Program | |
Mini Games (ByteDance, WeChat, QQ) |
5. Supported Mini Program SDK Features of Sensors Analytics
Mini Program/Mini Game | Basic Collection | Full Track | ID3 | SF - Pop-up Window | ABTesting |
---|---|---|---|---|---|
WeChat Mini Program | |||||
Alipay Mini Program | |||||
Baidu Mini Program | |||||
ByteDance Mini Program | |||||
Taobao Mini Program | |||||
JD Mini Program | |||||
Quick App | |||||
Xiaohongshu Mini Program | |||||
WeCode Mini Program | |||||
QQ Mini Program | |||||
Kuaishou Mini Program | |||||
Mini Games (ByteDance, WeChat, QQ) |
6. Mini-program framework support
Mini-program frameworks (such as Taro, uni-app, etc.) are developed using non-mini-program standard languages and are finally compiled into various types of mini-program languages. Since Sensors Analytics supports native mini-program SDK, it fundamentally supports all frameworks because frameworks are ultimately compiled into various types of mini-programs.
Third-party frameworks | Taro 2 | Taro 3 | uni-app (vue2) | uni-app (vue3) | Mpvue | Wepy |
---|---|---|---|---|---|---|
WeChat Mini Program | ||||||
Other Mini Program |
Note:
- The above data is based on the questions raised by customers. Because WeChat mini-programs are used more frequently, there is high verification for related data. Other mini-program customers use it less, or some other mini-programs do not currently support full data collection, so the verification is low.
- Uni-app vue3 setup syntax does not support automatic collection of click events.
7. Mini-program SDK preset events and preset attributes
Refer tothe mini-program SDK preset events and preset attributes documentation.
Note: The content of this document is a technical document that provides details on how to use the Sensors product and does not include sales terms; the specific content of enterprise procurement products and technical services shall be subject to the commercial procurement contract.