Memory System
Memory System
Persistent AI context per API key for improved responses
Memory System
The Metrifyr memory system stores context that persists across AI conversations, tied to each API key.
What is Memory?
Memory allows the MCP server to remember:
- Your preferred GA4 properties
- Common date ranges you use
- Previous diagnostic findings
- Custom preferences
- Mistakes to avoid (learned from errors)
Each API key has its own memory, enabling different configurations for different projects.
Memory also learns automatically from your usage patterns, creating personalized context that improves over time.
How It Works
- MCP Server authenticates with your API key
- Metrifyr retrieves memory for that specific API key
- Context is injected into AI conversations
- AI provides more relevant responses
Benefits
| Without Memory | With Memory |
|---|---|
| Re-specify property IDs | Remembered automatically |
| Generic responses | Personalized to your data |
| No historical context | Builds on past conversations |
| Same settings for all projects | Per-project configuration |
| Repeat same mistakes | Learns from errors |
Memory Architecture
Memory is tied to API keys, not users. This means:
- Production API key can have production GA4 properties
- Development API key can have test properties
- Different clients can have different preferences
Two-Level Toggle
- Global toggle (header) - Master switch for all memory
- Per-key toggle - Enable/disable memory for each API key
Memory is active only when both are enabled.
Enabling Memory
- Create an API key in Dashboard
- Enable memory globally using the header switch
- Enable memory for specific API keys in Dashboard > Memory