Can't see my data in mixpanel
Closed this issue · 3 comments
aldryss commented
Hi,
I unsuccessfully tried to use your plugin to track events and "add people" to mixpanel. I get no errors while initializing it.
Here's my code, I wrapped it in a mixpanel service :
init: function () {
mixpanel.init(
"MY_API_KEY",
function (data) {
mixpanel.distinctId(
function(data){
mixpanel.identify(
function(data){
mixpanel.people.set({
test : "test"
},
this.err,
this.err
);
},
this.err
)
},
this.err
)
},
this.err
)
},
Help, I'm starting to feel very very stupid.
samzilverberg commented
omg this is what callback hell looks like :)
it looks lie your using mixpanel.identify
incorrectly.
you didnt pass in the identifier ("data") from the call to mixpanel.distinctId
.
aldryss commented
I totally agree on the callback hell, I didn't implement it like that on my
first tries but since I couldn't make it work, I was kinda desperate.
I'll tell you a joke, hoping it will brighten your day.
This is the story of a stupid dev who blocked mixpanel through the lucky
patcher adblocker on his phone and couldn't guess why sending events to
mixpanel API didn't work.
Thanks for the support, the plugin works like a charm, I'm just dumb and
paranoid
2016-12-21 22:10 GMT+01:00 Sam Zilverberg <notifications@github.com>:
… omg this is what callback hell looks like :)
it looks lie your using mixpanel.identify incorrectly.
you didnt pass in the identifier ("data") from the call to
mixpanel.distinctId.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#51 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABU5b6fDyI66Aq2YH8bxUY9jv3pLjp8Pks5rKZXdgaJpZM4LNI4Z>
.
--
Aldryss
samzilverberg commented
:)
happy it works for you, stupid stuff happens to us all!