Skip to content

GTM noscript fallback uses placeholder container ID #1225

Open

Description

@anthonybailey

Concept

The Google Tag Manager (GTM) install snippet has two parts that must carry the same container ID:

  • A <script> in <head>. This loads the container for normal visitors.
  • A <noscript><iframe> at the top of <body>. This is a fallback that records visits from browsers with JavaScript disabled, and some bots and preview tools.

Hole being closed

In src/app.html, the script uses our real container ID (GTM-MZS328RW), but the <noscript> iframe still has the template placeholder GTM-ABCDEFGH. So the fallback does nothing: it requests a container that isn't ours, and visits from browsers without JavaScript go unrecorded.

The impact is small, but the template line is copy-pasted boilerplate that has drifted out of sync. It's worth fixing so nobody later trusts it.

Fix

In src/app.html, change the noscript iframe's src to use id=GTM-MZS328RW.

Verify

View the source of https://pauseai.info and confirm that both GTM references show the same ID.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions