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

easier tracking code debugging #1178

Open
diosmosis opened this issue Jul 17, 2024 · 0 comments
Open

easier tracking code debugging #1178

diosmosis opened this issue Jul 17, 2024 · 0 comments
Labels
Easier debugging For issues that makes troubleshooting issues for developers easier. Enhancement For new feature suggestions that for example enhance Matomo's cabapilities..

Comments

@diosmosis
Copy link
Member

Troubleshooting tracker problems caused by other WordPress plugins is currently painful and very much not user friendly. It requires having users:

  • email support
  • ask the user to set the tracker debug mode setting to "debug on demand"
  • have a dev or support team member then manually send tracking requests to Matomo for WordPress to collect debug output
  • ask the user to unset the tracker debug mode setting

This process can be simplified greatly by:

  • only allow "debug on demand" as an option for the tracker debug mode setting
  • when this setting is enabled:
    • set the tracker debug/debug on demand setting
    • add some debug code to the JavaScript tracker that will send the correct debug parameter if mtm_debug=1 is found in the current website URL
    • only allow tracker debugging if the current user is a Matomo admin
    • send tracker debug output to the WordPress debug.log file

Tracker debug information can then be obtained by having users:

  • enable WP_DEBUG/WP_DEBUG_LOG (can be removed if we save the tracker debug output to a database field)
  • enable the tracker debug mode setting
  • perform some visits on the website while logged in
  • send the tracker debug.log file (or collect debug output via the MWP admin UI) to support
@diosmosis diosmosis added Enhancement For new feature suggestions that for example enhance Matomo's cabapilities.. Easier debugging For issues that makes troubleshooting issues for developers easier. labels Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Easier debugging For issues that makes troubleshooting issues for developers easier. Enhancement For new feature suggestions that for example enhance Matomo's cabapilities..
Projects
None yet
Development

No branches or pull requests

1 participant