mixpanel

Is there any way to run javascript in iBooks without user interaction?

半世苍凉 提交于 2019-12-08 07:53:24
问题 We've been testing HTML widgets in iBooks 3 and had some success in connecting online. One of the drawbacks, though, is it requires user interaction to actually expand the widget and run Javascript. Is there a way to run Javascript in the background of the iBook, without requiring user interaction outside of regular paging? For example, if we wanted to have Mixpanel running in the background, how would we do that? Is there another type of widget that allows this to happen? Or is there

Is there any way to run javascript in iBooks without user interaction?

别来无恙 提交于 2019-12-07 18:18:28
We've been testing HTML widgets in iBooks 3 and had some success in connecting online. One of the drawbacks, though, is it requires user interaction to actually expand the widget and run Javascript. Is there a way to run Javascript in the background of the iBook, without requiring user interaction outside of regular paging? For example, if we wanted to have Mixpanel running in the background, how would we do that? Is there another type of widget that allows this to happen? Or is there something else that runs javascript besides the HTML widget? edit: To clarify, I'm using iBooks Author to

Content Security Policy: cannot load Mixpanel in Chrome extension

谁说胖子不能爱 提交于 2019-12-07 04:09:52
问题 I've been struggling with this for the past day and there are little-to-no resources available online for integrating Chrome Extensions and Mixpanel. I'd like for this thread to by the one that people refer to when dealing with integrating Mixpanel into a Chrome extension. The goal of my Mixpanel integration is to be able to track events both with my content script content.js as well as my popup.js (so basically across my whole extension) I have a popup.html file that calls <script src=

Content Security Policy: cannot load Mixpanel in Chrome extension

痞子三分冷 提交于 2019-12-05 10:14:57
I've been struggling with this for the past day and there are little-to-no resources available online for integrating Chrome Extensions and Mixpanel. I'd like for this thread to by the one that people refer to when dealing with integrating Mixpanel into a Chrome extension. The goal of my Mixpanel integration is to be able to track events both with my content script content.js as well as my popup.js (so basically across my whole extension) I have a popup.html file that calls <script src="mixpanel.js"></script> right before the </head> tag. In my mixpanel.js file is: (function(e,b){if(!b.__SV)

MixPanelAPI NoClassDefFoundError

丶灬走出姿态 提交于 2019-12-05 06:16:03
问题 I'm struggling with java.lang.NoClassDefFoundError when invoking com.mixpanel.android.mpmetrics.MixpanelAPI It is because I run proguard (I have to). However I added proguard exclusion: -keep public class com.mixpanel.android.mpmetrics.** or -keep public class com.mixpanel.android.mpmetrics.MixpanelAPI { *; } but it doesn't help. Notice worth mentioning is that I get MixpanelAPI lib in that way: compile "com.mixpanel.android:mixpanel-android:4.0.0@aar" So it's aar , not standard jar . How to

Mixpanel with EmberJS

久未见 提交于 2019-12-05 02:20:20
问题 Note: I began writing this question, and in writing it up ended up solving the problem. I'll leave it here and hopefully it will help someone else. I've been pounding my head against the wall with this for a while now and keep getting inconsistent results. Attempt 1 (from here) App.ApplicationController = Ember.Controller.extend({ routeChanged: function (){ mixpanel.track("pageview", {"url": window.location.href }); }.observes('currentPath') }); I had to deviate from the example since

Mixpanel 2.2 within an AMD structured web-app - e.g. require.js

萝らか妹 提交于 2019-12-04 09:34:41
问题 I'm attempting to make use of Mixpanel event tracking in a single page site based on Backbone.js and require.js. Looking at the snippet that Mixpanel provide for cut-and-pasting into a regular webpage, I can tell they've rolled their own async loading mechanism that pulls in the actual Mixpanel API from a standalone resource, do some extra work to setup 'people' and other attributes, and finally expose the 'mixpanel' object through the global namespace. I've tried to add shim config entries

How can I use mixpanel API?

匆匆过客 提交于 2019-12-04 08:36:33
问题 I'm not able to connect to mixpanel. I have tried with a correct api_key and api_secret, like this: <html> <head> <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.2.min.js" /> </script> <script type="text/javascript" src="faulty-labs-md5.js" /> </script> </head> <body> <script type="text/javascript"> $(document).ready(function() { $("#btnTest").click(function() { var api_key = 'BigSecret'; var api_secret = 'BigSecret2'; var expire = new Date('2012', '12', '24').getTime()

Mixpanel with EmberJS

别说谁变了你拦得住时间么 提交于 2019-12-03 20:43:10
Note: I began writing this question, and in writing it up ended up solving the problem. I'll leave it here and hopefully it will help someone else. I've been pounding my head against the wall with this for a while now and keep getting inconsistent results. Attempt 1 (from here ) App.ApplicationController = Ember.Controller.extend({ routeChanged: function (){ mixpanel.track("pageview", {"url": window.location.href }); }.observes('currentPath') }); I had to deviate from the example since mixpanel.track_pageview() is deprecated. This resulted in incorrect location logging since I can't find a way

MixPanelAPI NoClassDefFoundError

我是研究僧i 提交于 2019-12-03 17:25:17
I'm struggling with java.lang.NoClassDefFoundError when invoking com.mixpanel.android.mpmetrics.MixpanelAPI It is because I run proguard (I have to). However I added proguard exclusion: -keep public class com.mixpanel.android.mpmetrics.** or -keep public class com.mixpanel.android.mpmetrics.MixpanelAPI { *; } but it doesn't help. Notice worth mentioning is that I get MixpanelAPI lib in that way: compile "com.mixpanel.android:mixpanel-android:4.0.0@aar" So it's aar , not standard jar . How to run it with proguard but not loosing Mixpanel code ? As of version 4.5, Mixpanel advises using the