mixpanel: add

This commit is contained in:
Rico Sta. Cruz 2017-10-29 00:07:10 +08:00
parent a86a517673
commit 8facba27b0
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
2 changed files with 29 additions and 0 deletions

View File

@ -1,5 +1,6 @@
enabled: true
names:
- Analytics
- Ansible
- Apps
- CLI

28
mixpanel.md Normal file
View File

@ -0,0 +1,28 @@
---
title: Mixpanel
layout: 2017/sheet
category: Analytics
---
### Identify
```js
mixpanel.identify('284')
mixpanel.people.set({ $email: 'hi@gmail.com' })
```
```js
// Set common properties
mixpanel.register({ age: 28, gender: 'male' })
```
### Track events
```js
mixpanel.track('Login success')
mixpanel.track('Search', { query: 'cheese' })
```
### References
* <https://mixpanel.com/help/reference/javascript>