2.3.0 • Published 12 months ago
@datarangers/sdk-quick v2.3.0
DataRangers SDK - quickapp
Sample
1. Initialize the SDK in app.ux
const $$SDK = require('@datarangers/sdk-quick');
export default {
...
sdk: $$SDK,
onCreate() {
this.$def.sdk.init({
app_id: 1234, // Replace it with the "APP_ID"
log: true, // Whether to print the log
});
this.$def.sdk.send(); // Setup complete and now events can be sent.
}
}
2. Report custom user behavior events
// Take reporting the "video clicked" behavior of users for example
export default {
...
onMenuPress() {
this.$app.$def.sdk.event('play_video', {
title: 'Here is the video title',
});
}
}
3. Report the unique identifier of the currently logged in user
// Set "user_unique_id" after a user logs in and the user's unique identifier is retrieved.
setTimeout(() => {
this.$app.$def.sdk.config({
user_unique_id: 'zhangsan', //Unique user identifier, can be "open_id".
});
}, 1000);
2.3.0
12 months ago
2.2.0
2 years ago
2.1.0
3 years ago
1.11.0
3 years ago
2.0.1
3 years ago
2.0.0
4 years ago
1.10.0
4 years ago
1.9.0
4 years ago
1.8.0
4 years ago
1.7.1
4 years ago
1.7.0
4 years ago
1.6.0
4 years ago
1.5.2
4 years ago
1.5.1
4 years ago
1.5.0
4 years ago
1.4.0
4 years ago
1.3.16
4 years ago
1.3.15
4 years ago
1.3.14
5 years ago
1.3.13
5 years ago
1.3.12
5 years ago