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

Add possibility to test a certain regex (extraction definition) #16136

Open
tsteur opened this issue Nov 29, 2015 · 0 comments
Open

Add possibility to test a certain regex (extraction definition) #16136

tsteur opened this issue Nov 29, 2015 · 0 comments
Labels
c: Custom Dimensions For issues related to the Custom Dimensions plugin. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Comments

@tsteur
Copy link
Member

tsteur commented Nov 29, 2015

We could simply link to any regex online testing tool in the inline help. Alternatively there could be like a test icon behind each extraction linking to such a tool. Maybe there are even some tools that allow to already pass a regex via URL parameter.

We could also offer a testing tool ourselves but would be much work. We could like offer a text field to enter a URL or an Action Name followed by a button "Test". The result would show the extracted value and which of the defined extracted rule was actually applied / matched (if multiple ones were defined). If none was matched we would show a default message like "Could not extract a value for this pattern".

Online regex testing tools would have the advantage that they actually show the exact $matches of the preg_match including color highlighting etc but they are more difficult to use.

Why is this useful? If the regex does not track the expected data it is basically impossible to remove already tracked values from the database.

@tsteur tsteur transferred this issue from matomo-org/plugin-CustomDimensions Jun 29, 2020
@tsteur tsteur added c: Custom Dimensions For issues related to the Custom Dimensions plugin. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. labels Jun 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Custom Dimensions For issues related to the Custom Dimensions plugin. 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

2 participants