GA4 Guide 2026: Set Up Google Analytics 4 and Track Key Events
The complete GA4 playbook for Indian marketers: setup, events, key events, consent mode, UTMs, AI referrals, retention and BigQuery.

The complete GA4 playbook for Indian marketers: setup, events, key events, consent mode, UTMs, AI referrals, retention and BigQuery.

01GA4 (Google Analytics 4) records every interaction as an event and replaced Universal Analytics, which stopped processing standard property data on 1 July 2023.
02A standard GA4 property allows 30 key events, and Google renamed conversions to key events so Analytics and Google Ads count important actions the same way.
03GA4 data retention defaults to 2 months, and switching it to 14 months on day one keeps explorations useful for year-on-year analysis.
04Since 13 May 2026, GA4 has a built-in AI Assistant channel for visits from ChatGPT, Gemini and other assistants, and a custom channel group adds control and retroactive reporting.
GA4, or Google Analytics 4, is Google’s analytics platform for websites and apps. It records every visit, click, form fill and purchase as an event, and it replaced Universal Analytics, which stopped processing data for standard properties on 1 July 2023. This guide shows you how to set GA4 up properly, track the key events that matter and read the reports without guesswork.
Most half-built setups look the same: the tag is live, nothing is marked as a key event, retention sits at 2 months, Google Ads is unlinked and WhatsApp clicks are invisible. Fix those five gaps and GA4 stops being a visitor counter and starts telling you which channel earns your money.
GA4 is Google’s event-based analytics platform for websites and apps. Instead of treating the session as the core unit, GA4 records each action, such as a page view, scroll, outbound click or purchase, as a separate event with parameters attached, then builds sessions, users, channels and key events on top of that stream.
Every event has a name and a set of parameters. A page_view carries page_location and page_referrer. A file_download carries the file name and extension. Google’s help centre groups events into four types:
session_start and first_visit.generate_lead and purchase.Engagement replaces the old obsession with bounces. Google Analytics Help defines an engaged session as one that lasts longer than 10 seconds, has a key event, or has 2 or more page or screen views. Engagement rate is the share of engaged sessions, and GA4 bounce rate is simply the share of sessions that were not engaged.
Universal Analytics was built around sessions and stopped processing data for standard properties on 1 July 2023, with Analytics 360 properties getting an extension to 1 July 2024. GA4 is event-based, can combine website and app data in one property, and uses data streams, engagement metrics and key events where Universal Analytics used views, bounce rate and goals.
| Area | Universal Analytics | GA4 |
|---|---|---|
| Data model | Session-based | Event-based, every interaction is an event |
| Data sources | Website properties with views | Website and app data streams in one property |
| Important actions | Goals | Key events, which can become Google Ads conversions |
| Quality metric | Bounce rate | Engagement rate; bounce rate is its inverse |
| Status in 2026 | Stopped processing on 1 July 2023 (360: 1 July 2024) | The only Google Analytics you can collect data into |

To set up GA4, create a Google Analytics account and property, add a web data stream for your site, copy the Measurement ID that starts with G-, install the Google tag through your CMS, a plugin, the manual snippet or Google Tag Manager, and then confirm hits in the Realtime report.
Go to analytics.google.com and click Start measuring if it is your first time. Otherwise open Admin, click Create and choose Account or Property. You need the Editor role to create a property.
Enter a property name, then pick the reporting time zone and currency. For an Indian business, choose India time and Indian rupee, so daily numbers line up with your bank and your Google Ads account. Then select your industry, business size and how you plan to use Analytics, click Create and accept the terms.
In Admin, under Data collection and modification, click Data streams, then Add stream and Web. Enter your primary URL and a stream name, keep enhanced measurement on, and click Create stream.
Open the stream and copy the Measurement ID under Stream details. It starts with G-. One website should have one web stream. Separate streams for www and non-www versions of the same site split your data for no benefit.
You have four routes. Pick one and only one, because two installs on the same page double-count everything.
| Method | Best for | How it works | Watch out for |
|---|---|---|---|
| Built-in CMS field | Shopify, Wix, WooCommerce, Squarespace, HubSpot | Paste the G- ID into the platform’s Google Analytics field | Less control over custom events |
| WordPress plugin | WordPress sites without a developer | Site Kit by Google or MonsterInsights connects Analytics from the dashboard | A theme or another plugin may already add the tag |
| Manual gtag.js snippet | Custom-coded sites | From the stream, click View tag instructions, then Install manually, and paste the code right after the opening head tag on every page | Every new template needs the snippet |
| Google Tag Manager | Sites that need custom events, consent mode and ad pixels | Add a Google Tag with your Tag ID and an Initialization trigger | Needs a clean container and a publish step |
WordPress. Site Kit by Google is the official plugin, with over 5 million active installs listed on WordPress.org. It connects Analytics, Search Console, Tag Manager and Ads, and its settings live under Site Kit > Settings. If you run Tag Manager already, put GA4 in Tag Manager and do not let the plugin place a second tag.
Google Tag Manager. In your container, go to Tags, click New, choose Google Tag as the tag type (or Google Analytics > Google Analytics in the newer flow), enter your Tag ID and set the trigger to Initialization – All Initialization Events. Click Preview to test in Tag Assistant, then Submit and Publish.
Google says data can take up to 30 minutes to appear. Open the Realtime report, visit your site from your phone on mobile data, and look for yourself. Since 29 April 2026, GA4 also shows a Task Assistant in the left menu with tailored setup recommendations, such as connecting accounts and fixing data issues.
Enhanced measurement makes GA4 track page views, scrolls, outbound clicks, site search, YouTube video engagement, file downloads and form interactions without any code changes. You turn it on per web data stream, and the events start flowing as soon as each option is enabled, which makes it the cheapest tracking win available.
| Option | Event name | Fires when |
|---|---|---|
| Page views | page_view | Each page load or browser history change; cannot be turned off |
| Scrolls | scroll | First time a user reaches 90% depth on a page |
| Outbound clicks | click | A click on a link to another domain |
| Site search | view_search_results | A results page loads with a search query parameter in the URL |
| Video engagement | video_start, video_progress, video_complete | Embedded YouTube videos with JS API support start, pass 10, 25, 50 and 75%, and end |
| File downloads | file_download | A click on a link to a common document, media or archive file |
| Form interactions | form_start, form_submit | First interaction with a form in a session, and form submission |
The path is Admin > Data collection and modification > Data streams, then click your stream and use the Enhanced measurement slider. Click the gear icon to configure each option. Your site search uses a parameter other than q or s? Add it there.
Two cautions. The form events fire on many forms that are not real leads, such as newsletter boxes and search bars, so do not mark form_submit as a key event blindly. And form parameters only show in reports after you register them as custom dimensions.
Recommended events are event names and parameters Google has already defined for common actions such as generate_lead, sign_up and purchase. GA4 does not send them automatically, so you add them with code or Tag Manager. Custom events are names you create for anything else, such as a WhatsApp chat click or a brochure request.
Always check the recommended list first. Google’s help page says sending recommended events with their prescribed parameters gives you the most detail in reports. The lists that matter most for Indian businesses:
generate_lead, qualify_lead, disqualify_lead, working_lead, close_convert_lead, close_unconvert_lead.view_item, add_to_cart, begin_checkout, add_shipping_info, add_payment_info, purchase, refund, plus list and promotion events.login, sign_up, search, share, select_content.Custom events fill the gaps. A D2C brand in Bengaluru that sells mostly through WhatsApp should track a whatsapp_click event whenever someone taps a wa.me link. In Tag Manager, that is a Just Links click trigger where Click URL contains wa.me, feeding a Google Analytics event tag.
Respect the limits on Google’s event collection page: event names up to 40 characters, 25 parameters per event, and parameter values up to 100 characters for most fields. Use lowercase with underscores, and never send names, phone numbers or email addresses as parameters. Google requires you to keep personally identifiable information out of GA4.
To mark a key event in GA4, go to Admin, then Events under Data display, find the event in the Recent events tab and click the star icon next to it. For an event that does not exist yet, click Create event, name it and switch on Mark as key event. Key events were called conversions until Google renamed them.
Google renamed them to fix a real problem. Analytics and Google Ads used to count conversions differently, so the two platforms disagreed. Now an event becomes a key event in Analytics, and a key event can become a conversion in Google Ads for measurement and bidding. Google’s chain is simple: event, then key event, then conversion.
A standard property allows 30 key events and Analytics 360 allows 50. Some events, such as purchase, are key events by default. When you create one, you also choose a default value and a counting method. Pick once per session for leads, since a user who submits the same form twice is still one lead.
Watch this: Google’s linking guide says that when you link Google Ads with personalized advertising on, events including add_to_cart, begin_checkout, session_start and view_item are also marked as key events. Review your key events list right after linking and unstar anything that is not a business outcome, or your key event rate becomes meaningless.
Consent mode v2 passes each visitor’s cookie choice to Google tags through four parameters: ad_storage, analytics_storage, ad_user_data and ad_personalization. Google’s consent guidance is written for tag users who receive data from users in the European Economic Area. Sites with only Indian traffic sit outside that guidance, but India’s DPDP Act makes consent design relevant anyway.
Here is what each parameter controls, according to Google’s consent setup page:
ad_storage: storage such as cookies used for advertising.analytics_storage: storage used for analytics, such as visit duration.ad_user_data: whether user data can be sent to Google for advertising, needed for enhanced conversions.ad_personalization: whether data can be used for remarketing and personalized ads.There are two implementations. In basic consent mode, Google tags stay blocked until the visitor agrees, so declined visitors send nothing. In advanced consent mode, tags load before the banner and send cookieless pings when consent is denied, which lets GA4 run behavioural and conversion modelling to fill the gaps. If you have European visitors or run ads to them, use advanced mode through a certified consent management platform such as Cookiebot, OneTrust or Usercentrics, or through Tag Manager.
For India, the Ministry of Electronics and IT notified the Digital Personal Data Protection Rules on 14 November 2025, with an 18-month phased compliance window. The rules require a separate, clear consent notice that explains the purpose of collection, and users can withdraw consent at any time. Penalties under the DPDP Act go up to ₹250 crore for failing to keep reasonable security safeguards. Get a privacy lawyer to confirm what applies to your site, and build your consent banner so it can drive consent mode either way.

Link Google Ads from Admin, Product links, Google Ads links, and Search Console from Admin, Product links, Search Console links. You need the Editor role in GA4 plus admin access in Google Ads or verified ownership in Search Console. Ads data shows in Analytics within 48 hours, and Search Console data arrives with a 48-hour lag.
Then create Google Ads conversions from your GA4 key events if you want Ads to bid on them. Using GA4 audiences in Google Ads also needs Google signals or user-provided data collection active on the property. A property supports up to 400 links. For the bidding side, read our breakdown of GA4 and Google Ads integration for paid search and how to choose the right conversion tracking method for PPC.
You get two reports: Google Organic Search Queries and Google Organic Search Traffic. One web stream links to one Search Console property, and links cannot be edited, only deleted and recreated. Pair this with the Search Console features most marketers never use.
For most marketers, five GA4 reports answer the everyday questions: Realtime for checking tracking, Traffic acquisition for channel performance, Landing page for which pages start profitable sessions, Events for what users do, and Pages and screens for content performance. Everything else is either a variation of these or a job for Explorations.
| Report | Question it answers | Where to find it |
|---|---|---|
| Realtime | Is my tag and my new event firing right now? | Reports > Realtime |
| Traffic acquisition | Which channels bring sessions, engagement and key events? | Reports > Acquisition > Traffic acquisition |
| User acquisition | Which channel first brought each new user? | Reports > Acquisition > User acquisition |
| Landing page | Which entry pages convert and which leak? | Reports, Engagement section or the Generate leads collection |
| Events | How often is each event and key event triggered? | Reports, Engagement section |
| Pages and screens | Which content gets views and engagement time? | Reports, Engagement section |
Properties created on or after 27 March 2023, or set up with business information, can use the Business objectives collection. It groups reports under goals like Generate leads and Drive online sales. Find it in Reports > Library and click Publish to add it to your menu.
Read Traffic acquisition with Session primary channel group as the dimension, then add Session source / medium as a secondary dimension. Sort by key events, not sessions. A channel with half the traffic and twice the leads deserves the budget. Our conversion rate optimization guide shows what to do once the Landing page report exposes a weak page.
Use GA4 Explorations when a standard report cannot answer your question, such as where users drop out of a checkout, which paths lead to a lead form, or how a segment of WhatsApp visitors behaves differently. Click Explore in the left menu and choose a technique. Retention limits how far back they look.
Google lists seven techniques:
Each user can save up to 200 explorations per property, with up to 10 segments per exploration.
Add utm_source, utm_medium and utm_campaign to every link you control outside Google Ads, such as Instagram bios, WhatsApp broadcasts, emails, influencer links and QR codes. GA4 reads these parameters to assign source, medium, campaign and channel. Google says missing parameters show up as (not set), and values are case sensitive, so use lowercase every time.
A WhatsApp broadcast link for a festive sale would look like this: https://example.in/diwali-sale?utm_source=whatsapp&utm_medium=broadcast&utm_campaign=diwali_sale_2026&utm_id=dw26
Google also strongly recommends utm_id and utm_source_platform, and supports utm_term and utm_content for keywords and creative variants. Build links with Google’s free Campaign URL Builder at ga-dev-tools.web.app. For Google Ads, let auto-tagging do the job once the accounts are linked.
Pro tip: Keep a shared UTM sheet with allowed values for source and medium. Ten people typing Instagram, instagram and IG will give you three sources and a broken report. Check our Meta Ads guide and email marketing guide for channel-specific tagging.
Since 13 May 2026, GA4 puts recognised AI assistant visits into a built-in AI Assistant channel, setting the medium to ai-assistant. For full control and older data, create a custom channel group with an AI channel defined by a source regex such as chatgpt.com or perplexity.ai, placed above Referral. Custom channel groups apply to reports retroactively.
Google’s channel definitions page says the AI Assistant channel covers assistants such as ChatGPT, Gemini, DeepSeek, Copilot and Grok. Google AI Overviews and AI Mode stay in Organic Search. On 11 June 2026, Google added a Source Group dimension that groups spelling variants of common sources, with built-in grouping for AI sources like ChatGPT and Perplexity, and Source Group is filled in retroactively.
Why build a custom group at all? Google’s announcement does not say the new default channel applies to older data, and you may want your own list of assistants. Here is the setup:
chatgpt\.com|openai\.com|perplexity\.ai|gemini\.google\.com|copilot\.microsoft\.com|claude\.ai. Click Save channel.A standard property gets 2 custom channel groups and up to 50 channels per group, so do not waste them. One caveat: custom channel groups are not in the BigQuery export schema. Getting cited by these assistants in the first place is a separate job, covered in our AI search optimization guide.

Set GA4 event data retention to 14 months, the maximum for a standard property, on the day you create it. The default is 2 months, and retention limits explorations and funnel reports, so a 2-month setting means you cannot compare this Diwali season with the last one in an exploration. Standard aggregated reports are not affected.
The path is Admin > Data collection and modification > Data retention. Choose 14 months under Event data retention, decide whether to keep Reset user data on new activity on, and click Save. You need the Editor role.
Know three quirks. Increasing retention applies to data not yet deleted, so the change is not retroactive for anything already gone. Age, gender and interest data are always kept for 2 months. Analytics 360 properties can choose 26, 38 or 50 months for event data, and anyone who needs longer history on a standard property should use BigQuery.
BigQuery export sends your raw, event-level GA4 data into a Google Cloud BigQuery project, where you can query it with SQL, keep it as long as you pay for storage and join it with CRM or sales data. Standard properties can export up to 1 million events a day in the daily export, while streaming export has no event limit.
You need Editor access in GA4 and Owner access on the BigQuery project. The daily file usually lands in the early afternoon of your reporting time zone, and data should start within 24 hours of linking. You can start in the free BigQuery sandbox, which has a 10 GB storage quota. Turn the export on early even if nobody queries it yet. BigQuery only holds what has been exported, so the sooner you link, the more raw history you own.
The most common GA4 mistakes are double tagging, skipping key events, leaving retention at 2 months, inconsistent UTM values, never linking Google Ads or Search Console, and marking every form submission as a lead. Each one is quick to fix, but each one silently corrupts months of data while the reports still look normal.
scroll or session_start inflates your numbers and confuses bidding.Our guide to low PPC conversion rates covers the tracking faults that make good campaigns look bad.
GA4 is only as good as the five decisions you make in week one: one clean tag, 14-month retention, three to five real key events, linked Google Ads and Search Console, and strict UTMs. Get those right and GA4 answers the only question a founder cares about: which rupee of spend brought which lead or sale. Skip them and you will have a pretty dashboard that cannot defend a budget.
Treat GA4 as a project, not a one-time install.
| Window | Do this | Done when |
|---|---|---|
| Days 1 to 30 | Create property in India time and INR, one web stream, one tag, enhanced measurement on, retention at 14 months, mark 3 to 5 key events, link Google Ads and Search Console | Realtime shows your visits and test leads appear as key events |
| Days 31 to 60 | Add recommended events (generate_lead, ecommerce), custom events such as whatsapp_click, a UTM sheet, the AI channel group, consent mode, hostname filters | Traffic acquisition shows clean channels with almost no (not set) or Unassigned |
| Days 61 to 90 | Build a funnel exploration, import key events as Google Ads conversions, link BigQuery, publish the Business objectives and Search Console collections | You can name your best channel by cost per lead, from GA4 and Ads together |

GA4 sits at the centre of your measurement stack. These PingTalks guides pick up where this one stops:
Google says new GA4 data can take up to 30 minutes to appear, and the Realtime report is the place to check. Google Ads data shows up within 48 hours of linking, and Search Console data arrives 48 hours after Search Console collects it.
No. You can install GA4 through your CMS field, a WordPress plugin such as Site Kit by Google, or the manual gtag.js snippet. Tag Manager becomes worth it when you need custom events, consent mode and several ad pixels managed in one place.
A standard GA4 property lets you mark up to 30 events as key events, and an Analytics 360 property allows 50. Keep the list to real business outcomes such as leads, purchases and sign-ups so your reports and bidding stay meaningful.
Since 13 May 2026, GA4 places recognised AI assistant visits, such as those from ChatGPT and Gemini, in a default AI Assistant channel with the medium ai-assistant. A custom channel group with a source regex gives you your own list of assistants and applies to older data in reports.
Google Analytics shows (not set) when campaign parameters are missing from a link. Always add utm_source, utm_medium and utm_campaign, keep values lowercase, and let auto-tagging handle Google Ads traffic.




What changed in marketing and AI, why it matters and exactly what to do. In your inbox at 11:00 IST.