analytics: Not working on iOS

I’m on a latest Meteor 1.3 version. The package works perfectly fine on the browser and I can see all the events in my Mixpanel, however when I make a build for iOS, it doesn’t send any data from iPhone.

After a lot of research and reading on the issue, I thought that the problem is hidden inside NSAppTransportSecurity introduced in iOS 9. So I followed this http://stackoverflow.com/questions/31254725/transport-security-has-blocked-a-cleartext-http and whitelisted mixpanel.com and mxpnl.com domains with their subdomains. I also switched on the Allow Arbitrary Loads option.

But still not getting any data for Mixpanel from iOS simulator or actual device.

My settings.json looks like this:

{
  "public": {
    "analyticsSettings": {
      "Google Analytics" : {"trackingId": "UA-xxxxxxxxxx-x"},
      "Keen IO"          : {"projectId": "xxxxxxxxxxxxxxxx", "writeKey": "xxxxxxxxxxxxxxxxxx"},
      "Mixpanel"         : {"token":  "xxxxxxxxxxxxxxxxxx", "people": true}
    }
  }
}

PS: also, maybe I didn’t get the documentation right, but I’m not getting any Google Analytics or Keen.io data even from the browser when calling analytics.track("My Event", { custom: "data" }) function. Is this function supposed to send data to all providers at once?

PPS: I’m not using browser-policy package.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 20 (10 by maintainers)

Most upvoted comments