Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Error report with in Angular framework #19562

Open
VincentCoucharriere opened this issue Jul 22, 2022 · 3 comments
Open

Support Error report with in Angular framework #19562

VincentCoucharriere opened this issue Jul 22, 2022 · 3 comments
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users.

Comments

@VincentCoucharriere
Copy link

I seems that Angular framework caches and handles "uncaught" JS error / exception : new Error('my error')
This prevents Matomo from catching & reporting these errors.
How to solve this ?
Can you please take care of this ?

Summary

Your Environment

  • Matomo Version: latest (cloud)
  • Angular Version: 10+
@VincentCoucharriere VincentCoucharriere added the Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. label Jul 22, 2022
@bx80
Copy link
Contributor

bx80 commented Jul 24, 2022

Hi @VincentCoucharriere, thanks for your question. We're in the process of migrating Matomo from AngularJS to Vue.js which should resolve this issue.

Could you explain a bit about what you are trying to achieve by catching JavaScript errors? If you are experiencing a JavaScript error with Matomo cloud then I'd recommend contacting support. If you are developing a plugin or making code changes then it's possible to define an AngularJS exception handler to catch and log errors.

@bx80 bx80 added the Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users. label Jul 24, 2022
@heurteph-ei
Copy link

@bx80 @VincentCoucharriere, wouldn't it be about this option (in MTM):
image
?

(then this topic should be moved into the MTM project)

@sgiehl
Copy link
Member

sgiehl commented Aug 8, 2022

@heurteph-ei Guess it is a bit unclear what the issue actually was about. If it is about catching and tracking javascript errors on a website, then it might be correct here. Matomo currently appends an onError handler to track possible javascript errors.
If Angular or other frameworks might catch there errors themself and the error handler is not triggered, then Matomo currently can't track it.
But if Angular provides a possibility to hook into their error handling, one could even track the javascript error event manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users.
Projects
None yet
Development

No branches or pull requests

5 participants