configure_gtm_integration
Configures Google Tag Manager (GTM) integration with Google Consent Mode v2. Sets up consent state defaults and dataLayer triggers for unblocked tracking upon user consent.
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": {
"siteId": "<siteId>",
"gtm_container_id": "<gtm_container_id>"
},
"name": "configure_gtm_integration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| siteId | Yes | Site UUID | |
| trigger_events | No | Dispatch 'paperloo_consent_update' event to dataLayer on user consent update | |
| gtm_container_id | Yes | Google Tag Manager Container ID (e.g. 'GTM-XXXXXXX') | |
| default_ad_storage | No | denied | |
| default_ad_user_data | No | denied | |
| default_analytics_storage | No | denied | |
| default_ad_personalization | No | denied |