adobe / wechat
A JS library brings Adobe Experience Platform functionality to WeChat Mini Programs.
README
Adobe Exprience Platform Wechat Mini Program SDK
This SDK is available as an open source project under an Apache License 2.0 - see LICENSE.md for further detail. The SDK is provided on an as-is basis, without warranty.
Introduction
This JS Library is used to integrate Adobe's Experience Cloud solutions to your WeChat Mini Programs.
Feature Details:
- Pass in the configuration, including analytics and app related settings.
- Send Analytics track action/state call.
- Collect
lifecycledata, including Launch/Install/Upgrade events, and previous session length .... - Use
aidto identify a unique user- Retrieve
aidfrom remote analytics server at the first app launch. (Android) - Generate
aidlocally at the first app launch. (iOS) - Store
aidand Lifecycle related data into local storage.
- Retrieve
- Use a
queueto 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.
Using Mobile SDK in WeChat Mini Program:
- In the
onLaunchmethod 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 theonShowmethod of thePage. - Call
AdobeSDK.trackAction()if you want to track a certain event.
Public API :
Development Environment:
Development dependencies
If you're using VSCode, here is a list of recommended plugins :
- jsDoc
- Code Runner
- ESLint
- Gulp Tasks
Launch sample app in WeChat IDE
- 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.
Build Project
To build this project, you need NodeJS and npm:
-
Install dev dependencies
npm install -
Run tests
gulp test -
Export
JS Libraryto folderdistgulp export_sdk
Contributing
Contributions are welcomed! Read the Contributing Guide for more information.
Licensing
This project is licensed under the Apache V2 License. See LICENSE for more information.
KiloClaw - Managed 🦀 