All plugins
Analytics
Inject analytics scripts without editing templates.
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:
| Capability | Used |
|---|---|
| Reads project files | No |
| Writes to site/ | No |
| Network requests | Yes |
| Runs subprocess | No |
Capabilities
docmd hooks this plugin registers:
head body