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

[Feature request] Create, save (and eventually share ?) custom HTML templates #707

Open SW-Vincent opened 11 months ago

SW-Vincent commented 11 months ago

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 :

image

Aswell as an addition to the "create tag" menu : (may you forgive my poor editing skills) image 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 :

image 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. image 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 :

snake14 commented 11 months ago

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.