mixpanel

iOS RemoteNotification swizzler infinity loop by two libraries

人盡茶涼 提交于 2020-06-26 14:57:52
问题 In my app, I'm using Mixpanel iPhone library to record usage, and Firebase iOS SDK Messaging library to handle notifications. The issue happens when the iOS app is in the background, after user tap on a notification toast, app launches but will crash in a few seconds. The failure appears to be an EXC_BAD_ACCESS from Mixpanel's mp_swizzledMethod_5 function. While digging into the call stack I found that Mixpanel's mp_swizzledMethod_5 and Firebase's FCM_swizzle

Mixpanel.track from the controller

北城余情 提交于 2020-01-02 21:48:42
问题 I have an application that has a simple form submission (an email). I have MixPanel's tracking analytics integrated into the app, and want to track every time an interaction with this form happens--specifically, when a user successfully/unsuccessfully submits the form, and what their email is. After doing some research, it seems simplest method is to track at the controller level (where I am running validations, and making the overall decision whether or not the submission is legitimate).

Mixpanel.track from the controller

╄→尐↘猪︶ㄣ 提交于 2020-01-02 21:48:06
问题 I have an application that has a simple form submission (an email). I have MixPanel's tracking analytics integrated into the app, and want to track every time an interaction with this form happens--specifically, when a user successfully/unsuccessfully submits the form, and what their email is. After doing some research, it seems simplest method is to track at the controller level (where I am running validations, and making the overall decision whether or not the submission is legitimate).

How do I log a MixPanel event when a user clicks a link?

梦想与她 提交于 2020-01-01 05:02:51
问题 I'm trying to log an event in MixPanel when users click a certain type of link. I'm using JQuery to do it unobtrusively and as far as I understand I need to add a callback function to take the user to URL after the event has been logged. This is the code I'm using: <script type="text/javascript"> $("#more-posts").click(function() { event.preventDefault(); mpq.track("More Posts", function(){ window.location = $(this).attr("href"); }); }); </script> Unfortunately this neither takes the user to

Mixpanel track event failing intermittently

人盡茶涼 提交于 2019-12-25 02:56:03
问题 I have a few different mixpanel events being sent from my page. A couple of them are sent upon form submissions (two different forms, each in its own modal). Of all the events, one of the form submission events fails intermittently and I can't figure out why. Both form submissions have jQuery like: $(document).on 'submit', '#myForm', (e) -> mixpanel.track('my form submitted') One form is reliable, the other is not (it fails about 3/4 of the time). I changed the unreliable one to: $(document)

Can't install a pod (Mixpanel) via CocoaPods - Fails to compile (file not found) - Bridging header issue?

岁酱吖の 提交于 2019-12-23 22:06:13
问题 I'm trying to update my project's version of Mixpanel to use Cocoapods, as it was previously installed manually. I already was using Cocoapods, so I assumed it would have been an easy update to just add pod 'Mixpanel', '~> 2.9' to the Podfile and run pod install . After doing this, I am getting the following errors: At the import statement #import "Mixpanel.h" /Users/timc/ios/app/MyApp/Classes/AnalyticsUtil.h:10:9: 'Mixpanel.h' file not found And also this one Failed to import bridging header

mixpanel-2-latest.min.js:9 Mixpanel error: “mixpanel” object not initialized

痞子三分冷 提交于 2019-12-18 03:50:50
问题 mixpanel-2-latest.min.js:9 Mixpanel error: "mixpanel" object not initialized. Ensure you are using the latest version of the Mixpanel JS Library along with the snippet we provide. From the last couple of days, I am seeing this error in the console when I do inspect element in my Google Chrome. I am using the latest Chrome version 64. I am not using mixpanel . It's also showing up if I open any public website. Any idea how to resolve this error? 回答1: Check your extensions, for me it was 'Page

mixpanel-2-latest.min.js:9 Mixpanel error: “mixpanel” object not initialized

有些话、适合烂在心里 提交于 2019-12-18 03:50:08
问题 mixpanel-2-latest.min.js:9 Mixpanel error: "mixpanel" object not initialized. Ensure you are using the latest version of the Mixpanel JS Library along with the snippet we provide. From the last couple of days, I am seeing this error in the console when I do inspect element in my Google Chrome. I am using the latest Chrome version 64. I am not using mixpanel . It's also showing up if I open any public website. Any idea how to resolve this error? 回答1: Check your extensions, for me it was 'Page

Mixpanel track_links does not work with dynamically added elements

ⅰ亾dé卋堺 提交于 2019-12-18 02:54:33
问题 I'm having trouble using mixpanel.track_links with links added dynamically (after page load). For a general example, given this page: <div id="link-div"></div> <input type="button" id="add-link" /> <script type="text/javascript"> mixpanel.track_links(".mixpanel-event", "event name", function(ele) { return { "type": $(ele).attr("type")}}); </script> At some user action, links are added to the page using jquery. For example: $('#add-link).click(function() { $('#link-div').html('<a class=

Mixpanel does not work with swift

梦想与她 提交于 2019-12-11 12:14:31
问题 Cocoapods is not ready for Swift yet. When I implemented Mixpanel into my iOS project that uses Swift, I got several errors. How to fix this issue and make mixpanel to work? 回答1: Add this line of code to every file that is giving an error #import <UIKit/UIKit.h> Also need to add these in your linked frameworks and libraries: libicucore.dylib CFNetwork.framework Security.framework Then add this to your Bridging-Header.h file: #import "Mixpanel.h" Then add this piece of code in your appdelegate