Most websites have Google Analytics installed. Far fewer have it configured correctly for SEO tracking. The difference between a default GA4 installation and a properly configured one is the difference between knowing roughly how many people visited your site and knowing which organic queries are driving conversions, which landing pages are failing high-intent visitors, and whether your AI-referred traffic is converting at the rate it should.
This guide walks through every step of setting up GA4 for SEO tracking — from creating the property through configuring the reports and segments you need to make SEO decisions with confidence.
What GA4 does differently from Universal Analytics
GA4 uses an event-based tracking model instead of the session-based model of Universal Analytics. Every user action — a pageview, a scroll, a click, a form submission — is tracked as a discrete event with parameters attached. This gives you far more flexibility in defining what conversions mean for your business, but it also means that meaningful SEO tracking requires deliberate configuration rather than working with default reports.
The other critical difference for SEO practitioners is how engagement is measured. Universal Analytics used bounce rate — the percentage of sessions that viewed only one page. GA4 replaced this with engagement rate: the percentage of sessions that lasted over 10 seconds, involved a conversion, or included multiple page views. This is more meaningful for SEO analysis because a user who lands on a contact page, reads it for two minutes, and leaves is counted as engaged in GA4 rather than bounced as in UA.
Step 1: create your GA4 property
If you do not have GA4 set up yet, start at analytics.google.com. Sign in with the Google account that manages your site. Click Admin in the bottom left, then Create Property. Enter your property name (your website or brand name), select your time zone and currency, and choose your industry category and business size. These settings affect default report configurations.
Choose your data retention setting before finishing setup. Navigate to Admin, then Data Settings, then Data Retention. The default is two months. Change this to 14 months to maintain enough historical data for meaningful year-over-year SEO comparisons. This setting only affects data collected from the point of change forward, so configure it during initial setup rather than months later.
Step 2: install your tracking code
GA4 provides a Measurement ID (formatted as G-XXXXXXXX) that connects your website to your property. There are three installation methods:
Method 1: Google Tag Manager (recommended)
Google Tag Manager is the recommended installation method for most sites because it lets you manage all tracking tags from one interface without editing code every time you add or update tracking. In GTM, create a new tag, select Google Analytics: GA4 Configuration as the tag type, enter your Measurement ID, and set it to fire on All Pages. Publish the container. This method also makes it straightforward to add conversion events and custom dimensions later without additional code changes.
Method 2: direct code installation
For sites without a tag manager, paste the GA4 global site tag directly into the head section of every page on your site. WordPress users can do this through a header plugin or their theme's header.php file. The tracking snippet is available in Admin, then Data Streams, then your web stream, under the Installation Instructions section.
Method 3: CMS native integration
Most major CMS platforms — WordPress, Squarespace, Wix, Shopify — have native GA4 integration options in their settings panels. These are the simplest installation method but offer the least flexibility for custom event tracking. For sites where you only need standard page-level SEO tracking, native CMS integration is sufficient.
Step 3: enable Enhanced Measurement
Enhanced Measurement automatically tracks a set of valuable events without any additional code. Navigate to Admin, then Data Streams, then your web data stream, then Enhanced Measurement. Enable all relevant toggles for your site: Page views (on by default), Scrolls (tracks when users reach 90% of a page — useful for content engagement), Outbound clicks (tracks clicks to external sites), Site search (tracks on-site search queries if your site has search), Form interactions, Video engagement, and File downloads.
For SEO purposes, Scrolls and Site search are the most valuable Enhanced Measurement events. Scroll depth data tells you how much of your content users actually consume, which is a direct indicator of content quality. Site search data reveals what users cannot find through navigation — often a goldmine for identifying content gaps and keyword opportunities.
Step 4: connect Google Search Console
Linking Google Search Console to GA4 is the single most important integration for SEO tracking. It brings organic query data — impressions, clicks, CTR, and position — directly into GA4, allowing you to see what happens after users click from Google rather than just the click volume.
To link the accounts: in GA4, go to Admin, then Property Settings, then Search Console links. Click Link and select your verified Search Console property. Once linked, a new Search Console collection appears in GA4 reports showing the Queries report (which search terms bring users to each landing page) and Landing pages report (which pages receive organic traffic). This data refreshes with a 2-day lag. Full guidance on setting up Search Console is in the Google Search Console setup guide.
Step 5: configure conversion events for SEO goals
A default GA4 installation tracks all events but marks none as conversions. You need to define what a conversion means for your site so GA4 can tell you which organic queries and landing pages actually drive business outcomes — not just traffic.
Common SEO conversion events to configure
- Form submissions: Contact form completions, demo requests, newsletter signups. Track using a thank-you page view or a form_submit event depending on your form tool.
- Free trial or account signups: The sign_up event using GA4's recommended event naming convention.
- Purchase completions: The purchase event for e-commerce sites.
- Phone clicks: Click events on tel: links if phone enquiries are a conversion goal.
- Key content engagement: Scroll depth reaching 90% on cornerstone content, or specific button clicks on high-value pages.
To mark an event as a conversion in GA4: navigate to Admin, then Events, then find the event in the list and toggle Mark as conversion. Alternatively, create a new conversion event from Admin, then Conversions, then New Conversion Event. Name it using GA4's recommended event names where possible so GA4 recognizes them automatically.
Step 6: create SEO-specific custom segments
Custom segments let you isolate specific audience subsets for deeper analysis. For SEO tracking, three segments are essential:
Organic search segment
Create a segment filtering sessions where the session source/medium is google/organic, bing/organic, or your other target search engines. This isolates all organic search traffic for comparison against other channels.
AI referral traffic segment
Create a segment filtering sessions where the referral source matches chatgpt.com, perplexity.ai, claude.ai, or gemini.google.com. Track this segment separately with its own conversion rate, engagement rate, and session duration metrics. AI-referred sessions consistently show higher conversion intent than standard organic traffic, and measuring them separately reveals their true business value. This segment connects your SEO tracking to your broader AI search visibility performance.
High-intent landing page segment
Create a segment for sessions landing on your highest-converting pages from organic search. Analysing this cohort separately shows the quality of organic traffic reaching your most valuable content, independent of the broader organic traffic average.
Step 7: build your SEO monitoring dashboard
GA4's standard reports do not surface SEO metrics in the most actionable format out of the box. Building a custom Exploration report gives you the view you actually need for weekly SEO monitoring.
In the Explore section of GA4, create a new Blank exploration. Add these dimensions and metrics:
| Dimension | Metrics to pair with it | What you learn |
|---|---|---|
| Landing page | Sessions, Engagement rate, Conversions, Conversion rate | Which organic entry pages drive the most value — not just traffic |
| Session source/medium | Sessions, Engaged sessions, Conversions | How organic search compares to other acquisition channels |
| Country | Sessions, Engagement rate, Conversions | Which geographic markets are performing in organic search |
| Date (week or month) | Organic sessions, Conversions, Engagement rate | Trend direction for organic performance over time |
Step 8: set up alerts for SEO monitoring
Manual monitoring catches problems after they compound. Automated alerts catch them early. In GA4, navigate to Insights and Alerts. Create custom alerts for: organic session drops of more than 20% week-over-week for your highest-traffic pages, conversion rate drops of more than 15% on key landing pages, and any sudden spike in 404 errors from organic sources which can indicate a site migration issue or broken link problem.
For sites concerned with AI search visibility, also monitor referral sessions from AI platform domains monthly. A sudden drop in AI-referred sessions without a corresponding organic drop can indicate that a bot configuration change or content update has affected AI crawler access.
Common GA4 SEO tracking mistakes
| Mistake | What you miss | Fix |
|---|---|---|
| No Search Console link | Cannot see which organic queries drive traffic to which pages — the core SEO question | Link GSC in Admin immediately after setting up GA4 |
| Default 2-month data retention | Cannot do year-on-year comparisons — loses trend context entirely after 2 months | Change to 14 months in Admin during initial setup |
| No conversion events configured | Cannot connect organic traffic to business outcomes — only counting visits | Define at least one meaningful conversion event before launching any SEO campaigns |
| No AI referral segment | Misses the fastest-growing high-intent traffic channel — invisible in default reports | Create a referral source segment for chatgpt.com, perplexity.ai, claude.ai |
| Using bounce rate from habit | GA4 replaced bounce rate with engagement rate — comparing them directly is misleading | Switch all reporting to engagement rate as the session quality metric |
| Internal traffic not filtered | Team and agency visits inflate organic traffic metrics and corrupt conversion data | Create an internal traffic definition in Admin and exclude it from all reports |
Conclusion
GA4 is only as useful as the configuration behind it. A default installation tells you that traffic exists. A properly configured GA4 tells you which organic queries are driving conversions, which landing pages are failing high-intent visitors, whether your content is being consumed or abandoned, and whether the AI-referred sessions arriving from ChatGPT and Perplexity are converting at the rate they should.
Complete the eight steps in this guide in order: create your property with 14-month retention, install the tracking code via GTM, enable Enhanced Measurement, connect Search Console, configure conversion events, build organic and AI referral segments, create your SEO monitoring exploration, and set up automated alerts. The Google Search Console setup guide covers the parallel setup that makes the Search Console integration fully functional.
![What is Conversion Rate Optimization in AI search [2026]](https://cdn.sanity.io/images/cjp3nw01/production/cd66159971e24090347c156ab261051389e40d8a-1200x628.png)

