On the docs it says the following:
You can turn on Mixpanel logging by adding the following Preprocessor Macros in Build Settings: MIXPANEL_LOG=1 and MIXPANEL_DEBUG=1.
So that's what I did:
But non of my events show up in the console :(
This is how I track events:
Mixpanel *mixpanel = [Mixpanel sharedInstance];
[mixpanel track:@"TEST"];
I belive you are using CocoaPods to install the Mixpanel library. In this case, the library is actually compiled separately before it is included in your project. You need to open the Pods
project in your workspace and choose the Pods-Mixpanel
target and set the preproccessor macros there, so that they are evaluated when the Mixpanel library compiles.
Here's a fuller view for where the Mixpanel based preprocessor macros should be added:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With