Generate static site with GA4
site_generateGenerate a static HTML site with the Google Analytics gtag snippet preinstalled on every page, so you can publish tracked pages from a site name and measurement ID.
Instructions
Generates a static HTML site with the gtag snippet already installed on every page.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"siteName": "<siteName>",
"measurementId": "<measurementId>"
},
"name": "site_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | No | Pages to generate. The first page (or slug 'index') becomes index.html. | |
| siteName | Yes | ||
| outputDir | No | ||
| overwrite | No | ||
| description | No | ||
| measurementId | Yes | G-XXXXXXXXXX |