mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-24 19:56:37 +00:00
Configure TrackJS with userId
Otherwise, all we get in TrackJS are "anonymous" users, without a way to link them to Mixpanel users.
This commit is contained in:
parent
dfcedffedd
commit
ad082fc268
@ -55,6 +55,13 @@ analytics.config(function($mixpanelProvider) {
|
||||
|
||||
// TrackJS integration
|
||||
// http://docs.trackjs.com/tracker/framework-integrations
|
||||
|
||||
analytics.run(function($window) {
|
||||
$window.trackJs.configure({
|
||||
userId: username.sync()
|
||||
});
|
||||
});
|
||||
|
||||
analytics.config(function($provide) {
|
||||
$provide.decorator('$exceptionHandler', function($delegate, $window, $injector) {
|
||||
return function(exception, cause) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user