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
169 stars 58 forks source link

[Enhancement] Add "Copy tag" option in Matomo Tag Manager #615

Open SW-Vincent opened 1 year ago

SW-Vincent commented 1 year ago

Sometimes we need to build a really similar Tag / Trigger within Matomo TMS. When it happens, being able to just copy a tag would do a fine addition to Matomo Tag Manager features !

Summary

Considering this feature, it would require to add a "copy" button on the side of each Tag as you can see in the following exemple :

image

Which would lead to the following screen :

image

It would create the same tag, named "Copy of MTM - myTagName" with either :

Of course this goes with the possibility to copy triggers within the triggers section directly as well.

Your Environment

snake14 commented 1 year ago

Hi @SW-Vincent . Thank you for taking the time to create this issue. It appears that it might be a duplicate of issue 51. However, that one might have gotten lost in the backlog. Also, since you provided some good UI suggestions, I'm going to keep this issue and mark it for prioritisation.

Stan-vw commented 1 year ago

Thanks for the suggestions @SW-Vincent. I'll use the word "Duplicate" instead of "Copy" since the feature sounds like a duplication feature, not a copying feature (which should have a paste action).*

Duplicating Tags makes sense to me, duplicating triggers also makes sense to me. However, I'm not seeing the clear logic in asking whether we should create duplicates of Triggers when a user is duplicating a Tag.

Would this feature work well for you if it didn't include the pop-up with the question to duplicate the triggers? I.e. the moment you click on Duplicate Tag/Trigger it immediately does just that, and not something else as well.

*Edit: I saw some other products call it "Make a copy", which I guess is clear enough as well.

SW-Vincent commented 1 year ago

It would be great already !

MatomoForumNotifications commented 1 year ago

This issue has been mentioned on Matomo forums. There might be relevant details there:

https://forum.matomo.org/t/duplicate-tags-or-triggers/40457/8

mlisowsk commented 11 months ago

Please implement also for on premise. Specifically I would like to copy tags and triggers from one container to another. Alternatively let us duplicate an entire container including triggers and tags, for example as an option when creating a new container.

heurteph-ei commented 11 months ago

Hi @mlisowsk

Alternatively let us duplicate an entire container including triggers and tags, for example as an option when creating a new container.

This is easily doable: Save the origin container via the export button, then use the import button in the target container...

Chardonneaur commented 6 months ago

I have a client who is asking the exact same feature, same for variables.

Stan-vw commented 1 month ago

@SW-Vincent and co, it'd be great to hear your thoughts on the following: is it fine to click "copy tag" and it will copy the tag within the existing container (within the same website), or would it be more powerful and save you a lot of time if it had the added ability to choose which website+container you want to copy this to?

It'll be extra work, but I'd like to know what the desired endgame is before we start, so we can create a proper UX rather than changes upon changes 😄

SW-Vincent commented 1 month ago

Hi @Stan-vw, what i had in mind was copying within the same container (although copying tags might have its uses).

Neugart commented 1 month ago

Hi @SW-Vincent

@SW-Vincent and co, it'd be great to hear your thoughts on the following: is it fine to click "copy tag" and it will copy the tag within the existing container (within the same website), or would it be more powerful and save you a lot of time if it had the added ability to choose which website+container you want to copy this to?

It'll be extra work, but I'd like to know what the desired endgame is before we start, so we can create a proper UX rather than changes upon changes 😄

I would also be happy to have the "copy" features since we have a lot of similar tags where the url varies only a bit. For us, it would be great to have both possibilities:

Thanks!

Stan-vw commented 1 month ago

Keen to get your thoughts on something like this, that would potentially be reusable for container/tags/triggers/variables, but perhaps also for reports like funnels and goals. image

Neugart commented 1 month ago

Looks good!

Chardonneaur commented 3 days ago

I got a user asking for this feature.

AltamashShaikh commented 2 days ago

@Chardonneaur This issue is on our list of changes and its scheduled in our upcoming sprints