GithubHelp home page GithubHelp logo

isabella232 / wechat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adobe/wechat

0.0 0.0 0.0 3.13 MB

A JS library brings Adobe Experience Platform functionality to WeChat Mini Programs.

Home Page: https://aep-sdks.gitbook.io/docs/beta/adobe-experience-platform-mini-programs-sdk

License: Apache License 2.0

JavaScript 100.00%

wechat's Introduction

Adobe Exprience Platform Wechat Mini Program SDK

Introduction

This JS Library is used to integrate Adobe's Experience Cloud solutions to your WeChat Mini Programs.

Feature Details:

  1. Pass in the configuration, including analytics and app related settings.
  2. Send Analytics track action/state call.
  3. Collect lifecycle data, including Launch/Install/Upgrade events, and previous session length ....
  4. Use aid to identify a unique user
    1. Retrieve aid from remote analytics server at the first app launch. (Android)
    2. Generate aid locally at the first app launch. (iOS)
    3. Store aid and Lifecycle related data into local storage.
  5. Use a queue to guarantee the request are being sent in order, also to avoid occupying multiple HTTP requests quota.
  6. Enable or disable debug logging
  7. Enable or disable debug mode.

Using Mobile SDK in WeChat Mini Program:

  1. In the onLaunch method of the App.js, implement AdobeSDK.init() and pass in valid configurations.
  2. Enable debug logging if needed.
  3. Call AdobeSDK.trackState() when switch to a new Page, and pass in the page name and any additional context data. Normally, you can implment this in the onShow method of the Page.
  4. Call AdobeSDK.trackAction() if you want to track a certain event.

Public API :

Git book

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

Build Project

To build this project, you need NodeJS and npm:

  • Install dev dependencies

    npm install
    
  • Run tests

    gulp test
    
  • Export JS Library to folder dist

    gulp 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.

wechat's People

Contributors

yangyansong-adbe avatar shalehaha avatar filmaj avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.