This JS Library
is used to integrate Adobe's Experience Cloud solutions to your WeChat Mini Programs.
- Pass in the configuration, including analytics and app related settings.
- Send Analytics track action/state call.
- Collect
lifecycle
data, including Launch/Install/Upgrade events, and previous session length .... - Use
aid
to identify a unique user- Retrieve
aid
from remote analytics server at the first app launch. (Android) - Generate
aid
locally at the first app launch. (iOS) - Store
aid
and Lifecycle related data into local storage.
- Retrieve
- Use a
queue
to guarantee the request are being sent in order, also to avoid occupying multiple HTTP requests quota. - Enable or disable debug logging
- Enable or disable debug mode.
- In the
onLaunch
method of theApp.js
, implementAdobeSDK.init()
and pass in valid configurations. - Enable debug logging if needed.
- Call
AdobeSDK.trackState()
when switch to a newPage
, and pass in the page name and any additional context data. Normally, you can implment this in theonShow
method of thePage
. - Call
AdobeSDK.trackAction()
if you want to track a certain event.
If you're using VSCode, here is a list of recommended plugins :
- jsDoc
- Code Runner
- ESLint
- Gulp Tasks
- Download WeChat mini program IDE from https://developers.weixin.qq.com/miniprogram/en/dev/devtools/devtools.html
- Open the IDE and login
- Import the project from the example folder.
To build this project, you need NodeJS and npm:
-
Install dev dependencies
npm install
-
Run tests
gulp test
-
Export
JS Library
to folderdist
gulp export_sdk
Contributions are welcomed! Read the Contributing Guide for more information.
This project is licensed under the Apache V2 License. See LICENSE for more information.