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

[Bug] When switching ID Sites Matomo throws an error #711

Open Starker3 opened 10 months ago

Starker3 commented 10 months ago

When switching to a different website while editing an existing container, Matomo throws an error such as: The requested container "abcdefg" does not exist.

image

Since a container can only exist for a specific ID Site, it's expected that changing ID Sites shouldn't try to load the same Container ID. Perhaps changing this to an info banner instead of warning/error and expanding the message to be more clear would be helpful to users to understand that the container is specific to an ID Site.

AltamashShaikh commented 10 months ago

@Starker3 We should try to remove the idContainer on site change to get rid of this error totally if we can't do that atleast change this to a info :+1:

Starker3 commented 10 months ago

Thanks @AltamashShaikh I'm thinking that it might be useful if it is shown in a different way. Especially for users who are new to Matomo or to the Tag Manager they might not know that a container is specific to an ID Site. When they switch they might then be confused as to why the container is no longer accessible. But I guess if it's simpler to remove the idContainer parameter when changing ID Sites then that might be an optimal solution than changing the warning and copy.