All plugins

Analytics

Inject analytics scripts without editing templates.

Built-in @docmd/plugin-analytics

Overview

Adds Google Analytics v4, Plausible, Umami, or any custom snippet into rendered HTML. Configured entirely in docmd.config.json, with automatic consent management and privacy-friendly defaults.

Installation

# Analytics ships with docmd — nothing to install. docmd build

This plugin is built into docmd — nothing to install.

Permissions

Runtime behaviour of this plugin during a build:

CapabilityUsed
Reads project filesNo
Writes to site/No
Network requestsYes
Runs subprocessNo

Capabilities

docmd hooks this plugin registers:

head body

Tags

analyticstrackingmetrics