To be quite fair, there are very few tag templates within the Matomo Tag Manager.
For those who would like to use the Matomo Tag Manager for anything else than Matomo, it can be a huge handicap and customers can often chose to use the Matomo Tag Manager for Matomo only and keep an other Tag Manager for any other purpose (espescially since other tag managers have error handling, which is an other topic).
It would make a fine addition to Matomo Tag Manager features to be able to create and save Tags templates.
It would require an addition to the container left menu :
Aswell as an addition to the "create tag" menu :
(may you forgive my poor editing skills)
We could either imagine the "choose" button to open a pop-up to select the desired template or it could be a drop-down menu just like the "select trigger" menu within a tag.
The tags template section would work just like the tag section, with the list of created tags templates and a button below to "create a template". Each tag template with an edit button and a delete button just like tags have.
Now for the tag template edition interface, it may look like this :
In this exemple the name / description section would dynamicly expand based on a specific syntax (i chose #field-name# to differenciate it from variable syntax but it is just an example).
Edit : I forgot to update the description of the last field within the capture (bottom right), don't take it into account.
Finally, the template use would be pretty much similar to the use of any Matomo Tag Manager template, nothing special here.
Note that i didn't specify things like "drop down fields" just like "tracking type" in the matomo tag template.
There could be either :
a "parameter" section to define all selectable values for this type of field, which would require a specific syntax to differenciate fields and parameters.
a dropdown menu within the field section at the bottom to define a field either as free input or limited (in which case we would be able to define its possible values).
Additionnally, and i say so because it would probably require bigger dev efforts, it would be nice to be able to share / import templates, either :
locally, just like we import a container version
online, to share templates or use templates from the community. It would hightly compensate the limited ammount of templates issue but would require a dedicated space.
Edit : what happens when a used template is edited should be considered for error handling
Hi @SW-Vincent. Thank you for taking the time to put together this detailed feature request. I am marking it for our Product team to review and prioritise.
To be quite fair, there are very few tag templates within the Matomo Tag Manager. For those who would like to use the Matomo Tag Manager for anything else than Matomo, it can be a huge handicap and customers can often chose to use the Matomo Tag Manager for Matomo only and keep an other Tag Manager for any other purpose (espescially since other tag managers have error handling, which is an other topic).
It would make a fine addition to Matomo Tag Manager features to be able to create and save Tags templates.
It would require an addition to the container left menu :
Aswell as an addition to the "create tag" menu : (may you forgive my poor editing skills) We could either imagine the "choose" button to open a pop-up to select the desired template or it could be a drop-down menu just like the "select trigger" menu within a tag.
The tags template section would work just like the tag section, with the list of created tags templates and a button below to "create a template". Each tag template with an edit button and a delete button just like tags have.
Now for the tag template edition interface, it may look like this :
In this exemple the name / description section would dynamicly expand based on a specific syntax (i chose #field-name# to differenciate it from variable syntax but it is just an example). Edit : I forgot to update the description of the last field within the capture (bottom right), don't take it into account.
Finally, the template use would be pretty much similar to the use of any Matomo Tag Manager template, nothing special here.
Note that i didn't specify things like "drop down fields" just like "tracking type" in the matomo tag template. There could be either :
Additionnally, and i say so because it would probably require bigger dev efforts, it would be nice to be able to share / import templates, either :
locally, just like we import a container version
online, to share templates or use templates from the community. It would hightly compensate the limited ammount of templates issue but would require a dedicated space.
Edit : what happens when a used template is edited should be considered for error handling