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

[Enhancement] Prevent user from deleting a custom variable called within a custom JS variable

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

Currently, when trying to delete :

  • a variable called within a tag or trigger ;
  • a variable called within a trigger ;

Matomo Tag Manager will prevent you from deleting it, displaying the list of active tag / triggers preventing you from doing so : image

BUT there is no such a think when trying to delete a variable that is called within a custom JS variable (which is a much more recent feature).

SW-Vincent avatar Sep 25 '24 07:09 SW-Vincent

Hi @SW-Vincent Thank you for surfacing the problem and creating this issue. It definitely sounds like we should look into expanding our variable usage check.

snake14 avatar Sep 25 '24 20:09 snake14

Thank you again for surfacing this issue @SW-Vincent . The fix has been merged and should be included in the next release of Matomo.

snake14 avatar Jan 13 '25 02:01 snake14