Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Secondary AMP UX/UI issues with Tag Manager #5132

Closed
wpdarren opened this issue Apr 26, 2022 · 2 comments
Closed

Secondary AMP UX/UI issues with Tag Manager #5132

wpdarren opened this issue Apr 26, 2022 · 2 comments
Labels
fixed Module: Tag Manager Google Tag Manager module related issues

Comments

@wpdarren
Copy link
Collaborator

wpdarren commented Apr 26, 2022

Bug Description

While testing #5044 I discovered a few issues with Secondary AMP and Tag Manager.

  1. This first issue I think is not working as expected based on my testing on Primary AMP. I have an existing tag, and when setting up tag manager, the message appears An existing tag GTM-PDXBRTT was found on the page. If you prefer to collect data using that existing tag, please select the corresponding account and property above. which is expected. When I select the Account, Web and AMP container for GTM-PDXBRTT the snippet toggle doesn't disable. It does for primary AMP.

I am assuming it should disable? Here's a screencast.

s-amp-1.mp4
  1. In the scenario above, I saw a message in settings An existing tag was found on your site (GTM-PDXBRTT). If you later decide to replace this tag, Site Kit can place the new tag for you. Make sure you remove the old tag first. This is expected. When I edit the settings though there is no message notifying me that I have an existing tag.

See screenshot below.

  1. On the same settings screen the message above the tag manager Account, Web and AMP container says You can change these later in your settings. and we are already on the settings page.

Update: This isn't just an AMP issue, it also appears with just a web container.

image


Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

Implementation Brief

Test Coverage

QA Brief

Changelog entry

@wpdarren wpdarren added the Type: Bug Something isn't working label Apr 26, 2022
@aaemnnosttv
Copy link
Collaborator

  1. When I select the Account, Web and AMP container for GTM-PDXBRTT the snippet toggle doesn't disable. It does for primary AMP.

@wpdarren I think this may be expected in secondary AMP because we don't have separate toggles for controlling the web and AMP container snippets independently. Containers are web/amp-specific so toggling them both off would result in one of them not loading if indeed there was only an existing tag for one of them (we only detect a single existing tag at the moment rather than all which is a problem here too).

For GTM specifically, I have tested this in the past and it doesn't result in duplicate loading for a container that is tagged more than once (you're welcome to test this as well to confirm) so it shouldn't really be an issue.

@aaemnnosttv aaemnnosttv added the Module: Tag Manager Google Tag Manager module related issues label Aug 2, 2022
@aaemnnosttv
Copy link
Collaborator

@wpdarren following up here:

  1. Snippet toggles do not switch off when an existing tag is detected that matches the selected container: this is expected as mentioned above
  2. "When I edit the settings though there is no message notifying me that I have an existing tag" : this seems to have been already addressed. See https://google.github.io/site-kit-wp/storybook/develop/?path=/story/tag-manager-module-settings--edit-with-all-settings-with-existing-tag
  3. "You can change these later in your settings." when already on the settings page: this has also been fixed already it seems :)

Closing this one out as everything appears to already be addressed 👍

@aaemnnosttv aaemnnosttv closed this as not planned Won't fix, can't repro, duplicate, stale Dec 16, 2022
@aaemnnosttv aaemnnosttv added fixed and removed Type: Bug Something isn't working labels Dec 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed Module: Tag Manager Google Tag Manager module related issues
Projects
None yet
Development

No branches or pull requests

2 participants