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:
Juan Cruz Viotti 2016-03-21 09:19:20 -04:00
parent dfcedffedd
commit ad082fc268

View File

@ -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) {