Consent hooks and tags
get_consent_apiHow this site's code follows the visitor's cookie choice: tagging scripts, iframes and pixels so they wait for consent, pira.when / onChange / piraQueue hooks (what was accepted, declined or withdrawn), the Google Tag Manager dataLayer event and the server API. Call it before adding or changing any analytics, ads, pixel, embed or other tracking code, even when Kiescy reports no issue.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_consent_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||