Website monitoring
Tag managers and client-only script installation
Understand why Google Tag Manager and runtime-only injection cannot complete secure website verification, and move the tag to a supported global template.
- For
- Analytics teams, web governance owners, and frontend developers
- Typical time
- 10 minutes plus the supported installation change
Before you start
- The generated DocAccessible installation code
- Access to identify how the current tag is injected
- A web owner who can change the CMS, theme, or server-rendered layout
Procedure
Step by step
Confirm whether the tag is runtime-only
Open View page source and search for data-site-key. If it appears only in the Elements panel after Google Tag Manager, useEffect, or another loader runs, the installation cannot prove domain control.
Choose the platform's server-rendered method
Use the CMS global Footer or Body - end field, active theme, asset manager, static index.html, or shared server layout instead.
Paste the exact generated tag
Copy the code from DocAccessible Installation and publish it once through that supported method. Do not wrap it in another client-side tag loader.
Remove the duplicate runtime tag
After the new source-visible installation is live, disable the Google Tag Manager or component-injected copy so each page runs only one instance.
Verify source and connection
Open a public page, confirm the key in its original source, reload once, and return to DocAccessible for Script connected status.
Why runtime-only injection fails verification
A tag manager executes after a browser loads the page. DocAccessible deliberately performs a separate server-side fetch of the reported URL and requires the exact script tag and key in that returned HTML. This prevents a browser Origin header or an injected request from being treated as ownership proof.
The browser may send a discovery report from a runtime tag, but the website remains unverified and protected operations stay unavailable.
Supported replacements
Choose the installation route that owns the public source. The tag can remain asynchronous and does not need to block rendering.
- WordPressUse a site-wide code tool or a child-theme hook without editing the parent theme.
- ShopifyAdd the generated tag to theme.liquid and keep the change with the active theme.
- WebflowUse site-level Footer code, publish the site, and verify the custom domain.
- WixAdd custom code to every page at Body - end and confirm it survives publication.
- SquarespaceUse site-wide Footer code injection on an eligible plan.
- Drupal or JoomlaInstall through the active theme or the CMS asset manager and clear caches.
- Custom HTML, React, Next.js, and server frameworksPlace the script in the shared server-rendered layout so it appears in page source.
When policy allows only a tag manager
Ask the web platform owner to approve one source-visible global script with the documented service origin and site key. If governance cannot permit a server-rendered installation, secure website verification cannot complete and website monitoring should remain disconnected rather than weakening ownership checks.
- Share the exact generated tag and the data-collected explanation from Installation.
- Document script-src, connect-src, and img-src requirements for security review.
- Confirm that the script does not collect cookies, form values, visitor identity, or full page content.
- Keep the approved installation in the site's release and change-management record.
Official Google Tag Manager reference
Google documents custom tags as browser-executed container behavior. That remains useful for analytics workflows, but it does not change DocAccessible's source-visible ownership requirement.
Related guides
- Install the website monitoring scriptChoose the right installation method, add the generated script once, and verify that DocAccessible can see it in your public page source.
- Install the website script on a custom-built siteAdd the generated tag to static HTML, shared server templates, React or Vite entry HTML, or a Next.js root layout without breaking verification.
- Connect a website and install PDF monitoringVerify a public domain, install the lightweight script, and begin building a bounded PDF inventory.