mszoernyi / ember-cli-mixpanel Goto Github PK
View Code? Open in Web Editor NEWEmber CLI addon for tracking users activities via Mixpanel
License: MIT License
Ember CLI addon for tracking users activities via Mixpanel
License: MIT License
Getting the following deprecation:
DEPRECATION: `lookup` was called on a Registry. The `initializer` API no longer receives a container, and you should use an `instanceInitializer` to look up objects from the container. See http://emberjs.com/guides/deprecations#toc_deprecate-access-to-instances-in-initializers for more details.
Will try to put in a PR soon.
Following the readme step by step I ran into this error. It looks like mixpanel doesn't exist?
Uncaught TypeError: Cannot read property 'disable_auto_tracking' of undefinedtrackRouteChange
@ tracking_mixin.js:23(anonymous function)
@ mixpanel.js:10apply
@ ember.debug.js:18042sendEvent
@ ember.debug.js:12385exports.default.mixin.Mixin.create.trigger
@ ember.debug.js:29739Queue.invoke
@ ember.debug.js:869Queue.flush
@ ember.debug.js:936DeferredActionQueues.flush
@ ember.debug.js:741Backburner.end
@ ember.debug.js:166Backburner.run
@ ember.debug.js:221run
@ ember.debug.js:15925ember$data$lib$system$adapter$$Adapter.extend.ajax.Ember.RSVP.Promise.hash.success
@ rest-adapter.js:784jQuery.Callbacks.fire
@ jquery.js:3094jQuery.Callbacks.self.fireWith
@ jquery.js:3206done
@ jquery.js:8259jQuery.ajaxTransport.send.callback
I feel that it should be possible to disable automated tracking of pageviews via config of this addon.
I have added this.trackEvent('Some Event'); in my controller & import TrackingMixin from './mixin/tracking_mixin';
While running my appilcation, I 'm getting below error in chrome's console & application is not loading
Uncaught TypeError: this.trackRouteChange is not a function in the 10th line of mixpanel.js
Any pointers
Please refer the snapshot while debugging
MixpanelMixin
is currently placed in a 'wrong' folder. It should be mixins
instead. Does it make sense to move the mixin from app/mixin
to addon/mixins
? Which would make it more clear where the file is coming from while reading your applications code: import MixpanelMixin from
ember-cli-mixpanel/mixins/tracking_mixin`
This has one issue I couldn't solve yet: How to get the applications config if the file is placed unter addons
?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.