Last active
November 4, 2016 00:29
-
-
Save bntzio/ed4f6e18c8f6eb7cf5a5ad3f09ddc8f0 to your computer and use it in GitHub Desktop.
Segment tracking for Google Anlytics Events
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // demo de segment | |
| analytics.track('Logged In', { | |
| category: 'Account', | |
| label: 'Premium', | |
| value: 50 | |
| }); | |
| // overview de otra aplicación de ejemplo | |
| analytics.track('Clicked on Gold button', { | |
| category: 'Click', | |
| label: 'Gold button' | |
| }); | |
| analytics.track('Bought Gold subscription', { | |
| category: 'Subscription', | |
| label: 'Gold subscription', | |
| value: 100 | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment