1. Plugin Usage

Currently, Web/Mini Program gradually evolves into a plugin-based architecture. The concept of "everything is a plugin" is becoming more and more prominent.

Before using the plugin, please refer to the Plugin Usage for details.

2. Existing Plugin List and Usage


Plugin DirectoryPlugin DescriptionInstructionsSDK Version RequirementBuilt-in
1abtesting-sdk-miniprogram

A/B Testing - A/B Testing

Documentationv1.18.1External
2sf-sdk-miniprogramPopup - PopupDocumentationv1.18.1External
3register-properties

Add Event Properties

Documentationv1.18.1External
4ad-channelSAT - Support Tencent Ad Channel Data ImportDocumentationv1.18.1External
5ad-channel-h5-linkerSAT - Connect WeChat Mini Program and H5 Users and ChannelsDocumentationv1.18.1External
6EncryptionTracking Data EncryptionDocumentationv1.18.1External
7get-locationAdd Latitude and Longitude as Public PropertiesDocumentationv1.18.1External
8

h5-linker

Association between WeChat Mini Programs and H5 UsersDocumentationv1.18.1External
9session-event12h/30m session segmentationDocumentationv1.18.1External
10set-referrer-pathAdd referrer_path propertyDocumentationv1.18.1External
11general-encryptionAsymmetric encryption for data reportingDocumentationv1.18.2External
12exposureElement exposure event collectionDocumentationv1.18.6External
13sm-encryptionReport Data with SM EncryptionDocumentationv.1.19.11External


Note:

  • Both the SDK and the plugin must be updated if either one is upgraded. Remember, do not update only one side.
    • Since version v1.18.1, using the /dist/wechat/ directory will allow for simultaneous updates. This is because both the SDK and the plugin are in this directory, as long as the references point here, they can be updated at the same time.
  • The SDK version requirement here refers to the minimum SDK version required when the plugin has the latest functionality.
  • The plugin does not have its own version number, the overall version will increase if the plugin is modified.
  • If github cannot be accessed, you can also download from npm and check in the local directory /dist/wechat/plugin
  • If it is a built-in plugin, the SDK already includes it (for reference by the plugin). Do not integrate it manually.