@diosmosis opened this Pull Request on April 15th 2021 Member

Description:

Prints out the query of a segment, can be used if trying to determine if a segment is query is being built correctly or not.

Review

  • [ ] Functional review done
  • [ ] Potential edge cases thought about (behavior of the code with strange input, with strange internal state or possible interactions with other Matomo subsystems)
  • [ ] Usability review done (is anything maybe unclear or think about anything that would cause people to reach out to support)
  • [ ] Security review done see checklist
  • [ ] Code review done
  • [ ] Tests were added if useful/possible
  • [ ] Reviewed for breaking changes
  • [ ] Developer changelog updated if needed
  • [ ] Documentation added if needed
  • [ ] Existing documentation updated if needed
@diosmosis commented on April 15th 2021 Member

@flamisz segments are converted into SQL to select visits in Matomo, but for many segments the SQL is complicated and hard to imagine in your head (or mine at least), so the command prints it out so you can see how it's converted from a segment string (ie, pageUrl==whatever;browserCode=ff) to SQL for a specific table. You can also put a print statement or log in Matomo, which is what I used to do, but I found it annoying to do that.

This Pull Request was closed on April 16th 2021
Powered by GitHub Issue Mirror