register-book-analytics
Installation
SKILL.md
Register a Book with Google Analytics (MkDocs Material)
This skill registers a new MkDocs Material site as a Google Analytics 4 (GA4) property,
captures the Measurement ID, writes it into mkdocs.yml, verifies the tag is injected,
and commits/deploys.
Inputs to gather first
Read these from the repo and/or confirm with the user:
- Repo path – local folder containing
mkdocs.yml(e.g.~/Documents/ws/<book>). - Site URL – usually
site_url:inmkdocs.yml(e.g.https://dmccreary.github.io/<book>/). - GA settings (defaults below, override if the user says otherwise):
- Reporting time zone: US / Chicago (GMT-05:00 Chicago Time)
- Business size: Small – 1 to 10 employees
- Industry category: Jobs & Education (GA4 has no literal "Education and Training" option; "Jobs & Education" is the correct closest match — use it unless told otherwise)
- Business objective: Understand web and/or app traffic (best fit for a docs site)