Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make MixPanel Javascript API calls? #26

Open
otravers opened this issue Dec 20, 2016 · 2 comments
Open

How to make MixPanel Javascript API calls? #26

otravers opened this issue Dec 20, 2016 · 2 comments

Comments

@otravers
Copy link

otravers commented Dec 20, 2016

I'm probably dense, but I didn't see in the doc/example whether I can use mixpanel javascript functions with Angulartics, i.e. can I use something like the following just as if I was using MixPanel directly:

<script type="text/javascript">mixpanel.identify("smrdmstrg"); mixpanel.people.set_once({ "$created": new Date(), "$first_name": "Olivier" });</script>

@timelf123
Copy link
Contributor

Yep, you can call mixpanel directly after it has been loaded on the page. Angulartics-mixpanel is just a wrapper around the core functions.

@otravers
Copy link
Author

Related to my initial question, it's not clear to me how you're supposed to create and capture your own Mixpanel (event or people) properties via Angulartics. Is it possible via declarative tracking, or do you need to use the Angulartics API? Examples would be great, because the Angulartics-Mixpanel example only covers the basics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants