DS Quest

GTM Testing Page

Test Results:

Click "Run GTM Tests" to start testing

Manual Console Tests:

Open DevTools Console (F12) and run these commands:

window.dataLayer

→ Should show array of events

document.querySelector('script[src*="googletagmanager.com"]')

→ Should show GTM script tag

Navigation Tests:

Navigate to these pages and check if GTM loads:

Expected Behavior:

  • GTM Enabled: true (if NUXT_PUBLIC_GTM_ID is set)
  • Should Track: true (on /tourist/** routes)
  • dataLayer exists: true
  • GTM script loaded: true (on tourist routes only)
  • Events appear in dataLayer array