A web designer has added “analytics” to the site. Your agency wants to install Google Tag Manager. Before anyone pastes another snippet, open the website. Which system already sends page views? Which Google Analytics property receives them? A fresh container can work perfectly and still double your figures.

This guide sets up one company-owned web container, proves it runs on the pages customers use, and verifies one GA4 page view. It suits a business with control over its site templates or CMS integration. A hosted checkout, booking platform or separate client portal can have different installation rules. Treat each as a separate surface to inspect.

Draw the route from the browser to your report

A GTM account holds containers and controls access. The web container holds the tags, triggers and variables that run on your site. Its public ID begins with GTM-. Putting that ID in a site builder tells the builder which container to load. It doesn't choose an Analytics property or start a useful report by itself.

A Google tag sets up collection for a Google destination. A GA4 web data stream has a measurement ID beginning with G-. The web stream belongs to a property, which is where you read the results. A Google tag can have additional IDs or destinations. Keep a record of the container, Google tag and receiving web stream in the terms their respective screens use. A page can also send data directly through a CMS integration without GTM.

Imagine a swimming school with a WordPress marketing site and a booking provider on another hostname. The owner can edit the marketing site. The booking provider controls its own checkout. On the school site, a timetable view is a reasonable first test. A completed swimming lesson enrolment is a different measurement project requiring a signal from the booking system. Decide where your authority and your first release end before you promise either result.

Inventory what already runs

Use a test browser profile. Open a public page with no customer details in its URL. Start Tag Assistant and follow the site's normal consent flow. Record the container IDs and Google destinations it detects, then repeat on a service page and any distinct template the business relies on. A campaign landing page made in a different page builder can omit a perfectly working site-wide header.

Inspect the places allowed to add tracking. These might include a CMS analytics setting, a plugin, a theme header, a site-wide custom code field, a commerce integration or a consent platform. Record the installer and who can change it. The same ID can appear in the head script and the fallback snippet from one normal GTM installation. Count actual behaviour before calling it a duplicate.

Surface Example observation Setup decision
School homepage CMS sends a page view to the school's GA4 stream Keep as baseline until an equivalent GTM test passes
Holiday program landing page Separate template, no detected container Include this template in the installation
Booking checkout Vendor owns the page and supplies its own reporting Confirm vendor support before changing collection there

If the right container already exists, get authorised access and use it. If a supplier owns it, ask for a documented handover before installing a rival container. If two systems send the same event, use the duplicate-container audit to identify the sender you intend to retain.

Establish ownership while everyone still remembers the login

Sign in to Tag Manager with a company-managed Google account. Use an existing business account or choose Create Account, set the organisation and country, name the container for the site it serves, and select Web as the target platform. Copy the issued container ID into your handover record. Mobile app and server containers serve different runtimes.

Under Admin, review User Management at account and container level. A person who writes and tests a change can have different access from the person who publishes it. Give the business recoverable administrator coverage through named users. Record the publisher for this particular container and who can approve a change to advertising or consent. Check GA4 access separately. The right to edit GTM does not automatically let someone inspect the intended Analytics property.

Write down a first-release acceptance test. For the school it might read: “With analytics permitted in our test session, one visit to the timetable produces one page_view in the school's test property, with the timetable title and address. The separate booking service is outside this release.” It gives the site builder a definition of finished and stops a later dashboard disagreement from becoming guesswork.

Install the web container once per intended template

In the container workspace click its GTM- ID near the top, or the Install Tag Manager card. Google supplies two snippets. For a manual installation, place the script as high in the document's <head> as instructed and the fallback immediately after the opening <body>. Use the exact snippets shown for your container. If the platform provides a supported GTM integration, follow that integration's instructions instead. A field requesting an ID normally expects the ID, not a block of HTML. Google’s web container installation instructions

On WordPress, identify which installation mechanism will survive theme and plugin updates. On a site with independently rendered page layouts, check a representative URL for each. Review staging and production separately. Publishing a container version affects each environment that loads it under its configuration. A staging installation that sends to production may contaminate live reports even when the site itself is password-protected.

Use synthetic URLs and test destinations for the first exercise. Avoid customer account pages and signed links. Inspect what is already present in page addresses, titles or automatic event parameters before enabling additional collection. A tag with no custom “email” field can still see an email that somebody carelessly placed in a URL.

Connect the intended Google destination

In GA4, open Admin → Data streams, select the correct web stream and copy its measurement ID. Check the property name and stream URL. An event that arrives instantly in the wrong property can make a broken setup look convincing.

In GTM, open Workspace → Tags → New → Tag Configuration and choose the Google tag or Google destination setup offered for the destination you use. Enter the ID specified for that setup and give the object a recognisable name such as Google tag | GA4 | school test. Google's setup uses Initialization – All Pages for the base tag. Consent defaults for your implementation need to take effect before dependent tags run. A consent management platform may provide its own integration and initiation sequence. Google’s Google tag setup instructions

Check whether the existing CMS integration is still sending its own automatic page view. On staging, switch off only its overlapping measurement during the comparison. Make a note of the original setting. A commerce plugin may also provide purchase events, consent state or order details that a new base tag will not recreate. Switching off the whole integration to fix a duplicate page view can remove those capabilities.

For the initial release, leave unrelated campaign and custom tracking out of the workspace. A page view can establish that the container loads, the destination is correct and the visitor's consent choice is represented. It does not establish that forms or payments are tracked. Add a business event later when you can name its success condition.

Run the timetable test in both tools

  1. Click Preview in the intended workspace. Enter the staging timetable URL and connect. Keep Tag Assistant and the site window open. Choose the site's test consent state normally.
  2. In Tag Assistant select the matching container and the timetable page. Inspect the early events and the Google tag. Check the consent state at the time of evaluation. Record the container ID, visible title and intended stream.
  3. In the test GA4 property open Admin → DebugView. Select the test device when multiple sessions appear. Preview can enable debugging for the test browser. Look for the page_view, then inspect its page location and title. A session can generate other events such as session_start; count only the event defined in your test.
  4. Follow an ordinary link to the contact page. Expect one page view for that destination if it loads a full new document. Check the holiday-program landing page by direct entry as well. If internal navigation updates the screen without a document load, use the single-page navigation guide.
  5. Repeat the privacy-relevant path in a separate, fresh profile with analytics declined. Compare the observed behaviour with the site's approved basic or advanced consent implementation. DebugView may omit activity when relevant consent is absent. That alone does not diagnose a broken installation.

Suppose Tag Assistant shows the new container on all three pages. DebugView shows two timetable views, one contact view and one program view. Repeating the test gives the same pattern. In this example the timetable template still has an inline Google tag, so disabling the global CMS setting only cleared the other templates. Remove the overlapping timetable installation on staging, repeat the original three tests, then record the new one-per-page result. You have a concrete cause and an equivalent before-and-after check.

Check the three controls the first administrator will need

Before calling the setup finished, ask somebody other than its installer to use the handover. Can they identify the company-owned account from their own Google login? Can the authorised publisher see the version that controls the public site? Can the report owner open the matching property and point to the stream receiving the timetable view? These are separate access questions. Passing one does not resolve the others.

The swimming school might discover that its marketing coordinator can see the right Analytics report, but only the designer can publish GTM. Fix the ownership gap through the normal administrator process while the designer is available. There is no need to share a single Google password or grant publishing access to every person who reads reports. Write down who can make a configuration change and who can independently review the customer journey it affects.

Record one reversal action on each side of the installation. If the container sends an unwanted event, the publisher can return to a suitable previous version or repair the tag. If a CMS setting loads the wrong container altogether, returning to an old version of the correct container will have no effect on that page. The website administrator needs the relevant template or integration setting. Including both in the school’s first-release note means a future support person can send a real incident to the right owner on the first call.

Publish the container and verify the live site

Review Workspace Changes. Check every object in the release, including edits made by a colleague. Use Submit → Publish and Create Version, select the intended environment if prompted, and give the version a short description that names the objective, tested pages and previous working version. Coordinate the site release if a theme snippet or integration setting is changing at the same time. A container publish cannot alter the CMS setting for you. Google’s publishing and version controls

Disconnect Preview. In a clean live session, repeat the approved public visit with the real site's normal consent settings and inspect the live destination using the appropriate realtime check. A draft working in a connected browser was only evidence about that workspace. For a low-traffic site, document the time and page so a report owner can distinguish the verification visit from normal visitors. Allow for processing in standard reports.

Keep a short handover beside the website notes: account owner, publisher, container ID, destination ID, production installation point, consent integration, version, test URLs and any separately managed checkout. Include the date of your live check and what falls outside the first release. When the school later asks how many people actually enrolled, you can go straight to the booking provider's success signal rather than reinstalling the container.

If the tag is still silent

  • No container on one page. Verify the rendered template and any caching of HTML. Check the deployed site, not just the CMS editor's preview.
  • Container present, no Google tag. Verify the published workspace version and environment, then inspect triggering and consent for that page.
  • Tag fired, no expected receiver event. Check the destination ID, selected debug device, browser blocking and consent choice. Follow the GA4 DebugView diagnosis for that boundary.
  • Every public page works except checkout. Confirm who owns the checkout and whether it supports the same implementation. A third-party domain does not inherit the marketing site's template.

After the first release, give the person who will maintain the setup the test record and ask them to repeat just the timetable visit. If they can find the container, explain the consent state and identify one page view in the right destination, ownership has moved beyond a shared login and into a repeatable operating process.