Key takeaways
- Connecting GA4 to AI is the easy part. The hard part is making AI understand what the data means.
- Interview the people who know the data, and document the business meaning of every key event, including how its definition changed over time.
- Keep a historical data quality register, so a tracking failure fixed two years ago doesn’t mislead an analysis today.
- Remove personal data and give AI only the data it needs.
- Test AI with questions an analyst already knows the answer to, including “we can’t know from this data”.
- AI agents that act on GA4 data raise the stakes: a misunderstood metric becomes a wrong action, repeated automatically.
Imagine asking Claude or ChatGPT to analyse your GA4 key events and recommend improvements to your marketing.
The AI assistant discovers that recorded leads have increased by 20%. It produces a convincing analysis, identifies the best-performing channels and recommends increasing advertising spend.
There is just one problem.
Nobody knows whether the event represents a successful form submission or merely a click on the Submit button.
I have worked with digital analytics for more than 15 years. And I have encountered this problem surprisingly often. Even marketing managers responsible for the results don’t always know exactly what their GA4 events measure.
AI doesn’t automatically know either.
Before connecting GA4 to an AI assistant, we need to make sure the data meets four requirements:
- Safe: It doesn’t expose inappropriate personal or sensitive information.
- Reliable: The measurements are sufficiently accurate for their intended use.
- Understood: Business definitions, collection methods and limitations are documented.
- Correctly interpreted: AI can distinguish observations from assumptions and unsupported conclusions.
A technically perfect connection to GA4 guarantees none of these things.
Here’s how I would approach making GA4 ready for AI.
1. Interview the people who know the data
The first step in making GA4 ready for AI is not technical.
I would start by interviewing marketing managers, analysts, developers, salespeople and other stakeholders.
In most organisations, important knowledge about analytics exists only in people’s heads.
Someone remembers why a particular event was introduced. Someone else knows that it fires twice in certain circumstances. A developer may remember that tracking stopped working after a website release.
The sales team may know that many recorded leads are actually existing customers.
This information rarely appears in GA4 reports, and it is often missing from the documentation.
The interviews should establish what the important metrics mean, how they are collected, how people use them and what their known limitations are.
You may also discover that different departments understand the same metric differently.
For example, marketing might define a lead as a submitted contact form, while sales considers only qualified opportunities to be leads.
AI cannot resolve this disagreement by querying GA4. The company needs to agree on its business definitions.
Much of the knowledge needed to make GA4 ready for AI already exists. It simply hasn’t been written down.
2. Document the business meaning, not just the implementation
In my experience, GA4 documentation is often outdated and primarily technical.
It describes events, parameters, triggers and implementation details. It rarely explains what the resulting data means for the business.
Sometimes even the event names are incomprehensible.
In the good old Universal Analytics days, I encountered a goal simply named “Other conversions”.
Good luck explaining that to an AI assistant.
Even standard GA4 event names can be misleading.
Consider generate_lead. The name suggests that a lead has been generated. But what actually happened?
Was a form successfully submitted? Was a button clicked? Did somebody download a brochure? Can the same person generate multiple leads?
GA4’s automatically collected form_submit event illustrates the problem. Enhanced measurement detects form submission interactions, but the event alone doesn’t establish that a backend system successfully processed the submission or that a useful sales lead was created.
And GA4 terminology adds another layer of complexity. Events marked as important business actions are now called key events, while conversions are used in advertising measurement. An AI assistant working with older documentation and multiple Google products can easily mix up the terminology.
For every important event and metric, I would document its business meaning, collection method, calculation rules, intended uses and known limitations.
Here is a simplified example.
Example: generate_lead event definition
| Field | Definition |
|---|---|
| Business meaning | Successful submission of a contact or quotation request form |
| Collection | Event sent after the server confirms that a submission was accepted |
| Forms included | Contact and quotation request forms |
| Counting | One event per accepted submission; not unique individuals |
| CRM relationship | Does not represent a qualified lead or sales opportunity |
| Known limitations | May include spam, repeat submissions and existing customers |
| Intended use | Measuring recorded website form submissions, not customer acquisition |
| Owner | Marketing analytics |
| Effective from | 1 January 2025 |
| Last reviewed | 15 October 2026 |
Illustrative definition, not GA4’s default event behaviour.
But documenting the current definition isn’t enough.
Suppose generate_lead meant a button click in 2024 but a successful form submission from January 2025 onward.
Even if the current definition is perfectly documented, historical comparisons may still be misleading.
The documentation must therefore include the history of changes in metric definitions, with the dates when those definitions became valid.
AI needs to know not only what a metric means today, but what it meant when the data was collected.
Documentation also needs someone responsible for keeping it current.
Every important metric should have an owner. Changes to tracking implementations should trigger a documentation review, and changes in business definitions should be recorded explicitly.
Otherwise, we’ll soon have another collection of outdated documents that nobody trusts.
A correct calculation based on a misunderstood metric is still a wrong answer.
3. Build a historical data quality register
This is one of the most neglected areas of analytics documentation.
Tracking problems are discovered and fixed all the time.
Someone notices that a key event is missing. A Jira ticket is created. A developer fixes the tracking, and the ticket is closed.
Problem solved?
Not quite.
The tracking may work correctly again, but the historical data remains incorrect. Over time, everyone forgets what happened.
Consider a hypothetical example where form submission tracking stopped working between 1 and 17 April 2025.
A year later, someone asks an AI assistant to analyse the development of lead generation over the last 12 months.
The AI finds a dramatic decrease in recorded submissions during April. It recommends investigating advertising campaigns, landing pages and changes in user behaviour.
The analysis may look entirely reasonable. But the decline was caused by missing tracking, not necessarily poor marketing performance.
The explanation may still exist somewhere in an old Jira ticket. Unfortunately, the AI assistant doesn’t know that.
A data quality problem that has been fixed can still affect decisions years later.

This is why I would maintain a historical data quality register.
For example:
| Period | Problem | Impact on reported data | Usability |
|---|---|---|---|
| 1–17 April 2025 | Form submission tracking unavailable | Leads underreported | Unusable for complete lead counts |
| 12–15 May 2025 | Purchase events recorded twice | Revenue overstated | Requires correction |
| From 1 June 2025 | Consent configuration changed | Measurement coverage may differ | Requires investigation before comparison |
Illustrative examples.
A proper register should contain additional information about the root cause, affected events and metrics, severity, business impact, resolution and links to relevant technical documentation.
GA4 annotations offer a useful starting point for documenting these changes. Google’s GA4 MCP server can retrieve property annotations, so an AI assistant can potentially use them when analysing historical results. Creating annotations through the server is also possible when write access is enabled.
For more systematic data quality management, I would maintain a separate structured register. It can cover multiple data sources, provide more detailed information and remain independent of GA4.
The register must be available to the AI system when it analyses the affected data.
And maintaining it should be part of normal analytics operations.
When a tracking problem is fixed, documenting its impact on historical data should be part of the definition of done for the Jira ticket.
Otherwise, we are repeatedly fixing implementations while losing the knowledge needed to interpret their historical data.
4. Remove personal data and control access
In my earlier article, Connecting dirty GA4 data to Claude is like playing with matches in a gas station, I discussed the privacy risks of AI-assisted analytics.
Over the years, I have encountered names, addresses, personal identifiers, passwords, health-related information and other sensitive data in analytics systems.
Usually, nobody intended to collect this information. It leaked through URLs, search queries, form fields, custom events or other tracking implementations. (I listed the most common leaks in 10 common ways your digital analytics implementation leaks personal data.)
Connecting AI directly to this data creates additional risks.
Before giving an AI assistant access to GA4, I would audit the data collection, identify inappropriate personal information and stop collecting it.
Historical data and existing exports also need attention. Correcting the implementation today doesn’t automatically clean up what was collected yesterday.
Then I would decide which data the AI assistant actually needs.
Does an assistant analysing weekly channel performance need access to individual user journeys or raw event parameters?
Usually not.
Aggregated data is often sufficient, and access should be limited to what the intended analysis requires.
A marketing data warehouse can provide a controlled layer between raw analytics data and AI tools. But moving dirty GA4 data into BigQuery doesn’t make it clean.
The data must be reviewed, transformed and governed.
5. Give AI access to data and business context
Once the important data has been reviewed and documented, we can think about the technical architecture.
Google provides a GA4 MCP server that makes it possible for AI assistants to query Analytics reports. I cover what it exposes and when to use it in Google Analytics MCP: should you connect GA4 to Claude?
For more sophisticated analysis, GA4 data can be exported to BigQuery and combined with advertising costs, CRM data and other business information.
But neither approach solves the problem of missing business context.
An AI assistant may know that generate_lead occurred 500 times last month. It doesn’t necessarily know whether those events represent 500 qualified leads, 500 successful form submissions or 500 attempts to submit a form.
And it doesn’t know that tracking was broken for two weeks unless we tell it.
I would separate the solution into two parts.
The metrics layer provides reliable metrics, dimensions and calculations. It can contain curated datasets, tested SQL queries and approved reporting interfaces.
For business-critical calculations, I would prefer verified SQL or deterministic code rather than asking an AI model to invent the calculations repeatedly.
The context layer explains what the data means. It contains business definitions, calculation rules, historical measurement problems, relevant assumptions and known limitations.

For GA4, this context should also cover reporting limitations.
Consent mode and behavioural modelling can affect reported data. Data thresholds, high-cardinality dimensions and the (other) row may also affect what appears in reports.
These are not necessarily measurement errors, but they can change how results should be interpreted. An AI assistant should understand them before making comparisons or recommendations.
In more advanced environments, a semantic layer can help maintain consistent metric definitions and relationships.
But you don’t necessarily need an expensive new platform.
For a smaller company, the starting point might be three well-maintained documents:
metrics.md— business definitions, calculation rules, metric ownership and definition history.data-quality.md— known problems, affected periods and measurement limitations.business-context.md— the business model, marketing objectives and relevant assumptions.
These documents could live in a version-controlled repository and be made available through Claude Project knowledge, a custom GPT’s knowledge files, an agent skill or another retrieval mechanism.
A more advanced system could retrieve the relevant documentation automatically based on the metrics and time periods being analysed.
Of course, merely connecting the documents doesn’t guarantee that AI will use them correctly. That needs to be tested.
The important point is that the business knowledge belongs to the company, not to the AI provider.
If you replace Claude with ChatGPT, Gemini or another system, the definitions and documentation should remain available.
6. Test whether AI understands the limitations
Before trusting AI-generated analytics, I would test the system with questions for which an experienced analyst already knows the correct answer.
Can it distinguish a form submission from a qualified lead? Does it understand which periods contain unreliable data? Can it identify changes in metric definitions?
And, perhaps most importantly, does it know when the data cannot support a reliable conclusion?
Consider the hypothetical tracking problem discussed earlier.
Question: Why did website leads decrease by 40% in April 2025?
Bad AI answer:
Lead generation deteriorated significantly. Investigate advertising campaign performance and consider improving landing pages to recover lost conversions.
Better AI answer:
Recorded form submissions decreased by 40%, but tracking was unavailable between 1 and 17 April 2025. The historical data is incomplete, so we cannot determine whether actual lead generation decreased. CRM lead records may provide an alternative source for estimating the actual volume.
The better answer is not more sophisticated mathematically.
It is better because the AI has access to information about data quality, understands the limitations of its conclusions and suggests a useful next step.
I would test the system with both ordinary questions and cases involving known problems.
For example:
- Can it explain exactly what a particular GA4 key event measures?
- Does it recognise when a metric definition changed?
- Does it warn about incomplete data during a documented tracking failure?
- Does it distinguish a change in reported performance from evidence that marketing caused the change?
The last question is particularly important.
Suppose advertising spend increased by 20% while recorded key events increased by 15%.
The AI assistant can correctly describe both changes. But it should not automatically conclude that the additional advertising caused the increase in key events.
Perhaps demand increased for unrelated reasons. Perhaps competitors changed their pricing. Or perhaps measurement coverage changed because of consent or tracking modifications.
Describing correlation is not the same as establishing causality.
AI can retrieve information, interpret results, identify patterns and generate hypotheses. But it must also recognise when the available evidence doesn’t support a reliable conclusion.
Sometimes the best answer is simply that we don’t know — followed by a suggestion for how to find out.
Agentic AI stops answering and starts acting
So far, I have assumed that AI answers questions and a person decides what to do. That is changing fast.
AI agents don’t just report. They act. An agent can pause a campaign, move budget between channels, rewrite a landing page or change the analytics setup itself. Google’s GA4 MCP server already includes tools that create key events, custom dimensions and annotations when write access is enabled.
This raises the stakes. A misunderstood metric in a report produces a bad recommendation, and somebody might still notice. A misunderstood metric in an agent’s decision loop produces a bad action, automatically, again and again. An agent optimising for generate_lead will happily optimise for button clicks if that is what the event really measures.
Before an agent is allowed to act on GA4 data, I would require three things:
- The metrics it optimises are documented and owned. Nobody should let an agent chase a number whose meaning is unclear.
- The agent checks the data quality register before acting. A tracking gap should stop the action, not trigger it.
- Write access is the exception. Read-only access by default, clear limits on what an agent may change, and a human approves anything that affects budgets or tracking.

Everything in this article becomes more important, not less, when AI moves from answering to acting.
Before you approve the AI project
If you’re the one deciding whether to give an AI assistant access to your marketing data, the first question isn’t which tool to buy. It is whether anyone in the company can explain what your most important numbers mean, where they are unreliable and who is responsible for them.
If the answer is no, an AI project will produce confident answers faster, not better decisions. The work that makes AI useful, documented definitions, a data quality register and clean data, is the same work that makes your analytics trustworthy for people.
I help companies find out where they stand in an AI Analytics Assessment: we pick a few real business questions, check whether your data and documentation can support AI-assisted analysis, and you get a prioritised plan for what to fix, test or build next. See how the assessment works.
FAQ
Yes. Google’s official GA4 MCP server lets AI assistants such as Claude and Gemini run GA4 reports, list key events and read property annotations. The connection is the easy part. The AI still doesn’t know what your events mean unless you document it.
Only after you have checked what the property contains. Analytics data often includes personal data that leaked through URLs, search queries and form fields, and connecting AI to it creates new risks. Remove the personal data first and give the assistant only the aggregated data it needs.
At minimum: the business meaning of each key event and metric, how and when its definition changed, known data quality problems with their dates, and GA4’s reporting limitations such as consent mode, thresholds and the (other) row. Three maintained documents are a good start: metrics, data quality and business context.
A list of known tracking problems with the affected period, the metrics they affect and whether the data can be used. It keeps a fixed tracking failure from misleading analyses years later. GA4 annotations are a starting point, but a separate register can cover all your data sources.
AI readiness is knowledge management
The technical side of connecting GA4 to AI is becoming easier.
The difficult part is making sure that AI understands what the data means and which conclusions it can reasonably support.
In most companies, at least some of the necessary knowledge already exists. Unfortunately, it is scattered across employees, outdated tracking plans, forgotten Jira tickets and undocumented assumptions.
Making GA4 ready for AI therefore requires four things:
Safe data: Personal and sensitive information is handled appropriately, and access is controlled.
Reliable data: The measurements are sufficiently accurate, and historical quality problems are known.
Understood data: Business definitions, calculation rules and relevant context are documented and maintained.
Correct interpretation: AI recognises the limitations of the evidence and avoids unsupported conclusions.
A technically perfect connection to GA4 solves none of these problems on its own.
The good news is that improving documentation, data quality and governance also makes analytics more useful for human analysts, marketers and management.
And the investment remains valuable even if you eventually replace your AI assistant.
You don’t need to start with a massive AI transformation project.
Start with your most important GA4 key event.
Ask your marketing manager exactly what it measures, how it is collected, whether its definition has changed and which periods contain unreliable data.
Then try to find the answers in your documentation.
If your company cannot explain what a GA4 key event means to a human analyst, connecting GA4 to AI is not going to solve the problem.
Start by making your data understandable to humans.
Then make it available to AI.
