Record or pull monthly GA4 AI referral metrics
record_ai_referral_metricsRecord monthly GA4 AI Assistant referral sessions and conversions (chatgpt.com, perplexity.ai, claude.ai, gemini.google.com, meta.ai, copilot.microsoft.com) or automatically pull them from the GA4 Data API when GA4 credentials and ga4PropertyId are configured. Attached to get_monthly_aeo_diff. Requires an API key.
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": {
"businessId": "<businessId>",
"periodMonth": "<periodMonth>"
},
"name": "record_ai_referral_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | ||
| byEngine | No | Breakdown by AI source domain (e.g. perplexity.ai, chatgpt.com) | |
| businessId | Yes | ||
| conversions | No | Conversions / key events from AI referrals | |
| periodMonth | Yes | ||
| totalSessions | No | Total GA4 AI Assistants sessions (omit to auto-pull when GA4 is configured) |