angulartics / angulartics-google-analytics

Google Analytics plugin for Angulartics
MIT License
133 stars 86 forks source link

Multiple transition errors #90

Closed Wuntenn closed 7 years ago

Wuntenn commented 7 years ago

Is anyone able to help me to understand why I'm getting the following errors?:

I'm using Angulartics: 1.3.0 and Angulartics-google-analytics 0.4.0

DanWilkerson commented 7 years ago

That looks like the Angulartics error tracking is borking the stack, but it's not the source of the error:

(relevant code in question):

function exceptionTrack($provide) { $provide.decorator('$exceptionHandler', ['$delegate', '$injector', function ($delegate, $injector) { return function (error, cause) { var result = $delegate(error, cause); var $analytics = $injector.get('$analytics'); if ($analytics.settings.trackExceptions) { $analytics.exceptionTrack(error, cause); } return result; }; }]); }

I don't think this is because of angulartics, but rather an exception bubbling from someplace else in your app that Angulartics is catching and processing.