GTM not firing when page is cached

Created on 19 May 2022, about 2 years ago
Updated 9 February 2023, over 1 year ago

Problem/Motivation

My tag manager works fine when I'm logged into the site. As soon as I log out and I'm looked at the cached version of the site, my tags won't fire. I've looked through the chrome plugin and inspected the page source to locate the GTM snippet. I am unable to find it.

Steps to reproduce

Create GTM container and tags within it.
Place container code into tagmanager's config page.
watch it load up the container when logged in.
log out and I'm seeing it not render.

Proposed resolution

Is there an option to include this module through my caching mechanism? I use "internal page cache" and "Pantheon Advanced Page Cache" as my solution.

My dev and test environments load up the GTM script but my Live environment does not.

Not sure what I'm missing here, any help is greatly appreciated. Thanks.

💬 Support request
Status

Active

Version

1.0

Component

Code

Created by

🇨🇦Canada kevinkang

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024