Show Tag Manager container names instead of IDs in dropdowns
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.publicIdwithcontainer.namein 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.
Seems like a very simple change but e2e will add a little time
Implementation brief ✅
Tested and am still seeing container ID and not container name
Setup Analytics, setup Tag manager with container name of 'Container'
Notice:

See attached latest zip that I tested with.
One thing to note - I did not add the tags to my site as instructed here:

@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.
I confirmed container names are displayed in the container drop downs.

Passed QA ✅