Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shrijan00003/mix-panel-client

This is simple java-script library that will work with the mix-panel-server
https://github.com/shrijan00003/mix-panel-client

Last synced: 4 days ago
JSON representation

This is simple java-script library that will work with the mix-panel-server

Awesome Lists containing this project

README

        

/\*\*

- MIXPANEL.configure() function to identifiy for the very first time
- \*/

const configure = () => {
return MIXPANEL.configure({
apiKey: "e84ac190-a6a8-11e8-92de-eb79ccdc12e6",
email: "[email protected]"
})
.then(data => console.log(data))
.catch(err => console.log(err));
};

const identify = () => {
return MIXPANEL.identify({
userId: "1111111",
userEmail: "[email protected]",
userName: "st",
userDetails: {
name: "shrijan triapthi",
addrss: "kapan"
}
})
.then(data => console.log(data))
.catch(err => console.error(err));
};

/\*\* \*
\*/

const track = () => {
MIXPANEL.track({
name: "deleting facebook Account",
eventName: "delete_account",
payload: {
user: "shrijan sharma",
change: "Account Delete",
reaseon: "feels insecure"
}
})
.then(data => console.log(data))
.catch(err => console.error(err));
};

/\*\* \*
\*/
const page = () => {
MIXPANEL.page({
name: "Google Home",
title: "google",
keywords: ["home", "news", "top", "hello"]
})
.then(data => console.log(data))
.catch(err => console.log(err));
};

configure().then(() => {
identify();
});
// track();
// page();

// MIXPANEL.getallMetadata();