Docsalot home pagelight logodark logo
  • Get Started
  • Home
  • API Reference
  1. Set Up Analytics
  2. Google Tag Manager
  • CLI
  • Authoring MCP
  • Community
  • Getting Started
    • Quickstart Guide
    • AI-native documentation
  • Settings
    • Navigation
    • Tabs
    • Dropdowns
    • Languages
    • Anchors
    • Global Settings (layout.json)
    • Page Titles and Metadata
    • Page Modes

    • Search Engine Optimization
    • Versioning
  • Customization
    • Custom Domain
    • Cloudflare Custom Domains
    • Subdirectory
    • Fonts
    • Custom CSS
    • Custom 404 Page
    • Custom Components
  • Creating Documenation
    • create-edit-pages
    • navigation
    • configuration
    • publish
    • Documentation Lifecycle Management
  • Document APIs
    • Playground
    • Authentication
    • OpenAPI setup
    • Complex data types
    • Add SDK examples
    • Manage page visibility
    • Multiple responses
    • Create manual API pages
    • AsyncAPI setup
    • Troubleshooting
  • Writing Content
    • Writing Content
    • Rich Text
    • Images
    • Lists
    • Code
    • Images & Embeds
    • Tables
    • Reusable Snippets
  • Analytics
    • Supported Integrations
    • Set Up Analytics

      • Amplitude
      • Fathom
      • Google Analytics 4
      • Google Tag Manager
      • HotJar
      • Koala
      • Logrocket
      • Mixpanel
      • Pirsch
      • Plausible
      • PostHog
      • Segment
  • Legal
    • Privacy Policy

Set Up Analytics

Google Tag Manager

Add your tag ID to layout.json file and we’ll inject the Google Tag Manager script to all your pages.

You are responsible for setting up cookie consent banners with Google Tag Manager if you need them.

"analytics": {
    "gtm": {
        "tagId": "required"
    }
}
Google Analytics 4HotJar
Powered by DocsAlot
githubdiscordtwitter