Google Analytics 4 (GA4): How to Set Up, Track Events & Analyse Data

✅ 13+ Years Experience ✅ 150+ GA4 Implementations ✅ Rechecked 13 Oct 2026
Google Analytics 4 (GA4) setup and event tracking guide by IndexCraft
Quick answer

Google Analytics 4 is Google's free analytics platform. It records every interaction on your website or app as an event, lets you mark the ones that matter as key events (up to 30 per standard property), and reports on them in standard reports, Explore and BigQuery. To get it running you create a property, add one Google tag (directly or through Tag Manager, never both), turn on Enhanced Measurement, mark your key events, extend data retention to 14 months, and set Consent Mode defaults correctly before launch.

Google Analytics 4 (GA4) is Google's current analytics platform, built on an event-based data model that tracks user interactions across websites, iOS apps, and Android apps within a single property. Unlike the now-retired Universal Analytics, which stopped processing data for standard properties on July 1, 2023 and for 360 properties a year later, GA4 treats every interaction as an event with attached parameters, giving you far richer and more flexible data about how people actually use your product. Measurement like this sits alongside, not in place of, the core practices covered in IndexCraft's Complete SEO Guide 2026, GA4 tells you what happened after someone landed on your site; the rest of the SEO discipline determines whether they got there at all.

14.0M
live websites run Google Analytics 4 according to BuiltWith's tracker, and W3Techs reports that Google Analytics in any version is used by 47.2% of all websites (October 2026). Neither source splits GA4 from older tags in a way I can quote more precisely.

This guide works through all the main GA4 setup questions, property creation, tag installation, event tracking, consent, BigQuery exports, with field notes from 150+ live implementations mixed in throughout. The aim isn't to give you a checklist. It's to explain the reasoning behind each step so you can adapt it to your actual setup rather than following instructions you don't understand. If any of the terminology below is unfamiliar, IndexCraft's Google Analytics glossary is a useful companion reference to keep open alongside this guide.

The mental shift: GA4 isn't a UI refresh of Universal Analytics, it's a different product built on a different data model. Teams that skip this mental shift and treat it like UA with a new coat of paint consistently end up with broken funnels, mislabelled conversions, and data they can't trust. Get the event model right before you touch Admin settings. Everything else follows from that.

📋 How this guide was put together

The steps come from working implementations rather than vendor docs repackaged as tutorials. Each warning and callout is drawn from actual GA4 work on live sites, e-commerce stores, SaaS platforms, media publishers, B2B lead-gen sites, and apps, between 2021 and 2026. Statistics come from cited third-party sources and Google's own documentation; sources are listed inline and at the bottom of the article. The guide gets updated when Google makes meaningful changes to GA4, the last full review was on 13 October 2026, when every Google-documentation claim below was re-checked against the current help pages. Numbers tagged "My own data" come from my client work and cannot be independently checked. This kind of sourcing discipline is part of the broader E-E-A-T approach IndexCraft applies across all its guides.

Field notes My own data I've been setting up and auditing GA4 implementations since it became the default in 2021, across e-commerce, SaaS, media, and lead generation projects of varying sizes. The one pattern that holds across almost all of them: teams that spend a session mapping out what they actually want to measure before touching any settings end up with implementations that run cleanly for 18 months or more. Teams that go straight to copying the snippet and marking conversions are usually back asking questions within 60 to 90 days, inflated session counts, events firing twice, funnels that don't match anything recognisable in the business. Setup is not the hard part. Getting the event model right before you start is., Rohit Kunal, IndexCraft

What changed in GA4 this year (June to September 2026)

Google shipped several changes after this guide's spring edition. The two that affect most setups:

  • Hostname data filters. Added on 11 June 2026 as an exclude-only filter, then extended on 21 September 2026 with an Include mode that works as an allowlist. In Include mode, events from any hostname you haven't listed are dropped, and events with an empty hostname are blocked automatically. Measurement Protocol events are exempt, so spam sent that way still gets through. Start the filter in Testing state, and remember that filters are not retroactive. Source: Google Analytics release notes, "What's new in Google Analytics".
  • Dashboards in Reports. You can now build a single-page KPI dashboard inside Reports (Editor or Administrator role needed). Published dashboards are visible to everyone with access to the property, and cards don't support custom segments yet, so keep anything sensitive or segment-heavy in Explore or Looker Studio.

Google also added a Source Group dimension on 11 June 2026. Check the release notes page before relying on any of these in client reporting; interface details do shift between releases. Facts in this guide were checked against Google's help documentation and release notes on 13 October 2026.

1. GA4 vs Universal Analytics: key differences explained

Most GA4 mistakes trace back to people who set it up before they understood what changed. Spend a few minutes here, it'll save hours of troubleshooting down the line. The UA-to-GA4 transition is, in its own way, a platform-level shift not unlike the ranking algorithm changes covered in IndexCraft's algorithm updates history guide, the underlying model changed, and treating it like a cosmetic update is what causes the most damage.

🔴 Universal Analytics (Retired 2023–2024)

  • Session-based data model
  • Pageview as the primary interaction unit
  • Goals (max 20 per view)
  • Bounce rate as the engagement metric
  • Limited cross-device tracking
  • Sessions restart at midnight and on campaign change
  • BigQuery only in paid 360 tier
  • No built-in modelling for consent gaps

🟢 Google Analytics 4 (Current)

  • Event-based model: everything is an event
  • Any interaction can be tracked as a named event
  • Key Events (any event, up to 30 per standard property)
  • Engagement rate leads (bounce rate is now its inverse)
  • Cross-device and cross-platform reporting (with User-ID or Google signals)
  • Consent Mode v2 with behavioural modelling
  • BigQuery export free to set up on every property
  • ML-powered modelling fills consent gaps
30 min
of inactivity ends a GA4 session. Universal Analytics also restarted sessions at midnight and whenever the campaign source changed; GA4 does neither, so one GA4 session can span midnight and carry several sources. That is why GA4 and UA session counts never match exactly, and why a "drop" at migration is usually a definition change, not lost traffic.
Field notes My own data The session number discrepancy between UA and GA4 is probably the most common thing that lands in my inbox during a migration. I've had clients assume their site was broken when GA4 showed meaningfully fewer sessions than UA for the same period, in some cases 25–35% lower. Once you dig into it, the explanation is almost always the same combination of factors: GA4 filters out known bot traffic that UA was counting, and UA split visits into extra sessions at midnight and whenever the campaign source changed, which GA4 no longer does.

The number that worries clients is usually cleaner than the UA number was. It's just a different count of a slightly different thing. I now add a plain-English 'what will change about your session numbers' note to every migration handover before anyone looks at the first report, so the reaction is 'yes, you told me this' rather than 'something is wrong.', Rohit Kunal

2. How do you create a GA4 property?

A GA4 property is the container that holds all your tracking data. Each one gets its own Measurement ID and can include multiple data streams, web, iOS, and Android, under one roof.

  1. Go to analytics.google.com and sign in with your Google account.
  2. Click Admin (the gear icon) in the bottom-left corner.
  3. Under the Account column, select an existing account or click Create Account to start fresh.
  4. Under the Property column, click Create Property.
  5. Enter a property name, select your reporting time zone and currency, then click Next. Note: choose the time zone where the majority of your business decisions are made, not necessarily your server's time zone. Mismatched time zones cause day-boundary attribution issues in reports.
  6. Describe your business category and size, then select your primary business objective.
  7. Click Create and accept the Terms of Service.
  8. Select the platform for your first data stream: Web, iOS, or Android.
Property naming best practice: Name your property with the format [Brand] | [Platform] | [Environment], e.g. "Acme Corp | Website | Production". This naming convention becomes critical when you have multiple properties (staging, production, apps) in the same account and prevents accidental data mixing, a mistake I see in roughly 30% of multi-property GA4 accounts I audit My own data. Correcting a mixed-data property after the fact requires deleting and recreating the property, losing all historical data in the process., Rohit Kunal

Once the property is created, you'll be assigned a Measurement ID in the format G-XXXXXXXXXX. This is what connects your site or app to GA4. Keep it somewhere accessible, you'll need it for every tracking step that follows.

3. How do you install GA4 directly on a website?

Short answer: paste the Google tag from Admin > Data Streams into the head of every page, or add it once in Google Tag Manager with the Initialization trigger. Choose one method only, then confirm your own visit in Realtime.

If you're not using Google Tag Manager, the direct install is straightforward: paste the Google tag snippet into the <head> of every page. It's the right approach for simpler sites that don't need complex event tracking.

  1. In GA4, go to Admin > Data Streams and select your web stream.
  2. Under Google tag, click View tag instructions.
  3. Copy the entire tag snippet provided.
  4. Paste it as high as possible in the <head> section of every HTML page, ideally as the first script in the head, before any other tracking or marketing scripts.
  5. Verify installation by opening your site, waiting 60–90 seconds, then checking the Realtime report in GA4 for your own active session.
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', 'G-XXXXXXXXXX');
</script>

Replace G-XXXXXXXXXX with your actual Measurement ID. For CMS platforms, Site Kit by Google (WordPress) or MonsterInsights can handle installation without touching code directly.

Critical: do not install GA4 on your site AND also via GTM. Doing so fires two separate GA4 hits per interaction, doubling your event counts, session counts, and reported conversions. In my audits, dual installation is the second most common GA4 data quality issue after missing consent configuration My own data, and it is entirely avoidable. Before publishing a GTM-based GA4 tag, always search your site's source code for any existing gtag/js?id=G- strings and remove them first. Choose one installation method and use it exclusively.

4. How do you set up GA4 with Google Tag Manager?

GTM is the better choice for most sites. It keeps all your tracking in one place, means non-developers can make changes without touching site code, and gives you Preview mode for debugging, which alone is worth using it for.

  1. In Google Tag Manager, open your container and go to Tags > New.
  2. Click Tag Configuration and choose Google Tag from the tag type list.
  3. Enter your GA4 Measurement ID (G-XXXXXXXXXX) in the Tag ID field.
  4. Under Triggering, select Initialization - All Pages. The Initialization trigger (not the standard All Pages trigger) fires the Google tag before your other tags, which matters for session attribution and for event tags that depend on the configuration being in place first.
  5. Name the tag clearly (e.g. "GA4 | Google Tag | Production") and click Save.
  6. Click Preview to enter Debug Mode. Open your website in the preview window and confirm the Google Tag fires on page load in the GTM debug panel.
  7. Return to GTM, click Submit, add a descriptive version name (e.g. "v1.0 | Initial GA4 deployment"), and click Publish.
Field notes My own data The most common GTM mistake I come across in GA4 setups is the base configuration tag being set to fire on 'All Pages' instead of 'Initialization - All Pages.' It sounds minor. The consequence is not.

When event tags fire before the GA4 config tag is properly initialised, session attribution breaks, events are either queued and dropped or attached to the wrong session. In an audit I ran on a financial services site, this one trigger type selection had been silently dropping around 12 to 15% of form completion events over several months. No errors anywhere visible, nothing flagged in the UI. The events just weren't making it through. The fix took about three minutes once the issue was identified. Fixing the data history was not possible. Always use the Initialization trigger for the base GA4 config tag., Rohit Kunal

5. How do you enable Enhanced Measurement in GA4?

Enhanced Measurement automatically tracks common user interactions, scrolls, outbound clicks, file downloads, video plays, without any custom code. In Universal Analytics, all of this required manual GTM setup. It's one of the more practical improvements in GA4.

Event NameWhat It TracksDefault StatusWatch Out For
page_viewEvery page load or browser history change (SPA-aware)OnCan double-fire on SPAs with custom push-state routing
scrollFirst time a user reaches 90% of page depth in a sessionOnOnly fires once per page per session, not a continuous depth tracker
clickOutbound link clicks leaving your domainOnDoes not track internal clicks; use custom events for that
view_search_resultsSite search queries using your internal searchOnRequires your search URL to contain a query parameter GA4 can detect
video_start / video_progress / video_completeEmbedded YouTube video interactions, see IndexCraft's video SEO guide for the content side of thisOnOnly works for YouTube embeds with JS API enabled
file_downloadClicks on downloadable files (PDF, DOCX, ZIP, etc.)OnTracks link clicks to downloadable URLs, does not confirm actual download completion
form_start / form_submitForm interactions where forms are accessible to the tagOnUnreliable on custom or shadow-DOM forms; use GTM Form Submission trigger instead
Field notes My own data The warnings in the table above come from real issues I've diagnosed in live implementations. The one that causes the most confusion is Enhanced Measurement's form_submit event, it works fine on straightforward native HTML forms, but on a meaningful proportion of the sites I audit that use a JavaScript form library or a headless CMS form component, it either fires on focus rather than submission or doesn't fire at all.

The most damaging version of this I've seen was a lead generation setup where form_submit was triggering on field focus. Reported lead volume was running around 280% higher than actual contacts received. The client had been treating that inflated number as their baseline for months before we looked at it. For any event you're using as a conversion or feeding into bidding, don't rely on Enhanced Measurement. Build a dedicated GTM trigger and verify it fires on submission only, against a real form on the real site., Rohit Kunal

To review or toggle Enhanced Measurement events, go to Admin > Data Streams, select your web stream, and click the settings gear icon next to the Enhanced measurement toggle.

6. How do you track custom events in GA4?

In GA4, any user interaction can be tracked as a custom event. There are three ways to do this, and picking the right one for your setup keeps implementations simple and maintainable.

Method 1: Create events inside GA4 (no-code)

GA4 allows you to create new events based on existing ones directly in the interface. Go to Admin > Events > Create Event. You can define a new event name and set conditions based on existing event parameters, for example, creating a blog_scroll_complete event that fires when event_name equals scroll AND page_location contains /blog/. This is ideal for simple derivations from Enhanced Measurement events without involving a developer.

Method 2: Send events via gtag.js (direct install)

If GA4 is installed directly without GTM, call gtag('event', ...) at the point where the interaction occurs in your JavaScript:

gtag('event', 'newsletter_signup', {
  'method': 'footer_form',
  'user_type': 'new_visitor',
  'page_location': window.location.href
});

Event names must start with a letter and contain only letters, numbers and underscores, with no spaces. They are case-sensitive (my_event and My_Event are two events), reserved names such as page_view and scroll are off limits, and a name over 40 characters will not be reported as a key event. I stick to snake_case for readability (Google's naming rules).

Method 3: Use Google Tag Manager triggers (recommended for complex setups)

In GTM, create a Google Analytics: GA4 Event tag, add your event name and parameters, then set the trigger to match the interaction, a button click, form submission, element visibility, a timer. This is the most flexible and maintainable approach for anything beyond basic interactions, and the right choice when you need to pull dynamic values from the data layer.

GA4 event naming conventions: Always document your event taxonomy in a shared spreadsheet before implementation. Include the event name, the trigger condition, the parameters it carries, and its intended key event status. Sites that implement events ad-hoc without documentation end up with duplicated events with inconsistent naming, a problem that is expensive and time-consuming to clean up. The same discipline applies to on-page SEO elements like heading structure and metadata, consistency compounds, inconsistency compounds too. The official GA4 recommended events list is a useful starting point for naming conventions.

7. How do you set up key events (conversions) in GA4?

Short answer: a key event is any GA4 event you toggle on as important to the business. Standard properties allow 30, Analytics 360 allows 50, and the setting only affects data from the moment you switch it on.

Key events are how you tell GA4 what actually matters to your business, a purchase, a sign-up, a demo request, a form submission. They show up prominently across reports and sync to Google Ads for smart bidding. UA had Goals, capped at 20 per view. GA4 caps you at 30 key events on a standard property (50 on Analytics 360), and the real limit is lower than that, because the more you designate, the less any individual one means.

  1. Go to Admin > Events. You will see all events GA4 has recorded in the last 28 days.
  2. Find the event you want to designate as a key event (e.g. form_submit, purchase, demo_request).
  3. Toggle the Mark as key event switch to the right of that event name.
  4. Alternatively, click New key event to manually enter the name of a custom event you intend to implement but have not yet fired.
Key event validation: Check that your event is actually firing before you mark it as a key event. Use DebugView or the Realtime report. Marking an event only changes how it is reported from that moment on; GA4 does not go back and relabel history, so mark the event before you need clean data. It also won't show in key event reports until it has fired at least once. If the event never fires and you mark it anyway, GA4 just shows zero conversions, no error, no warning, nothing to tell you something's wrong.
Field notes My own data A mistake I see often is teams marking 15 to 20 interactions as key events because UA allowed up to 20 Goals per view and the assumption carries over. Scroll depth, video plays, tab clicks, time-on-page milestones, all marked as conversions. When everything is a conversion, the conversion reports tell you nothing useful, and smart bidding has no clean signal to optimise against. It's the same instinct that leads to content bloat on the SEO side, see IndexCraft's content pruning guide for the parallel problem in published content.

I worked with a SaaS team in 2025 that had 19 key events active. When we audited what actually correlated with revenue, four of them mattered, trial signup, demo request, pricing page visit, and plan activation. We demoted everything else to regular events visible in Explore. Bidding performance on their paid campaigns improved noticeably within six to eight weeks because the algorithm was finally receiving high-intent signals rather than a mix of page-level interactions it couldn't distinguish. Key events should reflect business outcomes, not user activity., Rohit Kunal

8. How do you filter internal traffic in GA4?

Office visits, dev testing, QA runs, if you're not filtering these out, they're sitting in your data. They inflate user counts, skew engagement metrics, and if someone on your team submits a test form, that's a fake conversion in your reports.

  1. Go to Admin > Data Streams, select your web stream, and scroll to More tagging settings.
  2. Click Define internal traffic, then click Create.
  3. Enter a rule name (e.g. "Head Office IP"), set the match type to IP address equals, and enter your office's public IP address. Add multiple conditions for multiple office locations or IP ranges.
  4. Save the rule, then navigate to Admin > Data filters and create a new filter of type Internal Traffic.
  5. Critically: set the filter state to Testing first, not Active. Testing mode flags internal traffic with a dimension but does not exclude it, allowing you to verify the filter is catching the right sessions before permanently excluding any data.
  6. After 5–7 days of testing, confirm only internal sessions are being flagged, then switch the filter state to Active.

IP-based filtering does not work for remote workers or users on mobile data. For individuals, the Google Analytics Opt-Out browser extension prevents the GA4 tag from firing entirely for that browser session, the cleanest solution for team members whose IPs change frequently. If you're running a local SEO programme with a physical office location, this is also the same IP you'll want to exclude from any GA4 location-based reporting.

9. How do you set up custom dimensions and metrics in GA4?

GA4 picks up standard parameters automatically, page_title, session_source, event_count. But any custom parameters you send with your own events don't appear in reports until you register them as custom dimensions or metrics. This trips up a lot of implementations: you fire the event, the parameter shows up in DebugView, but it's nowhere in reports. Register it first.

  1. Go to Admin > Custom Definitions, then click Create Custom Dimension.
  2. Enter a human-readable Dimension Name (e.g. "Article Category", "User Plan Type").
  3. Select the Scope: Event for parameters that vary per interaction, or User for properties that describe a user's persistent attributes (e.g. subscription tier, account age).
  4. In the Event parameter field, type the exact parameter name as used in your event code, this is case-sensitive (e.g. article_category, not Article_Category).
  5. Click Save. The dimension will begin populating from this point forward, it does not backfill historical data.
GA4 custom dimension limits (free tier): 50 event-scoped custom dimensions, 25 user-scoped custom dimensions, and 50 custom metrics per property. These limits sound generous, but teams that fail to plan their parameter taxonomy often exhaust event-scoped dimensions within 6 months by creating near-duplicate parameters with slightly different names. This is especially common on programmatic SEO sites and headless CMS stacks, where templated content types multiply parameter variants quickly if nobody owns the taxonomy. Conduct a parameter audit and consolidation exercise before registering dimensions. Once registered, unused dimensions cannot be deleted, only archived, which counts against your limit. Source: Google Analytics Help: Custom dimensions & metrics limits

10. How do you create audiences in GA4?

Audiences in GA4 do two things: they let you compare user segments in Explore reports, and they power remarketing in Google Ads. GA4's audience builder is considerably more capable than UA's, you can use sequential conditions, time-bounded behaviours, and predictive ML-based audiences when you have enough conversion volume.

  1. Go to Admin > Audiences and click New Audience.
  2. Choose a starting point: use a Suggested audience template, build from scratch, or use a predictive audience (requires sufficient conversion data).
  3. Define your audience conditions using the dimension and metric builder. Combine conditions using AND/OR logic. Add sequences to target users who performed actions in a specific order within a specified time window.
  4. Set the Membership duration, how long a user remains in the audience after last meeting the criteria (up to 540 days).
  5. Name the audience descriptively and click Save. New audiences only populate from the creation date forward.
1,000
returning users who trigger the predicted action (purchase or churn) and 1,000 who do not, within a seven-day period inside the last 28 days, is the minimum before predictive audiences become available. The model also has to keep meeting Google's quality bar, and for purchase predictions you must send purchase with value and currency. Smaller shops often will not reach that, so custom behavioural audiences are their main option.

11. How do you use Explore reports in GA4?

The Explore section is where GA4 gets genuinely useful for analysis. Standard reports tell you what happened. Explore lets you ask why. It has several techniques, including Free-form, Funnel exploration, Path exploration, Cohort exploration and User explorer, each built for a different type of question.

Creating a Free Form Explore report

  1. Click Explore in the left navigation, then select Free Form.
  2. In the Variables panel, click + next to Dimensions and Metrics to add the data points you want to analyse.
  3. Drag dimensions to the Rows or Columns fields in the Settings panel, and drag metrics to Values.
  4. Apply segments from the Variables panel to compare different user groups side-by-side. You can compare several segments side by side.
  5. Use the Filters field to restrict the report to specific events, pages, or user types.
  6. Switch the chart type (table, bar chart, scatter plot, line, geo map) to suit the data you are examining.
Field notes My own data Funnel Exploration is the report template I find myself using most in client work. The feature I reach for most is the open funnel option, it lets users enter the funnel at any stage, which reflects how most real journeys work rather than forcing a rigid top-to-bottom path.

The most useful thing I've done with it recently was for an e-commerce client who had assumed for over two years that cart abandonment was their biggest checkout problem. When I built an open funnel from product view through to purchase and looked at where drop-off was actually concentrated, the largest gap was between payment information entry and purchase confirmation, not at the cart. About 62% of checkout abandonment was happening at that final step. When we looked at why, a mandatory account creation prompt was sitting between payment and confirmation for non-registered users. Removing it and making registration optional post-purchase increased checkout completion noticeably over the following two months. The data had been available the whole time., Rohit Kunal

Explore reports are private by default, only you can see them. If a report needs to be available to the whole team on an ongoing basis, share it from the exploration or rebuild it as a custom report in the standard Reports section. This kind of behavioural data, which pages actually hold attention and drive conversions, is also useful input when deciding which articles deserve pillar page status versus which should stay as supporting cluster content.

12. How do you create and save custom reports in GA4?

Custom reports in the standard Reports section are different from Explore reports, they're visible to everyone on the property, persist in the left nav, and don't require people to hunt for a shared Explore workspace. If you're building these to share progress with clients or stakeholders rather than just for internal analysis, IndexCraft's SEO Reporting Guide covers how to structure that communication layer on top of the raw GA4 data.

  1. Navigate to Reports > Library (visible at the bottom of the Reports navigation, you need Editor or Administrator role to access this).
  2. Click Create new report and choose between a detail report (table and chart view) and an overview report (a set of cards).
  3. Add the dimensions, metrics, and filters you need using the report builder on the right panel.
  4. Click Save, give the report a descriptive name, and optionally add it to an existing collection in the Reports navigation.
  5. To create a new collection (a logical grouping of related reports, similar to UA's custom dashboards), go to Reports > Library and click Create new collection. Add your custom reports and publish the collection to make it visible in the left navigation for all users.

Since 9 September 2026 you can also build a single-page KPI dashboard inside Reports; see the "What changed" box near the top for its limits.

Linking GA4 to Google Ads makes the data flow both ways. GA4 key events show up in Ads as conversion actions for smart bidding, and Google Ads campaign data, cost, clicks, impressions, ROAS, appears in GA4's Acquisition reports. Without the link, you're running both platforms without any shared context.

  1. Go to Admin > Product links > Google Ads links and click Link.
  2. Select the Google Ads accounts you want to link. You must have admin access to both the GA4 property and the Google Ads account.
  3. Review configuration options, particularly Auto-tagging. Enable it. Auto-tagging appends a gclid parameter to ad URLs that allows GA4 to attribute sessions to the exact ad, campaign, and keyword that drove them. Without auto-tagging, you see only "google / cpc" traffic with no campaign granularity.
  4. Click Submit. Data can take a day or two to start flowing.
  5. In Google Ads, open Goals > Conversions. Your GA4 key events will now be importable as Google Ads conversion actions for campaign measurement and smart bidding.

The Search Console integration adds a dedicated collection to GA4 Reports that combines organic search data, impressions, clicks, CTR, average position, with GA4's behavioural data. It's one of the most useful integrations available: instead of jumping between tools to understand both ranking and post-click behaviour, you can see them together, useful context when you're also doing search intent analysis or keyword research, since query-level GSC data combined with on-site engagement tells you whether a page is actually satisfying the intent behind the queries it ranks for. For a full breakdown of what GSC itself reports, and the workflows that data feeds into, see IndexCraft's Google Search Console Guide.

  1. Go to Admin > Product links > Search Console links and click Link. You need verified ownership of the Search Console property and the Editor role on the GA4 property.
  2. Click Choose accounts, select the Search Console property that matches your GA4 web stream URL, and click Confirm.
  3. Select the GA4 web data stream to associate with this property, then click Next and Submit.
  4. Navigate to Reports > Library. The Search Console collection is unpublished by default, so publish it to your navigation.
Set up the Search Console link early. Data is not simply backfilled. It starts from whichever came later, the site verification or the data stream creation, reports cover at most 16 months, and numbers show up about 48 hours after Search Console collects them (Google Analytics Help). Do it in the first day of a new property, even before you have traffic.

15. How do you link GA4 to BigQuery?

The BigQuery integration exports all your raw, unsampled GA4 event data to Google Cloud. It's the only way to go beyond GA4's 14-month retention limit, run SQL queries across your full history, and build reliable custom dashboards in Looker Studio, Tableau, or Power BI.

Free to set up. The daily BigQuery export has no export fee for GA4 properties, which used to be a 360-only feature. Standard properties have a daily export limit of 1 million events (360 properties can export up to 20 billion), and BigQuery storage and processing costs still apply. Streaming export adds $0.05 per GB and is best effort, so it can have gaps. Small sites often pay very little, but check the pricing before you turn on streaming. Source: Google Analytics Help: About BigQuery Export
  1. Create a Google Cloud project with BigQuery enabled. You can export to the free BigQuery sandbox, but exports that exceed its limits incur charges, so most teams switch billing on.
  2. In GA4, go to Admin > BigQuery Links and click Link.
  3. Select your Google Cloud project. Your Google account needs the right permissions on both the GA4 property and the Cloud project; the BigQuery Export help page lists them.
  4. Choose a data location, select the region closest to your primary user base for query performance and data residency compliance.
  5. Configure export frequency: Daily (runs once a day, typically mid-afternoon in the property's time zone, though it can slip to the next day) or Streaming (current-day data within minutes at $0.05 per GB, best effort, and without new-user traffic source fields).
  6. Click Submit. The first daily export runs the following morning.
Worth knowing: generative AI functions in BigQuery. BigQuery now has functions such as AI.GENERATE that you can run over any table, which includes your GA4 export tables, for things like summarising behaviour patterns by cohort. Check the documentation for the function's current release stage and pricing before you build on it. If you're also tracking AI search readiness on the content side, IndexCraft's AEO/SEO/GEO checklist is a useful companion. See: BigQuery AI.GENERATE documentation
Field notes My own data The BigQuery export is the part of GA4 that changes what's actually possible in analysis, and it's the first thing I configure once a basic implementation is stable. The standard GA4 interface is useful for operational monitoring, checking that traffic is arriving, events are firing, conversions are recording. For anything involving user-level journeys, cohort behaviour, or cross-channel attribution at any real depth, you quickly hit the sampling and aggregation limits of the built-in reports.

With BigQuery, I can run queries that answer questions the GA4 interface can't easily surface, how long the typical path from first visit to first purchase is across different acquisition channels, which content topics produce the highest 90-day retention by cohort, how conversion rates differ between users who arrived via paid and then returned organically versus those who converted on a single channel. My practical rule: if a site has more than basic monthly reporting needs, set up BigQuery in the first few weeks. The export cannot be backfilled, so every month without it is event-level history you never get back., Rohit Kunal

16. How do you set up cross-domain tracking in GA4?

Cross-domain tracking is needed when you own more than one domain and users move between them, from your main site to a separate checkout domain, for example, or to a third-party booking platform. Without it, GA4 counts a new user and session the moment someone crosses that domain boundary, making your funnel reports look like a cliff edge at a point where nobody actually dropped off. Multi-domain setups also tend to fragment internal linking and crawl budget across properties from an SEO perspective, so it's worth reviewing both the analytics and the technical side together if you're running this kind of architecture.

  1. Go to Admin > Data Streams, select your web stream, and click Configure tag settings.
  2. Under Settings, click Configure your domains.
  3. Click Add condition and enter each domain you want to include (e.g. yourbrand.com, checkout.yourbrand.com). Use the "contains" match type rather than "equals" to catch all subdomains.
  4. Click Save. GA4 automatically appends a _gl linker parameter to links between these domains, passing identity across the boundary.

You must have the GA4 tracking code installed on all domains in the cross-domain list. Verify the setup by navigating between the two domains in your browser and confirming in the Realtime report that both page views appear under the same user session without a session reset.

17. How do you configure data retention settings in GA4?

The data retention setting controls how long GA4 stores event-level user data before deleting it. The default is 2 months, which isn't long enough for any meaningful trend analysis or year-over-year comparisons in Explore. Change this on day one.

  1. Go to Admin > Data Settings > Data Retention.
  2. Under Event data retention, change the dropdown from 2 months to 14 months, the maximum available on the free tier.
  3. Enable Reset user data on new activity. This restarts the retention clock whenever a user is active, meaning engaged returning users' data is never deleted while they continue using your product.
  4. Click Save.
Worth clarifying: Google says the retention setting only affects explorations and funnel reports. Standard aggregated reports (Acquisition, Engagement, Monetisation) are not affected by it, so even at the 2-month default you can still see monthly trends in them from the day the property was created. The retention limit kicks in when you need user-level, event-level analysis in Explore beyond the retention window. For unlimited event-level data, use BigQuery.

18. How do you enable Google Signals in GA4?

Google Signals taps into data from users who are signed into their Google accounts and opted into personalised ads. Turning it on lets GA4 report on cross-device journeys and show demographic breakdowns based on Google's ad profiles.

  1. Go to Admin > Data Settings > Data Collection.
  2. Under Google Signals data collection, click Get Started.
  3. Read the data collection disclosure and click Continue, then Activate.
Data thresholding warning: Google applies data thresholds to protect anonymity, and in reports that use Google signals it can withhold rows when user counts are low. On small and mid-size sites I often see a noticeable share of rows hidden once Signals is on My own data. Turn Signals on only if cross-device reporting or demographic targeting in Google Ads is a stated requirement. If thresholding is already hurting your data, change the Reporting identity setting to Device-based. Note that Google signals data expires after 26 months by default.

Short answer: connect a Google-certified consent platform, default all four consent signals to denied for EEA visitors, and let the banner update them to granted only after a visitor agrees.

Consent Mode v2 is how GA4 adapts data collection based on what users actually consent to. Google began enforcing it for advertisers serving EEA users in March 2024, and sites without a working implementation risk losing remarketing and conversion features for that traffic. Usercentrics also notes the requirement covers the UK and Switzerland.

CM2 requires four consent parameters to all be configured (Usercentrics explains the two that were added in v2):

ParameterControlsRequired for EEA?New in CM2?
analytics_storageGA4 analytics cookies and user measurementYesNo (existed in CM1)
ad_storageGoogle Ads conversion and remarketing cookiesYesNo (existed in CM1)
ad_user_dataSending user data to Google for advertising purposesYesYes, new in CM2
ad_personalizationPersonalised advertising and audience remarketingYesYes, new in CM2

You'll need a Google-certified CMP (Consent Management Platform), Cookiebot, OneTrust, Usercentrics, and similar, to handle this properly. The CMP needs to set the default consent state (typically denied for EEA users) before the GA4 tag fires, then update it to granted once the user consents. When consent is denied, GA4 uses behavioural modelling to estimate non-consenting user activity, keeping your conversion reports statistically useful without collecting individual user data.

Field notes My own data Consent Mode misconfiguration is the issue I flag most urgently, because it sits where analytics accuracy meets legal compliance, and getting it wrong in either direction causes problems.

The version that concerns me most is when the default consent state is set to 'granted' for all users including EEA visitors, meaning full analytics data is collected before the user has made any choice. I've found this in several implementations where the technical setup looked correct on the surface but the default state hadn't been configured specifically for regulated markets. The fix is straightforward: set the default to 'denied' for analytics and ad storage for EEA users, and let the CMP update those values only after explicit consent is given. Before any GA4 implementation goes live in markets where GDPR or similar applies, I always simulate a first-time visit from a VPN pointed to a relevant country and confirm in DebugView that no events are firing before consent is granted., Rohit Kunal

20. How do you debug and test your GA4 implementation?

Don't assume your tracking is working just because no errors appeared during setup. GA4 gives you a couple of solid tools for checking, and there's a third-party extension worth knowing about too. If you want to test your broader technical SEO fundamentals alongside your GA4 setup, IndexCraft's technical SEO practice quiz is a useful checkpoint.

DebugView (primary debugging tool)

DebugView (under Admin > DebugView) streams events in real time from any device currently in debug mode. It's the best tool for deep event validation, you can see every parameter and its value as interactions happen. To activate debug mode:

  • Chrome extension (recommended): Install the Google Analytics Debugger Chrome extension and enable it. All events fired in that browser session appear in DebugView in real time, including every parameter and their values.
  • GTM Preview mode: Entering GTM Preview Mode automatically activates GA4 debug mode for the preview browser window. Events from that session appear in DebugView.
  • debug_mode parameter: Adding 'debug_mode': true to your config call (or event) sends that traffic to DebugView.

Realtime Report (quick validation)

The Reports > Realtime report shows all activity from the last 30 minutes. It's the fastest sanity check after a deployment, your site in one tab, GA4 Realtime in another, events appearing as you navigate. Click any event row to see its parameters. Not as detailed as DebugView, but more than enough to confirm a tag is firing.

Browser DevTools (network-level check)

Open DevTools, go to the Network tab and filter for /g/collect. Every GA4 hit appears there with its event name and parameters, which is useful when DebugView lags or you want to confirm exactly what leaves the browser. For complex setups where several events fire at once, it is the most direct check you can run.

Field notes My own data The five checks I run without exception before any GA4 implementation goes to production traffic:

First, DebugView shows all intended key events firing with correct parameter values on the correct pages, none on the wrong ones. Second, Realtime report shows no duplicate events; I look specifically for any event appearing twice per interaction. Third, the internal traffic filter is in Testing mode and correctly catching my own IP before it's switched to Active. Fourth, Consent Mode default state is set to 'denied' for EEA users, confirmed by a VPN visit to a German IP and a check in DebugView that nothing fires before consent is granted. Fifth, BigQuery export is linked and today's data is already appearing in the intraday events table.

If any of these five aren't passing, the implementation isn't ready. Every one of them has caught a real issue in a live project at some point., Rohit Kunal

21. How do you set up GA4 e-commerce tracking?

GA4 e-commerce tracking is built around a set of recommended events defined by Google. Unlike UA Enhanced Ecommerce, where you could get away with a loose implementation, GA4's schema is strict: get the parameter names wrong and whole sections of the Monetisation reports just stay empty with no obvious indication why. This tracking layer is the analytics half of a broader discipline, for the SEO side of running a storefront, see IndexCraft's e-commerce SEO guide.

EventWhen to FireKey Parameters
view_item_listCategory page, search results, or product carousel loadsitems[] (plus item_list_name if you use lists)
view_itemProduct detail page loadcurrency, value, items[]
add_to_cartUser adds a product to their cartcurrency, value, items[]
begin_checkoutUser initiates the checkout processcurrency, value, items[]
add_payment_infoUser enters payment detailscurrency, value, items[] (payment_type is optional)
purchaseTransaction successfully completedtransaction_id, value, currency, items[] (tax and shipping are optional)
refundFull or partial refund issuedtransaction_id (needed to process the refund), plus value, currency and optionally items[]

Each event needs to include an items array containing objects with standardised parameters: item_id, item_name, item_category, price, and quantity. Each item needs either item_id or item_name; the rest are optional but strongly recommended. These parameter names overlap closely with Product schema properties covered in IndexCraft's Schema Markup Guide, so it's worth keeping both consistent if you maintain structured data and GA4 tracking side by side.

Field notes My own data Duplicate purchase events from order confirmation page refreshes are more common than most teams realise, and the downstream effect on revenue reporting and bidding is material enough that I treat it as a required check on every e-commerce implementation.

The typical scenario: the purchase event fires on every load of the order confirmation page, and a small but consistent percentage of customers, anywhere from 1 in 10 to 1 in 20 depending on the site, refreshes that page out of habit or to screenshot their order details. I audited a retail site where around 7.8% of reported orders were duplicates from this pattern. At their average order value and monthly volume, the inflated revenue figure was large enough to be significantly distorting their CAC calculations and skewing automated bidding targets upward.

First check transaction_id: Google deduplicates web purchase events that carry the same transaction ID, so duplicates usually mean the ID is empty or changes on reload (Google Analytics Help: Measure ecommerce). If the ID is fine, gate the purchase event behind a sessionStorage flag set right after it fires., Rohit Kunal

22. Common GA4 mistakes and how to avoid them

These six issues are worth checking on a recurring basis, they're exactly the kind of thing a periodic SEO audit should catch before they quietly distort months of reporting.

Mistake #1: Dual installation (site snippet + GTM). Installing GA4 directly on the site AND via Google Tag Manager doubles every event, session, and conversion count. Pick one method and stick to it. If you're moving to GTM, search your site's source for any existing gtag/js?id=G- strings and remove them before publishing the GTM tag.

Mistake #2: Leaving data retention at 2 months. The default retention period means all event-level data in Explore reports gets deleted after 60 days. Change it to 14 months in Admin > Data Settings > Data Retention on day one, you can't recover data that's already been deleted.

Mistake #3: Marking micro-interactions as key events. Scroll depth, outbound clicks, video plays, these are not conversions. When every interaction is marked as a key event, the reports become noise and your smart bidding signals in Google Ads degrade. Keep key events reserved for actions that directly indicate business value.

Mistake #4: Skipping the BigQuery integration. Without it, event-level data is gone after 14 months, SQL queries across your full history aren't possible, and any BI dashboard work is significantly harder. The daily export is free to set up and BigQuery costs on small sites are usually modest. Mind the 1 million events per day limit on standard properties.

Mistake #5: Wrong Consent Mode v2 default states. Setting granted as the default for all users, including EEA visitors, almost certainly breaks consent rules. EEA defaults should be denied. Always verify your consent default by simulating a first-time EEA visitor visit using a VPN before launch. This is a legal issue, not just a configuration preference, so check it with your counsel.

Mistake #6: Never cross-referencing GA4 against another source of truth. GA4 can look like it's working perfectly while quietly under- or over-counting. Cross-reference conversion data against your CRM, payment processor, or server logs at least once a month. In my experience a 5–10% gap is normal and above 15% needs investigating My own data.

Frequently Asked Questions

What is the difference between GA4 and Universal Analytics?

Universal Analytics was built around sessions and pageviews, with the session as the core unit of measurement. GA4 flips this: everything is an event with attached parameters, whether it's a pageview, a button click, a scroll, or a purchase. On top of that, GA4 has native cross-device tracking, built-in machine learning for predictive metrics and modelled consent data, Consent Mode v2, and free BigQuery access. Universal Analytics stopped processing data for standard properties on July 1, 2023, with 360 properties following on July 1, 2024. One practical thing to know: sessions are counted differently. UA restarted sessions at midnight and on campaign changes; GA4 does not, and it filters known bots, so the two will not match for the same period.

How do I add GA4 to my website without Google Tag Manager?

Go to Admin > Data Streams, select your web stream, and click "View tag instructions" under the Google tag section. Copy the gtag.js snippet and paste it as high as possible in the <head> of every page, replacing G-XXXXXXXXXX with your actual Measurement ID. Verify it's working by checking the Realtime report in GA4, your own session should appear within a minute or two of loading the page. One heads-up: if you later switch to Google Tag Manager, remove the direct snippet first. Running both at once is one of the most common GA4 data quality problems, and it doubles all your event counts.

What are key events in GA4?

Key events are GA4's version of Goals from Universal Analytics, with a limit of 30 per standard property (50 on Analytics 360) instead of 20 per view, and any event can be marked as one. You do it from Admin > Events by toggling "Mark as key event" next to the event name. They show up across standard reports and can be imported into Google Ads as conversion actions. Keep key events focused on things that directly indicate business value, purchases, leads, sign-ups, demo requests. Marking micro-interactions like scrolls or video plays as key events dilutes your conversion data and can actively harm smart bidding performance.

How does GA4 handle data sampling?

Standard GA4 reports, Acquisition, Engagement, Monetisation, are unsampled. Sampling can happen in Explore reports when you're querying large datasets over long date ranges; GA4 tells you when it's occurring. You can reduce it by shortening the date range, adding filters, or splitting the analysis into smaller chunks. If you need guaranteed unsampled analysis at any scale, export your raw event data to BigQuery and query it there, that's the standard approach for teams doing serious analytics work.

Is GA4 GDPR compliant?

GA4 gives you the tools to support GDPR compliance, Consent Mode v2, data deletion requests, IP anonymisation (on by default and not configurable), adjustable data retention, and the option to disable personalised advertising. But compliance is your responsibility as the site owner, not Google's. You need a valid cookie consent mechanism from a Google-certified CMP, your Privacy Policy needs to accurately describe what you're collecting, and Consent Mode v2 defaults must be set to "denied" for EEA users. Setting "granted" as the default is very unlikely to pass a consent review even if you show a banner. GA4 has also faced regulatory scrutiny in several EU countries (Austria, France, Italy, Denmark) over US data transfers, much of it before the EU-US Data Privacy Framework took effect in July 2023. If you operate in those markets, talk to your legal team.

What is the GA4 data retention limit?

The default is 2 months. You can extend it to 14 months, the maximum on the free tier, in Admin > Data Settings > Data Retention. This only affects event-level data in Explore reports; standard Reports keep aggregated data indefinitely regardless of this setting. For raw event-level data with no expiry, use the BigQuery integration, daily exports create tables in your Google Cloud project, and they stay under your control. Change retention to 14 months when you first create a property. You can't get back data that's already been deleted.

How do I track form submissions in GA4?

The most reliable approach is a thank-you page redirect: after the form submits, send users to a dedicated confirmation URL (like /thank-you/) and track that page_view as a key event using Admin > Events > Create Event. Zero false positives, works regardless of how the form is built. If you can't use a redirect, set up a GTM Form Submission trigger to fire a custom GA4 event on completion. Don't rely on Enhanced Measurement's built-in form_submit event for anything you're using as a conversion, on custom JavaScript forms it often fires at the wrong moment or not at all, so it should only be treated as supplementary data, not a primary conversion signal.

Can I use GA4 for a mobile app?

Yes, GA4 was designed for this. A single property can include web and mobile app data streams side by side, so you can see cross-platform user journeys in one place. For iOS, integrate the Firebase SDK for iOS. For Android, use the Firebase SDK for Android. Both stream into the same GA4 property alongside your web data, which lets you track things like users who browse on mobile web and then convert in-app, or follow the journey from a Google Ads click through to an in-app purchase.

What replaced Goals in GA4?

Goals from Universal Analytics became Key Events in GA4. Any event can be designated as a key event from Admin > Events, and UA capped you at 20 Goals per view; GA4 allows 30 key events on a standard property and 50 on Analytics 360. Like UA Goals, they only count from the moment you mark them, so GA4 will not relabel older events as key events afterwards. Once your property is linked to Google Ads, you can import key events there as conversion actions, but only events already marked as key events show up for import.

How do I see real-time data in GA4?

Go to Reports > Realtime in the left nav. It shows everything from the last 30 minutes, active user count, locations on a map, top active pages, top traffic sources, a minute-by-minute event chart. Click any event row to see its parameters. It's also the quickest way to check a new installation: load your site in one tab, watch GA4 Realtime in another, and your session should appear within 60–90 seconds. If nothing shows up after two minutes, the most common culprit is the snippet being placed in the <body> instead of the <head>.

Is the GA4 BigQuery export really free?

Setting up the daily export costs nothing, but it is not unlimited or free of running costs. Standard properties can export up to 1 million events per day (360 properties up to 20 billion), and BigQuery storage and processing costs apply. Streaming export adds $0.05 per GB and is best effort, so it can have gaps. For most small sites the bill is modest, but check BigQuery pricing before enabling streaming.

What changed in GA4 recently?

In 2026 Google added hostname data filters (an exclude filter on 11 June, then an include allowlist on 21 September), a Source Group dimension on 11 June, and dashboards in Reports on 9 September. Hostname filters are not retroactive and do not apply to Measurement Protocol events, so start them in Testing state. Check the Google Analytics release notes before relying on any of these in client reporting.

🔗 Pair this with
🔍 Search Console · Performance · Page indexing Google Search Console 2026: All Reports Explained

The organic-search counterpart to GA4, query-level data, indexing status, and Core Web Vitals reporting that GA4 alone can't show you.

Read the GSC guide →
📊 SEO Reporting · Dashboards · KPIs SEO Reporting Guide: Building Dashboards That Communicate Organic Performance

Turn the Key Events and audience data covered in this guide into stakeholder-ready dashboards alongside GSC and business KPIs.

Read the reporting guide →
⚙️ Technical SEO · Crawlability · Core Web Vitals Technical SEO Guide 2026: Crawlability, Indexing & Site Architecture

The technical foundation that determines whether GA4 is even measuring a crawlable, indexable site in the first place.

Read technical SEO guide →
💰 Google Ads · Conversion Tracking Google Ads Guide 2026: Campaigns, Bidding & Optimisation

For the Google Ads side of the Key Events import covered in this guide, campaign structure, conversion tracking, and linking Ads to GA4 properly.

Read the Google Ads guide →

Written and tested by

Rohit Kunal

Before founding IndexCraft, Rohit Kunal spent 13+ years running technical SEO programs for enterprise tech, SaaS, and e-commerce brands across India, the kind of hands-on work (crawl fixes, schema, Core Web Vitals, GA4) that's touched 150+ websites and still shapes how he writes every guide here.

The guides published on IndexCraft are written from direct practice: audits run on live sites, strategies tested on real projects, and observations built up over years of working inside SEO programs rather than commenting on them from the outside. No tool, tactic, or framework in these articles is recommended without first-hand use behind it.

He is based in Bengaluru, India.