mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-22 02:36:32 +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
|
// TrackJS integration
|
||||||
// http://docs.trackjs.com/tracker/framework-integrations
|
// http://docs.trackjs.com/tracker/framework-integrations
|
||||||
|
|
||||||
|
analytics.run(function($window) {
|
||||||
|
$window.trackJs.configure({
|
||||||
|
userId: username.sync()
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
analytics.config(function($provide) {
|
analytics.config(function($provide) {
|
||||||
$provide.decorator('$exceptionHandler', function($delegate, $window, $injector) {
|
$provide.decorator('$exceptionHandler', function($delegate, $window, $injector) {
|
||||||
return function(exception, cause) {
|
return function(exception, cause) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user