site-kit-wp icon indicating copy to clipboard operation
site-kit-wp copied to clipboard

Show Tag Manager container names instead of IDs in dropdowns

Open felixarntz opened this issue 7 years ago • 5 comments

Feature Description

In the Tag Manager module setup/settings, the container dropdowns currently show each container's ID (GTM-xxxxxxx) which is not very helpful for a user to see, since these IDs are internally generated by Tag Manager. Let's instead show each container's name as it is more indicative of what the container was created for.


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

Acceptance criteria

  • In Tag Manager module setup/settings:
    • Every container in the dropdown should show its name instead of its ID.
    • Nothing in the actual functionality should change, internally we still need to rely on IDs.

Implementation Brief

Update <TagmanagerSetup>

  • Replace user facing container.publicId with container.name in select options (keep ID as option value)

POC/WIP branch https://github.com/google/site-kit-wp/compare/poc/591-tag-manager-container-name

  • Update E2E tests

Changelog entry

  • Display Tag Manager container names instead of IDs in dropdowns for more user-friendly selection.

felixarntz avatar Sep 25 '19 09:09 felixarntz

Seems like a very simple change but e2e will add a little time

aaemnnosttv avatar Sep 26 '19 17:09 aaemnnosttv

Implementation brief ✅

felixarntz avatar Oct 07 '19 10:10 felixarntz

Tested and am still seeing container ID and not container name

Setup Analytics, setup Tag manager with container name of 'Container'

Notice: image

See attached latest zip that I tested with.

One thing to note - I did not add the tags to my site as instructed here: image

google-site-kit.zip

cole10up avatar Nov 19 '19 23:11 cole10up

@cole10up The container name should only be displayed when you pick a container (in the Container dropdown in GTM setup flow and when editing settings). In the screenshot you posted, it should continue to show the container ID.

felixarntz avatar Nov 20 '19 07:11 felixarntz

I confirmed container names are displayed in the container drop downs.

image

Passed QA ✅

cole10up avatar Nov 20 '19 20:11 cole10up