4

Over the past two weeks, I've discovered preview-mode no longer works on new GTM server-side deployments.

(I'm no stranger to setting up and configuring google tag manager browser and server. I've deployed MANY of these and implemented highly customized setups.)

I'm automatically provisioning Google Tag Manager server-side on GCP App Engine Flexible instance. Nothing custom.

Paid for GCP support. They said to get in contact with the GTM team or the community support group.

Tried lodging a support request on the Google Tag Manager community support group. No answer.

Can't find a way to contact the GTM development team.

To investigate, I tried pairing GTM browser with older GTM server setups I deployed months ago via the GA4 transport url method. Works without problem.

I narrowed the issue to some kind of server-related issue:

Debug memo dispatch to http://localhost:8081 failed: 
Error: cacheableLookup ENOTFOUND localhost at CacheableLookup.lookupAsync (/workspace/node_modules/cacheable-lookup/source/index.js:199:18) 
{code: 'ENOTFOUND', hostname: 'localhost'}

1 Answer 1

2

This is a known bug, has been diagnosed by the GTM team, and will hopefully be fixed very soon. The problem is that App Engine changed that localhost no longer responds to the requests from the tagging server, so Preview mode is unable to show the results.

2
  • The man! Love your work @Simo Ahava. Interesting how GCP support refused to engage with this until you dropped by and alerted them. Commented Mar 28, 2022 at 20:32
  • 1
    Is this resolved? I'm still experiencing issues, and I believe it might be related to this problem. Commented May 22, 2024 at 2:22

Not the answer you're looking for? Browse other questions tagged or ask your own question.