Send the help center's page views to GA4 or Plausible
colliedesk_help_center_analytics_setSave where the help center's page views go: provider ga4 with a measurement ID and a Measurement Protocol API secret, or plausible with the site domain (and the address of a self-hosted Plausible). Every field replaces the stored one except ga4_api_secret, which stays when left out. GA4 gets the page address, title, referrer, language and search words, with a client id that changes every day instead of the reader's address; Plausible gets the page address and referrer with the reader's browser and address, which it turns into its own daily visitor id. An invalid field is refused by name and nothing is saved. Call colliedesk_help_center_analytics_test next to check the service accepts the events. It is safe to repeat.
Needs: help_center:update.
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": {
"provider": "<provider>",
"enabled": "<enabled>"
},
"name": "colliedesk_help_center_analytics_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | Yes | true sends every reader's page view from now on; false keeps the settings and sends nothing. | |
| provider | Yes | ga4 (Google Analytics 4) or plausible. | |
| ga4_api_secret | No | The secret value of a Measurement Protocol API secret (GA4 Admin > Data streams > the web stream). Left out or null: the stored one stays. Empty: removed. Never answered. | |
| help_center_id | No | One of colliedesk_help_centers_list; left out, the primary help center. | |
| plausible_domain | No | The site domain exactly as it is in Plausible, for example help.example.com. Needed when provider is plausible and enabled is true. | |
| ga4_measurement_id | No | The measurement ID of the GA4 web stream, for example G-ABC123XYZ9. Needed when provider is ga4 and enabled is true. | |
| plausible_base_url | No | Where Plausible runs: https://plausible.io (the default when left out) or a self-hosted Plausible on a public https address. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||