Google Analytics 4 Setup: A Step-by-Step Technical Guide
Creating a GA4 account, data retention, channel groups, tag setup and verification, plus Search Console and Google Ads links: a menu-by-menu setup guide.

Setting up Google Analytics 4 (GA4) takes a few minutes, but a setting skipped on day one can turn into data loss you can’t recover months later. In this post, I walk menu by menu through creating a GA4 account from scratch, the basic settings to configure on day one, installing and verifying the tag, and linking Search Console and Google Ads. There are no screenshots; I describe each step by its menu path in the Google Analytics interface.
What are an account, a property and a data stream in GA4?
Before you start, you need to tell three concepts apart, because every setting lives under one of them:
| Layer | What it does | Example |
|---|---|---|
| Account | The top-level container, usually one per company | “Company Name” |
| Property | Where reports, settings and links live | “yourcompany.com” |
| Data stream | The source the data comes from: a website, an iOS app or an Android app | “Web - www.yourcompany.com” |
If the same product has both a website and an app, they sit under the same property as separate data streams. For separate country sites or completely different brands, a separate property is usually cleaner.
How do you create an account and a property?
- Go to analytics.google.com with the Google account your company will use. Use a company account instead of a personal one, so you don’t run into access problems when an employee leaves.
- If this is your first time, click Start measuring. If you already have an account, go to Admin > Create > Account.
- Enter the account name. Read the data sharing settings (Account data sharing settings) and check the ones you need.
- Fill in the property name, Reporting time zone and Currency. The time zone and currency should match the market you sell in (for example, Turkey and TRY for a site selling in Turkey).
- Select your business details and objectives. This choice determines the default set of reports.
- Accept the terms of service and the Data Processing Amendment.
How do you add a web data stream?
- Once the property is created, the platform selection screen opens; choose Web. To add one later, the path is Admin > Data collection and modification > Data streams > Add stream > Web.
- Enter the site URL (
https://www.yourcompany.com) and a clear name for the stream. - Enhanced measurement is on by default. It collects page views, scrolls, outbound clicks, site search, video engagement and file downloads without any code. Leave it on; you can turn off events you don’t need one by one from the gear icon.
- Click Create stream. The Measurement ID, starting with
G-, appears on the screen. You’ll use this ID when installing the tag.
Which basic settings should you configure on day one?
Most of these settings don’t apply retroactively. It’s best to configure them before you put the tag on the site.
Increase data retention to 14 months
Path: Admin > Data collection and modification > Data retention.
The default is 2 months. In standard (free) GA4 properties, the options for user-level and event data are 2 months and 14 months. Set both Event data retention and User data retention to 14 months and save.
This setting affects Explorations and user-level data, not standard reports. But you don’t want to find out it’s stuck at 2 months on the day you want to run a year-over-year comparison. Also, age, gender and interest data is kept for 2 months regardless of your setting.
Define internal traffic
Traffic from your office or agency can seriously distort your data, especially on small sites.
- Open your web stream from Admin > Data collection and modification > Data streams.
- Go to Configure tag settings > Show more > Define internal traffic > Create.
- Name the rule, leave the
traffic_typevalue asinternaland enter your office IP addresses. - Then turn on the predefined Internal Traffic filter under Admin > Data collection and modification > Data filters.
The filter starts in Testing state. In this state, data isn’t deleted, only flagged in reports. Spend a week checking in reports that the right traffic is being flagged, then switch the filter to Active. An active filter permanently excludes data and doesn’t apply retroactively.
List unwanted referrals
If your payment page is on another domain (for example, a payment provider), when the user comes back the session looks like it came from that provider, and the sale is attributed to the wrong channel.
Path: Admin > Data streams > [your web stream] > Configure tag settings > Show more > List unwanted referrals. Add the payment provider’s domain here.
Decide on Google signals
Path: Admin > Data collection and modification > Data collection.
Google signals collects cross-device data and the information needed for Google Ads remarketing from users signed in to their Google accounts. You need to turn it on if you’ll run remarketing in Google Ads with GA4 audiences. Before turning it on, make sure your cookie policy and your privacy notice under KVKK (Turkey’s data protection law) cover it.
Mark key events
What used to be called a “conversion” in GA4 is now called a Key event. Path: Admin > Data display > Events. Mark the star on the row of the event that matters for your business, such as a purchase (purchase), form submission or sign-up. You can also add an event that hasn’t happened yet by name from Admin > Data display > Key events > New key event.
How do you set up channel grouping?
GA4’s default channel group sorts traffic into channels such as Organic Search, Paid Search, Paid Social and Email based on source and medium (source / medium) rules. The default group can’t be edited. If you want your own rules, you create a custom channel group.
Path: Admin > Data display > Channel groups.
- From the menu on the default group’s row, click Copy to create new. Copying Google’s rules instead of starting from scratch reduces the risk of errors.
- Name the group.
- Open the channel you want to change, or add a new one with Add new channel. Rules are written on dimensions such as source, medium and campaign name.
- Arrange the order of the channels with Reorder. GA4 assigns a session to the first matching channel from top to bottom, so the narrowest rule should be at the top.
- Save.
The two custom channels that are most useful in practice:
| Channel | Why it should be separate | Example rule |
|---|---|---|
| AI Assistants | Sources like ChatGPT, Perplexity and Gemini get lost under Referral in the default group | Source contains one of values like chatgpt.com, perplexity.ai, gemini.google.com |
| Affiliate / partners | The medium values your agency uses may not match the default Affiliates rule | Medium exactly matches the value in your own UTM standard |
Custom channel groups also apply to historical data, so when you fix the rules, older reports also show up under the new definition. If you like, you can set the custom group as the Primary channel group to make it the default channel dimension in reports.
How do you install and verify the tag?
Choose an installation method
You add the tag to your site in one of three ways:
| Method | When |
|---|---|
| Google tag (gtag.js) directly in the site code | Simple sites, a small number of events |
| Google Tag Manager (GTM) | Multiple ad and measurement tags, frequently changing events |
| Built-in integration of your e-commerce platform | When the platform asks for the GA4 ID in its own field |
To get the Google tag, the path is Admin > Data streams > [your web stream] > View tag instructions. If you use GTM, you create a tag of type Google Tag in GTM, enter the measurement ID and set the trigger to fire on all pages.
If you use cookie consent, make sure the tag behaves according to the consent state. Under KVKK in Turkey, and also under GDPR if you get traffic from Europe, analytics cookies shouldn’t fire before consent.
Verify the setup in three stages
- With Tag Assistant: Go to tagassistant.google.com, enter your site URL and click Connect. As you browse the site in the window that opens, you should see the GA4 tag and the
page_viewevent firing on the Tag Assistant screen. Check that the measurement ID exactly matches the one in your data stream. - With DebugView: While Tag Assistant is connected, open Admin > Data display > DebugView. Every click and page transition you make on the site shows up here as an event within seconds. Be sure to trigger the event you marked as a key event at least once and see it here.
- With the Realtime report: You should see your own visit on the Reports > Realtime screen within a few minutes.
Standard reports, however, fully populate after 24–48 hours. Don’t try to reinstall the tag because a report is empty on day one; run the three checks above first.
How do you link Search Console?
The link brings organic search queries and landing page search performance into your GA4 reports.
Requirements: At least Editor role on the GA4 property and verified owner status on the Search Console property.
- Go to Admin > Product links > Search Console links.
- Click Link.
- Use Choose accounts to select the Search Console property you manage, then click Confirm.
- Click Next and select the web data stream to link.
- Review the summary and click Submit.
It’s worth knowing the limits: a web data stream can be linked to only one Search Console property, and a Search Console property can be linked to only one web data stream. A link can’t be edited; if you need a change, you delete it and create it again.
Reports may not appear automatically after linking. Find the Search Console collection on the Reports > Library screen and Publish it to add it to the reports menu.
How do you link Google Ads?
Without the link, GA4 can’t properly see Google Ads traffic at the campaign level, and Google Ads can’t use key events and audiences from GA4.
Requirements: Editor role on the GA4 property and Admin access on the Google Ads account.
- Go to Admin > Product links > Google Ads links.
- Click Link.
- Select the account with Choose Google Ads accounts. If you have multiple accounts under a manager account (MCC), linking the manager account covers all of them with a single link.
- Click Next to go to the settings:
- Enable personalized advertising: Publishes GA4 audiences to Google Ads. It should be on if you’ll run remarketing; Google signals also needs to be on.
- Enable auto-tagging: Adds the
gclidparameter to Google Ads clicks. Leave it on; GA4’s ability to see campaign, ad group and keyword data depends on it.
- Complete the link with Submit.
It can take up to 48 hours for Google Ads data to appear in GA4 reports.
After linking, don’t forget two things on the Google Ads side:
- Import GA4 key events into Google Ads as conversions. In Google Ads, you do this under Goals > Conversions, selecting Google Analytics as the source.
- Don’t count the same sale through both the Google Ads tag and the GA4 import. The primary conversion your bid strategy uses should come from a single source.
Checklist
- Are the time zone and currency set for the market you sell in?
- Has data retention been increased to 14 months?
- Has internal traffic been defined, and has the filter been switched to Active after testing?
- Has the payment provider’s domain been added to unwanted referrals?
- Has the Google signals decision been made in line with your cookie policy?
- Are important events like purchases and forms marked as key events?
- Does your custom channel group have separate channels for AI assistants and your own UTM standard?
- Was the tag installed with a single method (gtag or GTM, not both)?
- Does the tag respect cookie consent?
- Has data been seen in Tag Assistant, DebugView and the Realtime report?
- Has Search Console been linked and have its reports been published from the Library?
- Has Google Ads been linked, and is auto-tagging on?
- Has double counting been prevented when importing GA4 key events into Google Ads?
Summary
- The costliest mistakes in a GA4 setup happen on day one: retention, time zone, currency and internal traffic settings don’t apply retroactively.
- The default channel group can’t be edited; create a custom channel group for AI assistants and your own UTM standard.
- Install the tag with a single method and verify it in three stages with Tag Assistant, DebugView and the Realtime report.
- Search Console and Google Ads links are made under Admin > Product links; don’t forget to publish the Search Console reports from the Library.
Sources
- Google Analytics Help: Set up Analytics for a website and/or app
- Google Analytics Help: Data retention
- Google Analytics Help: Filter out internal traffic
- Google Analytics Help: Custom channel groups
- Google Analytics Help: Default channel group
- Google Analytics Help: [GA4] Troubleshoot tag setup on your website
- Google for Developers: Verify and troubleshoot your Google Analytics setup
- Google Analytics Help: Connect Search Console to Google Analytics
- Google Analytics Help: Connect Google Ads to Google Analytics
Related posts

AI Visibility: Share of Voice vs. Sentiment in Apparel
An itibar.ai study measured how ChatGPT, Gemini and Claude talk about 11 apparel brands in Turkey. Why isn't the most mentioned brand the best regarded?

Give Your Zero-Impression Products a Chance in Ads
A step-by-step guide to finding catalog products with zero impressions and getting them seen with a custom label and separate PMax and Meta DPA campaigns.