matomo-org / tag-manager

Free Open Source Matomo Tag Manager - A simple way to manage and maintain all of your (third-party) tags on your website.
https://matomo.org
GNU General Public License v3.0
170 stars 58 forks source link

Add the possibility to standardize the value of the variable #778

Open Chardonneaur opened 6 months ago

Chardonneaur commented 6 months ago

Hi Team,

When sending the value of a variable, the data can be messy. The idea would be to add next to the variable button: Screenshot from 2024-04-04 14-33-13 A menu to select between:

snake14 commented 6 months ago

Hi @Chardonneaur . Thank you for taking the time to create this issue. Just to confirm, you're wanting to have the option to force the value of a variable to a specific case? So, even if the variable pulls a slug-case value from the DOM, it will return the value in camelCase if that's what is selected?

AltamashShaikh commented 6 months ago

@Chardonneaur Can you please explain how will this be helpful ? We do have a way to change the value by criteria

Screenshot from 2024-04-05 05-15-01

ronan-hello commented 6 months ago

Hello everybody,

This feature would be really useful and would keep reports organized. For example, I meet lots of clients who set up on site search tracking (for exemple), but for whom this report is not really usable because of non-standardized values. In this table, you will find values ​​like:

Which could be grouped under a single “demo” value (easier to read sums and totals). Formatting data before storing it in the database makes reports easier to analyze, avoids duplicates and ensures the quality of the data collected.

This will be a great feature for everyone. Regards, Ronan H

AltamashShaikh commented 6 months ago

@Chardonneaur Then adding the option to change the case to lower/upper should be sufficient for this issue.

ronan-hello commented 6 months ago

Users should be able to handle formatting for accents, spaces, lower/upper, alphanum, this would be a complete feature.