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

Improve "missing goal" handling when calling trackGoal #18007

Open
iamfinky opened this issue Sep 15, 2021 · 0 comments
Open

Improve "missing goal" handling when calling trackGoal #18007

iamfinky opened this issue Sep 15, 2021 · 0 comments
Labels
c: Platform For Matomo platform changes that aren't impacting any of our APIs but improve the core itself. c: Usability For issues that let users achieve a defined goal more effectively or efficiently. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Comments

@iamfinky
Copy link

Summary

When I am triggering a trackGoal call with Matomo, if the goal isn't defined for the site I'm tracking or I've got the siteId wrong (i.e. a typo, etc). Matomo reports an HTTP 400 response when POSTing my Goal tracking event. This appears in the browser console with no clear information stating what the problem is.

What would be nice would be if Matomo could log an error saying something like "Goal not found" to help debug.

Your Environment

  • Matomo Version: 4.4.1
  • PHP Version: 7.4.23
  • Server Operating System: Linux
  • Additionally installed plugins: n/a
@iamfinky iamfinky added the Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. label Sep 15, 2021
@tsteur tsteur added c: Platform For Matomo platform changes that aren't impacting any of our APIs but improve the core itself. c: Usability For issues that let users achieve a defined goal more effectively or efficiently. labels Sep 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Platform For Matomo platform changes that aren't impacting any of our APIs but improve the core itself. c: Usability For issues that let users achieve a defined goal more effectively or efficiently. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

3 participants