tag-manager icon indicating copy to clipboard operation
tag-manager copied to clipboard

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

Open SW-Vincent opened this issue 1 year ago • 14 comments

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 :

  • the same triggers if "No" was selected on the previous screen
  • the copy of the triggers if "Yes" was selected on the previous screen

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

Your Environment

  • Matomo Version: Matomo Cloud

SW-Vincent avatar Apr 03 '23 16:04 SW-Vincent

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.

snake14 avatar Apr 03 '23 20:04 snake14

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.

Stan-vw avatar Apr 04 '23 02:04 Stan-vw

It would be great already !

SW-Vincent avatar Apr 04 '23 07:04 SW-Vincent

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

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.

mlisowsk avatar Sep 22 '23 10:09 mlisowsk

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

heurteph-ei avatar Sep 22 '23 11:09 heurteph-ei

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

Chardonneaur avatar Mar 08 '24 15:03 Chardonneaur

@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 😄

Stan-vw avatar Jul 23 '24 04:07 Stan-vw

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

SW-Vincent avatar Jul 23 '24 07:07 SW-Vincent

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:

  • copy within the same container
  • copy in another container

Thanks!

Neugart avatar Aug 07 '24 08:08 Neugart

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

Stan-vw avatar Aug 12 '24 04:08 Stan-vw

Looks good!

Neugart avatar Aug 13 '24 09:08 Neugart