Analytics Basics in GA4
AI-Era Marketing Foundations, Lesson 5: GA4 basics for marketers: events, channels, key events, explorations and spotting AI referral traffic.
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.
- 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.
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
01What 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.
02Where 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 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.
03What are key events?
Key events are the actions that represent business value, such as a demo request, sign-up or purchase. In GA4, you mark an existing event as a key event in Admin (Google). 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.
04What are explorations?
Explorations, in the Explore section, let you build custom analyses: free-form tables, funnels, paths and more (Google). They're useful when standard reports don't answer your question.
Build a landing-page-by-channel exploration:
- Open Explore and choose Free form.
- Add dimensions: Landing page and Session default channel group (or your custom channel group).
- Add metrics: Sessions and Key events.
- Drag Landing page to Rows and the channel to Columns.
- Put Sessions and Key events in Values.
- Set the date range, for example the last 90 days.
You now see which pages attract which channels, and which convert.
05What 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.
06How 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:
- Which pages do AI assistants send visitors to? These are likely being cited.
- Do those visitors take key events? This shows the value of AI referrals.
- 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.
07Which 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.
08From MentionX data: why analytics alone isn't enoughOriginal data
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.
09Worked 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.
10How 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.
11How 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). 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.
12Which key events should you set?
Key events are the actions you care most about (Google). For most B2B sites, that means demo requests, contact forms, trial sign-ups 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.
13When 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). 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.
14What 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.
15How 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.
16Common 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.
17GA4 basics checklist
- Key events defined (3–5)
- AI assistants channel created above Referral
- Landing-page-by-channel exploration saved
- Date ranges noted in reports
- Consent and Direct traffic limitations understood
18Exercise
Build a GA4 exploration: top landing pages by channel; screenshot it.
- Follow the steps above in your GA4 property (or the Google Analytics demo account).
- Sort by sessions and look at the top 10 pages.
- Note which channels drive each page and which pages generate key events.
- Screenshot it and write two observations.
19Quiz
- What is a key event?
a) An event marked as important to your business b) Any page view c) A Google update Answer: a
- 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
- How can you separate AI visits?
a) A custom channel group b) Deleting Referral c) A new website Answer: a
- Where do you build a free-form report?
a) Explore b) Admin only c) Search Console Answer: a
- How many key events should you start with?
a) 50 b) 3–5 c) None Answer: b
Questions people ask
3 answersWhat'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 sign-up.
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.
Sources
- Google, Custom channel groupssupport.google.com
- Google, Key events in GA4support.google.com
- Google, Explorations in GA4support.google.com
Finished the lesson?Mark it done to track your progress through AI-Era Marketing Foundations. Saved in this browser, no account needed.