For beginners in website and ecommerce operations · Updated October 14, 2026
Setting up GA4 involves two tasks: creating a destination for data in Google Analytics, then configuring your website to send visit data to it. This guide follows the actual setup sequence. Basic installation is complete when your test visits appear in Realtime reports. You will then use Google’s official demo account to practice reading traffic, page, event, and ecommerce reports.
Before you begin
- A Google Account that you or your company will manage long term, and the URL of a live, accessible website
- Access to your website’s administration area or permission to deploy code. If a developer will install the tag, complete account creation first and provide the correct Measurement ID and installation method
- Your website name, reporting time zone, and reporting currency. Do not simply copy the default values shown in the screenshots
- Check whether the website already uses GA4, GTM, or a related plugin to avoid duplicate installation. Creating a property in an existing Analytics account requires the appropriate editing permissions
Understand the three levels first
| Level | Purpose | Example in this guide |
|---|---|---|
| Account | Manages a company’s or brand’s Analytics assets | Example Store |
| Property | Holds website or app analytics data for a business | Example Store – GA4 |
| Data stream | Receives data sent by a website or app | Example Store Web |
About the screenshots: This guide retains English-language interface screenshots and explains the corresponding actions in the text. The creation wizard and installation screens are actual interface captures; Google’s official examples and demo account screenshots are identified separately. Example names, URLs, IDs, and numbers are illustrative and must not be copied directly into your website setup. Interface language and phased updates may cause button names or locations to differ slightly.
1 Create a Google Analytics account
- Open analytics.google.com and sign in to your Google Account. If this is your first time using Analytics, click “Start measuring.”
- If you are already in Analytics, click “Admin” in the lower-left corner, then “Create → Account.” If your brand already has a suitable account, you can create a property within that account instead.

- Enter an account name, such as your company or brand name. Read the account data-sharing settings, select the options that meet your needs, and click “Next.” You do not have to enable every sharing option to complete a basic installation. [1]

2 Create a GA4 property
On the “Create a property” page, enter the property name, reporting time zone, and currency, then click “Next.” The reporting time zone determines the date to which daily data is assigned, so it should match the basis you use for your business reports.

| Field | Recommended approach |
|---|---|
| Property name | Use a clear website or business name, such as Example Store – GA4, so you can distinguish the live site from test projects later |
| Reporting time zone | Choose the time zone used in your business reports. If you report in Beijing time, select the corresponding China time zone; if your cross-border business reconciles in another time zone, use that consistently |
| Currency | Choose the main currency used in your business reports, such as CNY or USD. Check that it aligns with subsequent ecommerce events and financial reconciliation |
If the “Create property” button is unavailable, first confirm that you have selected the correct account and ask its administrator to check your permissions. Do not repeatedly create properties for the same functioning website to troubleshoot missing data. [1]
3 Enter business details and objectives
- Under “Business details,” select your industry category and business size. For an online store, choose the industry that best reflects your business and enter the actual staff size.
- Click “Next” and select the business objectives most relevant to you. An ecommerce business might choose “Drive sales”; to understand where visits come from, choose “Understand web and/or app traffic.” The current interface recommends prioritizing no more than two of the most relevant objectives.

- Review your selections, then click “Create” or “Create an account with a property.” When creating a new account, read the displayed terms of service and data-processing terms, and have the account owner decide whether to accept them.
Choosing “Drive sales” affects how default reports are organized, but it does not automatically implement purchase events or revenue tracking. After the basic installation, you must verify ecommerce events separately. [1][9]
4 Create a web data stream and copy the Measurement ID
- Under “Data collection,” select “Web.” If you have left the wizard, open “Admin → Data collection and modification → Data streams,” then choose “Add stream → Web.”

- Enter the website URL and stream name. When the protocol is set to https://, enter a domain such as example.com in the URL field to the right without repeating the protocol. Use the actual domain of your live website.
- You can name the stream “Brand Name Web.” Normally, leave “Enhanced measurement” enabled, then click “Create stream.” If you have specific privacy or data-collection requirements, first confirm which events should be enabled.
- Open “Web stream details,” locate “Measurement ID,” and copy it. It begins with G-, for example
G-XXXXXXXXXX.

Keep the IDs distinct: G- identifies a GA4 web stream’s Measurement ID; GTM- identifies a GTM container; a purely numeric ID is usually an account, property, or stream identifier. Enter each ID in its corresponding field during installation. [1][2]
5 Choose an installation method and connect your website
In the stream details, find “Google tag → View tag instructions.” A new setup flow may open “Installation instructions” directly. Choose one installation path that matches your website.

| Your website setup | Recommended method | Where to look |
|---|---|---|
| Custom website with access to site-wide page code | Add the Google tag manually | “Manual installation on a custom website” below |
| WordPress or Shopify | Official plugin or platform integration | “Install on WordPress and Shopify” |
| Website already uses GTM to manage tags | Configure the existing GTM container | “Install through Google Tag Manager” |
Manual installation on a custom website

- Switch to “Install manually” and copy the complete Google tag code generated for that stream, including the opening comment and all script tags. Do not paste only the G- ID into the page body.
- Place the code in the website’s global header template, immediately after the opening
<head>tag, so it loads on every page you need to measure. If developers maintain the site, ask them to deploy it through their normal release process. - Save and publish the website. If it uses page caching or a CDN, confirm that the version visitors receive has updated. Then follow “Verify your first visit data.”
Avoid duplication: If a platform plugin, theme, or GTM already sends basic visit events to the same GA4 stream, do not add a second copy of the basic tag. Duplicate collection can inflate views and event counts. [3]
6 Install on WordPress and Shopify
These platforms can usually connect through official integrations. First establish what existing plugins, theme code, or custom pixels do, then decide which integration will be responsible for sending data to GA4.
WordPress: use Site Kit by Google
- Find Google’s official Site Kit by Google plugin in the WordPress plugin directory. Follow its setup wizard to install and activate it, then connect a Google Account with access to the appropriate GA4 property. Review the requested permissions before authorizing access.
- If Site Kit is already configured, go to “Site Kit → Settings → Connect More Services → Analytics → Set up Analytics.” Translated menu labels may vary with the plugin’s localization.
- Select the Analytics account, property, and web stream created earlier, check their names, and click “Configure Analytics.”
- Confirm that Site Kit will place the Analytics tag. If it detects an existing tag, identify the previous installation method first to avoid inserting the tag twice.
Testing note: Site Kit excludes visits from logged-in WordPress users by default. Log out of WordPress or open your live website in an incognito window, then check GA4 Realtime reports. Site Kit’s own dashboard usually takes a day or two to display data. [5]
Shopify: use the Google & YouTube app
- In Shopify admin, install or open the Google & YouTube app and connect a Google Account with access to the relevant GA4 property.
- On the app’s Overview page, find “Just want to set up Google Analytics 4,” click “Get started,” select the correct property, then click “Connect” and “Confirm.”
- Check the connected web stream and inspect theme code, older apps, and custom pixels for duplicate event collection. You do not need to connect Merchant Center solely to set up GA4.
- Test browsing and product interactions on your accessible live store. If the store has restricted access, first check whether those restrictions affect testing.
Ecommerce note: The Google & YouTube integration can send ecommerce events such as purchases, but you must still verify orders, amounts, currencies, and duplicate collection. A basic Google tag installation is not the same as complete ecommerce tracking. [6][7]
7 Install through Google Tag Manager
This approach suits sites already using GTM or sites whose tags are centrally managed by a technical team. A GTM web container must already be correctly installed on the website, and you need editing and publishing permissions. Creating a GTM account or tag alone does not automatically make your website send data.
Currently recommended path
- Open tagmanager.google.com, select the web container associated with your website, and enter its workspace.
- Click “Tags → New,” then open “Tag Configuration → Google Analytics → Google Analytics.” Google’s current documentation calls this path Google Analytics Destination.
- In “Tag ID,” enter the G- Measurement ID for the corresponding web stream. Give the tag an identifiable name, such as “GA4 basic measurement.”
- Under “Triggering,” select an Initialization trigger and configure it for all initialization events or all pages. Depending on the version, the label may be “Initialization – All Initialization Events” or “Initialization – All Pages.”
- Save, then click “Preview” in the upper-right corner. Enter your live website URL in Tag Assistant and connect. Visit several pages, confirm that the relevant tag fires as expected, and check whether GA4 receives events.
- After confirming the preview works, click “Submit,” choose “Publish and Create Version,” write a clear version description, and click “Publish.” Visit the website again after publication and recheck GA4 Realtime data.
If your interface still shows Google tag
You can follow the official alternative: “Tags → New → Tag Configuration → Google Tag.” Enter the Tag ID, apply the same initialization trigger conditions, then save, preview, and publish. There is no need to force a change to your existing container configuration just to match this guide.
Three checks that are easy to miss
- Use an Initialization trigger; do not accidentally choose Consent Initialization, which initializes consent states
- If your website uses a cookie consent mechanism, tags must operate according to the visitor’s actual consent state. A site-wide trigger does not mean you can disregard consent choices
- Confirm that the live GTM container has updated to the version you just published. Clicking Save or merely creating a version is not a substitute for publishing
Older tutorials often refer to “GA4 Configuration.” Use the tag type available in your current container and the latest official documentation instead of searching for an obsolete label in a new interface. [4][12]
8 Verify your first visit data
- Open your published website and respond to its cookie consent prompt according to your actual preferences. Browse the home page and one or two other pages, pausing briefly. WordPress Site Kit users should test while logged out or in an incognito window.
- Return to GA4, confirm that the correct property is selected, and open “Reports → Realtime overview.”

- In Realtime overview, inspect the active-user and event cards for visit events such as
page_view. If necessary, open “Realtime pages” and compare the page paths with those you just visited.

Figure 10 shows real-time data from the official demo account to help explain the cards. To verify your own website, switch back to your own property. Events in the demo account do not mean your website has been installed correctly.
Acceptance criterion: You can match your recent page visits to data received by the selected property. Do not assume that “one active user” must be your test visit. On a website with existing traffic, use page paths or Tag Assistant debugging to help identify your test.
Timing expectations: After initial setup, collection may take about 30 minutes to begin; many standard reports and explorations require 24–48 hours of processing. Check the connection in Realtime first, then wait for the regular reports. To inspect event parameters, a developer can enable debug mode so you can use DebugView. [8][11]
9 Troubleshoot missing data in order
| What you see | What to check first |
|---|---|
| No real-time visits at all | Confirm the selected property and stream are correct, and that the installed G- ID matches that web stream |
| It works only in the editor | Check the published URL and confirm your changes are live, not merely saved as a draft or preview |
| Events appear in GTM preview but not on the live site | Confirm that both Submit and Publish are complete, and that the website loads the correct container and published version |
| WordPress administrator visits do not appear | Site Kit excludes logged-in users by default; log out or retest in an incognito window |
| Data is missing for some browsers or visitors | Check ad blocking, browser privacy restrictions, and consent states. Do not bypass visitors’ choices just to make data appear |
| Visits or event counts are unusually high | Check for duplicate installation or repeated page_view collection across the theme, plugins, GTM, and custom pixels |
Visits appear, but purchase revenue does not | Basic installation is working; continue by checking ecommerce events such as purchase and parameters including transaction_id, value, and currency |
Basic installation checklist
- The account and property have the correct ownership, and their names clearly identify the website
- The reporting time zone and currency have been checked against business reporting requirements
- The live website is connected to the correct stream, with no duplicate installation paths
- Code or platform settings have been published, and identifiable test visits appear in Realtime reports
- If ecommerce tracking is needed,
purchaseevents and amounts are verified separately
Privacy checks before going live
Do not include personally identifiable information such as email addresses or phone numbers in GA4 event parameters or page URLs. Implement privacy notices and consent mechanisms appropriate to the regions and business involved. Consent Mode communicates consent choices to Google; it does not provide a cookie banner or replace your own compliance assessment. [8][9][10]
10 Open the official demo account and understand the report overview
The earlier steps connect your own website. Next, use the Google Merchandise Store demo property in Google’s official demo account to practice finding answers in reports that already contain data. Demo account data is obfuscated and does not represent your website’s performance.
- Open Google’s official demo account help page [11] and click the “Google Merchandise Store (web data)” link. After signing in, confirm that you are using this demo property. This link adds the demo account to your Analytics account list.
- Go to “Reports → Reports snapshot.” Check the date range in the upper-right corner before interpreting user counts, event counts, and other metrics. The following screenshots use the date ranges shown in their captions; do not directly add or compare totals from different date ranges.

Reading the report: At the top, Active users counts active users, while Event count counts all recorded events. One person can trigger multiple events, so these figures measure different things. Use Top pages/screens below to identify the most visited pages, then open the detailed report.
The demo account grants Viewer access, making it useful for viewing and filtering reports. Creating properties, installing tags, and configuring key events must still be done in your own property. The demo account does not support exports from standard reports or explorations, and its data cannot be accessed through the Analytics Data API. [11]
11 Understand visitor sources with Traffic acquisition
Path: “Reports → Life cycle → Acquisition → Traffic acquisition.” Names may differ across localized report collections. Look for Traffic acquisition and source dimensions prefixed with Session.
- Set the date range you want to analyze, scroll down to the table, and click the Sessions column heading to sort by session count.
- Start with the session volume from major channels, then use engaged sessions and engagement rate to assess whether those visits led to further activity. To analyze
purchaseperformance, also examine the relevant key events and revenue metrics.

How to read this screenshot
Direct and Organic Search are major session sources in this screenshot. Sessions counts visits, Engaged sessions counts engaged visits, and Engagement rate is the proportion of engaged sessions. A high session count does not automatically mean the strongest sales performance; assess it against your actual business objectives.
User acquisition versus Traffic acquisition
| Report | Question it answers | Common dimension prefix |
|---|---|---|
| User acquisition | Where did these users first discover you? | First user |
| Traffic acquisition | Where did each visit begin? | Session |
For example, someone may first visit through organic search and return later through email. Their first source remains organic search, but the sources of the two sessions can differ. That is why figures for identically named channels need not match across these two reports. [13]
12 Review page performance and event records
Pages and screens
Path: “Reports → Engagement → Pages and screens.” Start with Views, then consider Active users and engagement time alongside it.

Views includes repeat page views by the same person. Active users counts distinct users who meet the active-user criteria. Average engagement time is calculated on the relevant user or session basis and primarily reflects time when the page is in focus, not simply how long it remains open. [14]
Events and key events
Path: “Reports → Engagement → Events.” Event count is the number of recorded occurrences, while Total users is the number of users who triggered an event. Key events are events designated as important business actions, which may include purchases or qualified inquiries.

page_view means a page was viewed, session_start indicates the start of a session, and first_visit indicates a first visit. purchase is a purchase event that the website or integration must send correctly. Key events are also affected by their counting method; do not treat every recorded event as a completed sale. [15][17]
13 Review product views, additions to cart, and purchases
Path: “Reports → Monetization → Ecommerce purchases.” Select a dimension such as Item name to examine product views, additions to cart, quantities purchased, and item revenue for each product.

| Metric | How to interpret it |
|---|---|
| Items viewed | The number of items viewed, useful for assessing product interest |
| Items added to cart | The number of items added to shopping carts |
| Items purchased | The quantity of items purchased, not the number of orders |
| Item revenue | Revenue from items, excluding tax and shipping. Item refunds are handled according to the data reported; this is not profit |
An example to prevent misreading
An order containing 3 units of the same product normally corresponds to 1 purchase event and 3 Items purchased. The screenshot shows 187 items purchased for Google Marine Layer 1998 Pullover; that does not mean there were 187 orders.
What to check on your own website
- Visits appear but the product table is empty: confirm that your ecommerce integration or custom tracking sends events such as
view_item,add_to_cart, andpurchase, along with item parameters - Purchases appear but amounts do not: check the
purchaseparameters value, currency, and items, as well as duplicate or missing event collection - When reconciling data, check
transaction_id, dates, currency, tax, shipping, and refund treatment. Do not expect GA4 and your store backend to match perfectly by default
The completion criterion for this guide remains the same: your own website sends identifiable test visits, and you know which reports to use for subsequent data. The demo account is for practicing report interpretation; its working data cannot replace verification of your own website’s installation. [16][9]

