mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 15:27:17 +00:00
Merge pull request #213 from resin-io/misc/trackjs-user-id
Configure TrackJS with userId
This commit is contained in:
commit
75bdc0e6d8
@ -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