# Analytics Basics in GA4

> AI Era Marketing Foundations, Lesson 5: GA4 basics for marketers: events, channels, key events, explorations and spotting AI referral traffic.

Source: https://mentionx.ai/learn/courses/ai-era-foundations/analytics-basics-in-ga4  
Author: Dipuck Jones, founder of MentionX  
Updated: 2 November 2026  
Level: Beginner

**Google Analytics 4 (GA4) measures what people do on your website as events, groups visits into channels such as Organic Search or Referral, and lets you mark the events that matter as key events.** For AI era marketing, it's where you see which pages attract visitors, where they come from, including AI assistants, and whether they take valuable actions.

**In this lesson**

- Core GA4 concepts: events, users, sessions
- Channels and where AI traffic shows up
- Key events and why they matter
- Building your first exploration
- Exercise and quiz

> **Key takeaways**
>
> - GA4 records events, groups visits into channels and lets you mark the actions that matter as key events.
> - Visits from AI assistants usually appear as referrals; a custom channel group can collect them in one place.
> - Some AI influenced visits arrive without a referrer, so GA4 undercounts AI's role.
> - Use GA4 alongside prompt testing: analytics shows what visitors did, testing shows what AI answers said.

*Checked on 31 October 2026. "Our view" marks MentionX opinion. Ledgerline is a fictional company used for illustration.*

## What are the core GA4 concepts?

| Concept | Meaning | Example |
|---|---|---|
| Event | Any recorded interaction | page_view, click, form_submit |
| User | A person (approximated by device/browser or sign in) | One visitor |
| Session | A group of interactions in a period | One visit |
| Channel | Grouping of traffic sources | Organic Search, Referral, Direct |
| Key event | An event you mark as important | sign_up, purchase |

GA4 is event based: even a page view is an event. That makes it flexible but means you must decide which events matter.

## Where does traffic come from?

GA4 assigns each session a source and medium, then groups them into channels using its default channel group. Visits from AI assistants that pass a referrer, such as chatgpt.com or perplexity.ai, typically land in **Referral**, mixed with other websites. Some AI visits pass no referrer and appear as **Direct**.

To separate AI visits, you can create a [custom channel group](https://support.google.com/analytics/answer/13051316) with an "AI assistants" channel matching AI domains, placed above Referral. Google's help article includes this as an example. Custom channel groups apply retroactively.

## What are key events?

Key events are the actions that represent business value, such as a demo request, signup or purchase. In GA4, you mark an existing event as a key event in Admin ([Google](https://support.google.com/analytics/answer/9267568)). Once marked, you can see key events by channel and page, which shows whether traffic is valuable, not just large.

Start with no more than three to five key events. Too many dilute the meaning.

## What are explorations?

Explorations, in the **Explore** section, let you build custom analyses: free form tables, funnels, paths and more ([Google](https://support.google.com/analytics/answer/7579450)). They're useful when standard reports don't answer your question.

**Build a landing page by channel exploration:**

1. Open **Explore** and choose **Free form**.
2. Add dimensions: *Landing page* and *Session default channel group* (or your custom channel group).
3. Add metrics: *Sessions* and *Key events*.
4. Drag *Landing page* to Rows and the channel to Columns.
5. Put *Sessions* and *Key events* in Values.
6. Set the date range, for example the last 90 days.

You now see which pages attract which channels, and which convert.

## What should you watch out for?

- **Sampling and thresholds** may apply in some explorations; note any warnings.
- **Consent settings** can reduce the data you collect.
- **Direct traffic** often hides untracked sources, including some AI visits.
- **Don't compare different date ranges** without accounting for seasonality.

## How do you connect GA4 to GEO work?

GA4 can't show AI visibility directly, because many people read AI answers without clicking. It can show what happens when they do click. Three useful questions:

1. **Which pages do AI assistants send visitors to?** These are likely being cited.
2. **Do those visitors take key events?** This shows the value of AI referrals.
3. **Is AI referral traffic growing over time?** Compare month over month, using the same channel definition.

Combine these with visibility scans and self reported attribution for a fuller picture.

## Which GA4 reports should you open first?

Start with **Reports → Acquisition → Traffic acquisition**, with your custom channel group as the primary dimension. Then open **Engagement → Landing page** filtered to the AI assistants channel. This shows which pages AI assistants send people to and whether those visitors take key events.

## From MentionX data: why analytics alone isn't enough

**Method.** Read only aggregate queries over MentionX scans from 22 August to 29 October 2026 (UTC): 2,217 engine runs (2,154 completed) across 18 anonymised projects and six engines.

GA4 can only count visits that happen. Many AI answers never send anyone to a website. In our sample:

| Engine | Brand mentioned | Answers with no citations |
| --- | --- | --- |
| Gemini | 47.3% | 50.7% |
| OpenAI | 42.9% | 30.2% |
| Perplexity | 31.5% | 4.1% |
| AI Mode | 31.3% | 12.6% |
| Copilot | 26.0% | 47.0% |
| DeepSeek | 24.0% | 99.0% |

Between 4.1% and 99.0% of answers, depending on the engine, had no citations at all, so there was no link to click. Even when brands were mentioned, buyers could take the name and search for it later, arriving as direct or organic traffic. GA4 shows part of AI's effect, not all of it.

*Our view:* report AI referrals in GA4 as a floor, not a total, and pair them with prompt testing that shows how often you're mentioned.

**Limits.** A convenience sample of mostly B2B software projects, run through engine APIs, which can behave differently from the consumer apps. Perplexity, Copilot and DeepSeek figures come from a single day (26 October 2026), so treat them as a snapshot, not a trend.

## Worked example: Ledgerline sets up GA4 for AI traffic

*Ledgerline is a fictional accounts payable tool. Figures are illustrative.*

Ledgerline's marketing analyst creates a custom channel group in GA4 with an "AI assistants" channel that matches referrals from the main assistant domains. She marks demo requests and pricing page visits as key events.

After a month, the AI channel is small compared with organic search, but its visitors request demos at a higher rate. Most land on two comparison pages. The team decides to keep those pages especially accurate and adds a clearer demo link to each. It also adds "How did you hear about us?" to the demo form, with "AI assistant" as an option, to capture visits GA4 can't attribute.

> **Pro move:** Add an 'AI assistant' option to your 'How did you hear about us?' field. It catches influence that analytics misses.

## How is GA4 different from older analytics?

GA4 is built around events. Every interaction, such as a page view, a scroll, a click or a form submission, is recorded as an event with details attached. Sessions and users are built up from those events. If you learned on older analytics tools, the main adjustment is to think in terms of events and the parameters attached to them, rather than page views and goals.

## How does GA4 classify AI traffic?

GA4 groups sessions into channels using rules based on source and medium. By default, visits from AI assistants usually land in Referral, mixed in with every other referring site. A custom channel group lets you create your own channel, such as "AI assistants", by matching the sources you choose ([Google](https://support.google.com/analytics/answer/13051316)). Custom channel groups can be applied to historical data in reports, which makes it easy to try before you commit.

Keep the list of AI sources under review. New assistants appear, and existing ones change domains or how they pass referrers.

*Our view:* create the AI channel even if the numbers are small today. A year of clean history will be worth more than a perfect setup started later.

## Which key events should you set?

Key events are the actions you care most about ([Google](https://support.google.com/analytics/answer/9267568)). For most B2B sites, that means demo requests, contact forms, trial signups and sometimes visits to the pricing page. For ecommerce, it's purchases and add to cart events. Mark only a handful; if everything is a key event, nothing stands out.

Once key events are set, compare channels by key event rate rather than just sessions. AI referred visitors often arrive later in their research, so a small channel can still be valuable.

## When should you use explorations?

Standard reports answer common questions. Explorations let you dig deeper: comparing landing pages for one channel, building a path from entry page to key event or segmenting by device ([Google](https://support.google.com/analytics/answer/7579450)). A simple free form exploration with landing page as rows and session source as columns is a good first step for understanding where AI visitors land.

## What are GA4's limits for GEO?

GA4 can't show AI answers that didn't produce a visit, visits that arrived without a referrer or buyers who heard about you in an assistant and searched for you later. Consent settings and blockers also reduce what's recorded. Treat GA4 as one view among several, alongside prompt testing, Search Console and what buyers tell your sales team.

## How do you build a simple monthly AI report?

Keep it to one page. Show sessions, engaged sessions and key events for the AI channel, next to the same figures for organic search, for this month and the previous three. Add the top five landing pages for AI visitors and their key event rates. Finish with two or three sentences on what changed and why you think it did.

Add the results of your prompt testing beside the analytics figures, so readers see both what AI answers said and what visitors did. When the two move together, you can be more confident a change is real. When they don't, it's a prompt to investigate rather than a conclusion.

Finally, write down the definition of your AI channel in the report, including which sources it matches. When someone asks next year why the numbers jumped, that note will save a lot of guesswork.

## Common questions

**Does GA4 have a built in AI channel?** Check your property's default channel definitions; a custom channel group gives you full control either way.

**Why is my AI traffic so small?** Many AI answers don't link out, and some AI visits arrive without a referrer.

**Can I see which AI answer sent a visitor?** No. GA4 shows the referring site, not the question or answer.

**Should I use GA4 or Search Console for AI search?** Both. Search Console covers Google Search, including its AI features; GA4 covers what visitors do on your site.

**How long should I wait before judging AI traffic trends?** At least a few months, because small channels swing a lot from week to week.

## GA4 basics checklist

- Key events defined (3 to 5)
- AI assistants channel created above Referral
- Landing page by channel exploration saved
- Date ranges noted in reports
- Consent and Direct traffic limitations understood

## Exercise

**Build a GA4 exploration: top landing pages by channel; screenshot it.**

1. Follow the steps above in your GA4 property (or the Google Analytics demo account).
2. Sort by sessions and look at the top 10 pages.
3. Note which channels drive each page and which pages generate key events.
4. Screenshot it and write two observations.

## Quiz

1. **What is a key event?**
   a) An event marked as important to your business b) Any page view c) A Google update
   *Answer: a*
2. **Where do AI assistant visits usually appear by default?**
   a) Paid Search b) Referral, or Direct if no referrer is passed c) Email
   *Answer: b*
3. **How can you separate AI visits?**
   a) A custom channel group b) Deleting Referral c) A new website
   *Answer: a*
4. **Where do you build a free form report?**
   a) Explore b) Admin only c) Search Console
   *Answer: a*
5. **How many key events should you start with?**
   a) 50 b) 3 to 5 c) None
   *Answer: b*

**Next:** [Lesson 6: Prompt research](https://mentionx.ai/learn/courses/ai-era-foundations/prompt-research)

## Sources

- Google, [Custom channel groups](https://support.google.com/analytics/answer/13051316)
- Google, [Key events in GA4](https://support.google.com/analytics/answer/9267568)
- Google, [Explorations in GA4](https://support.google.com/analytics/answer/7579450)

## Frequently asked questions

### What's the difference between an event and a key event in GA4?

Every interaction GA4 records is an event. A key event is an event you've marked as important to your business, such as a signup.

### Where do AI assistant visits appear in GA4?

By default, usually under Referral. A custom channel group can separate them into their own channel.

### What is a GA4 exploration?

A flexible report you build yourself in the Explore section, for analysis beyond the standard reports.

---

Written and reviewed by Dipuck Jones for MentionX Academy. The HTML version of this page: https://mentionx.ai/learn/courses/ai-era-foundations/analytics-basics-in-ga4
