mixpanel: add
This commit is contained in:
parent
a86a517673
commit
8facba27b0
|
@ -1,5 +1,6 @@
|
||||||
enabled: true
|
enabled: true
|
||||||
names:
|
names:
|
||||||
|
- Analytics
|
||||||
- Ansible
|
- Ansible
|
||||||
- Apps
|
- Apps
|
||||||
- CLI
|
- CLI
|
||||||
|
|
|
@ -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>
|
Loading…
Reference in New Issue