Get gtag snippet
ga_get_tracking_snippetReturns the gtag.js tracking snippet for a Google Analytics measurement ID, ready to paste right after the tag to start collecting data.
Instructions
Returns the gtag.js snippet for a measurement ID, to paste right after .
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": {
"measurementId": "<measurementId>"
},
"name": "ga_get_tracking_snippet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| measurementId | Yes | G-XXXXXXXXXX |