u/Frequent_Step3249

Tag Assistant forces preview on main domain instead of subdomain (RD Station Landing Page

Hi everyone,

I'm facing a weird issue with Google Tag Manager Preview Mode / Tag Assistant when trying to debug a subdomain tracking setup.

Here is my current scenario:

- Main Domain: dgt.com.br (has its own GTM container)

- Subdomain: materiais.dgt.com.br (hosted on RD Station Landing Pages, has a separate GTM container: GTM-M7G9QZP)

The issue:

When I go to GTM, click "Preview", and explicitly type my subdomain URL (https://materiais.dgt.com.br/monitoramento-colaborativo), the Tag Assistant opens the page, but immediately switches the connected domain in the debug window to the main domain (dgt.com.br).

Because of this, it tells me "Google Tag GTM-M7G9QZP not found" because it's looking for the subdomain's container inside the main domain, where it obviously doesn't exist.

The GTM code is correctly hardcoded in both the HEAD and BODY of the RD Station Landing Page (subdomain). I can see other tags firing there (like GA4 through gtag), but the Tag Assistant debugger keeps forcing the session back to the apex/main domain during preview.

Has anyone experienced this behavior with subdomains or RD Station platforms? Is there a cookie conflict or a way to force Tag Assistant to stay locked on the subdomain without falling back to the main domain?

Thanks in advance!

reddit.com
u/Frequent_Step3249 — 13 days ago

Tag Assistant força o Preview no domínio principal em vez do subdomínio (Landing Page da RD Station)

Olá, pessoal!

Estou enfrentando um problema bem específico com o Modo de Visualização (Preview) do GTM / Tag Assistant ao tentar debugar o rastreamento em um subdomínio.

Cenário atual:

- Domínio Principal: dgt.com.br (tem um contêiner do GTM próprio)

- Subdomínio: materiais.dgt.com.br (hospedado nas Landing Pages da RD Station, com um contêiner do GTM SEPARADO: GTM-M7G9QZP)

O problema:

Quando estou no GTM das Landing Pages, clico em "Visualizar" e digito explicitamente a URL do subdomínio (https://materiais.dgt.com.br/monitoramento-colaborativo), o Tag Assistant abre a página, mas a janela de debug muda o domínio conectado automaticamente para a raiz (dgt.com.br).

Por causa disso, o validador dá o erro "Tag do Google: GTM-M7G9QZP não encontrado", porque ele fica procurando o contêiner do subdomínio dentro do site principal (onde ele obviamente não está instalado).

O código do GTM está perfeitamente instalado no HEAD e no BODY da Landing Page da RD Station (subdomínio). Consigo ver outras tags rodando por lá no código-fonte, mas o Tag Assistant insiste em puxar a sessão de debug de volta para o domínio principal durante o teste.

Alguém já passou por esse comportamento de redirecionamento do Preview com subdomínios ou na plataforma da RD Station? Existe algum conflito de cookies ou alguma forma de forçar o Tag Assistant a ficar travado no subdomínio sem pular para o domínio principal?

Obrigado desde já pela ajuda!

reddit.com
u/Frequent_Step3249 — 13 days ago