A working GA4 setup takes five steps: create a property and web data stream at analytics.google.com, install the Google tag directly or through Google Tag Manager, connect it to a consent banner that sends consent mode v2 signals, change the default property settings (retention, internal traffic, key events, product links), and verify every event in DebugView before anyone reads a report.
Key points
- Standard GA4 properties keep event-level data for 2 or 14 months. Set 14 months on day one, because the change only applies going forward.
- In Norway and the rest of the EEA, analytics cookies need prior consent. Since 1 January 2025, ekomloven § 3-15 requires that consent to meet the GDPR standard.
- Consent mode v2 adds two signals, ad_user_data and ad_personalization. Without them, Google Ads remarketing and conversion data from EEA users are restricted.
- An active internal-traffic filter deletes matching data permanently. Run it in Testing state first.
- Mark only the five to ten actions that reflect business value as key events. Everything else stays an ordinary event.
What changed when GA4 replaced Universal Analytics?
GA4 records everything as an event with parameters, while Universal Analytics grouped hits into sessions with fixed hit types such as pageview and transaction. Google stopped processing data in standard Universal Analytics properties on 1 July 2023 and removed access to the old interface and API from the week of 1 July 2024, so GA4 is the only version of Google Analytics left.
The practical differences show up the first week you use it. There are no views, so filtering happens with data filters at property level. Goals became conversions and, in 2024, Google renamed them key events so that the word "conversion" refers to Google Ads only. Bounce rate came back as the share of sessions that were not engaged, the mirror image of engagement rate. If you are still building your measurement plan, start with our guide to digital analytics and data-driven marketing and come back here for the setup.
How should you structure the GA4 account, property and data stream?
Use one account per legal company, one property per website or product you report on as a unit, and one data stream per platform (web, iOS, Android). Most small and mid-sized businesses end up with exactly one account, one property and one web stream.
Create the account with a Google account the business controls, such as analytics@yourcompany.com, never an employee's private Gmail. Add the agency or freelancer as a user on the property with the lowest role that does the job, and remove them when the engagement ends.
| Setting | Where | What to choose | Why |
|---|---|---|---|
| Reporting time zone | Admin → Property details | Your main market, e.g. (GMT+01:00) Oslo | Day boundaries in every report follow it. A change does not rewrite past days. |
| Currency | Admin → Property details | The currency you invoice in (for example EUR, USD or NOK) | Revenue sent in other currencies is converted to this one. |
| Industry category | Admin → Property details | Closest match | Only used for benchmarking. Low stakes. |
| Web stream URL | Admin → Data collection and modification → Data streams | The canonical domain, https | One stream can cover subdomains. Add other domains through cross-domain settings, not new streams. |
| User roles | Admin → Property access management | Administrator for the owner, Editor for whoever configures, Viewer or Analyst for readers | Editors can create filters that delete data. Keep that group small. |
Which GA4 installation method should you use?
Install GA4 through Google Tag Manager if more than one tag will ever run on the site or if marketers need to add events without a developer. Use the Google tag (gtag.js) in the page code for small sites that will only ever run GA4, and treat CMS plugins as a shortcut that works until you need a custom event.
| Method | Good for | Trade-off |
|---|---|---|
| Google tag (gtag.js) in the site template | Simple brochure sites, developers who prefer events in code | Every new event is a code release. Consent logic has to be wired by hand. |
| Google Tag Manager (web container) | Most business sites, sites with Google Ads and Meta tags | Another tool to govern. Needs a naming convention and version notes. |
| CMS or e-commerce integration (Shopify, WordPress plugins) | Fast start for standard e-commerce events | Limited control over parameters, and some send duplicate purchase events if combined with GTM. |
| Server-side Tag Manager | High-traffic stores, strict data minimisation, first-party data collection | Hosting cost and engineering time. Consent rules still apply. |
Whatever you pick, use one method only. A gtag snippet left in the theme plus a GTM tag doubles every page view, which shows up as an engagement rate that looks too good and sessions with two page_view events in the same second. Our Google Tag Manager guide covers container structure and naming, and the server-side tracking guide covers when the extra infrastructure pays for itself.
How do you set up consent mode v2 for GA4 in Norway and the EU?
Consent mode v2 is a set of four signals that tell Google tags what the visitor has agreed to: analytics_storage, ad_storage, ad_user_data and ad_personalization. You set all four to denied by default on every page, before any config or event command, and update them when the visitor makes a choice in your consent banner.
What does Norwegian law require?
Ekomloven § 3-15, in force since 1 January 2025, forbids storing or reading information on a user's device without informing the user and obtaining consent, and it states that the consent must meet the GDPR requirements. The only exceptions are technical storage needed to transmit communication and storage strictly necessary for a service the user has explicitly asked for. Analytics cookies fall outside both exceptions, so GA4 cookies wait for an active yes. Pre-ticked boxes and "by continuing to browse you accept" banners do not count as consent under the GDPR standard.
Data transfers are a separate question. On 26 July 2023 Datatilsynet reprimanded Telenor ASA for transferring personal data to the United States through Google Analytics without a valid basis under Chapter V of the GDPR. Two weeks earlier, on 10 July 2023, the European Commission had adopted the EU-US Data Privacy Framework, which allows transfers to certified US companies. Check the vendor's certification on dataprivacyframework.gov, and make sure your privacy policy and records of processing name Google as a processor and describe the transfer.
Basic or advanced consent mode?
In basic consent mode, Google tags do not load until the visitor consents, so nothing is sent for visitors who decline. In advanced consent mode, tags load before the banner and send cookieless pings when consent is denied, which Google uses for behavioural and conversion modelling. Advanced mode gives you modelled numbers for the people who say no. Basic mode is the conservative choice if your legal assessment is that even cookieless pings need consent. Make the choice with whoever owns privacy, write it down, and configure the consent management platform to match.
Watch out
If ad_user_data is denied or never set, Google Ads receives limited click-ID data from GA4, and bidding on GA4-based conversions suffers. If ad_personalization is denied, remarketing audiences get no data from that visitor. A banner that only toggles analytics_storage and ad_storage is a v1 setup and costs you both.
Which settings belong in a GA4 setup on day one?
The default property settings favour a quick start over clean data, so change these before the property collects anything you care about.
- Raise data retention to 14 months. Admin → Data collection and modification → Data retention. The setting covers explorations and funnel reports; standard reports keep aggregated data regardless. The change is not retroactive.
- Define internal traffic. Admin → Data streams → your web stream → Configure tag settings → Show more → Define internal traffic. Add your office IP range in CIDR notation and keep the traffic_type value "internal".
- Create the internal-traffic filter in Testing state. Admin → Data collection and modification → Data filters → Create filter → Internal traffic. Leave it in Testing for a week, check the "Test data filter name" dimension, then switch to Active. Active exclude filters delete data permanently and can take 24 to 36 hours to apply.
- List unwanted referrals. In the same Configure tag settings menu, add payment providers and booking tools that send people back to your site (Vipps, Klarna, Stripe checkout, your booking system) so a completed purchase is not credited to them.
- Configure cross-domain measurement if the journey crosses domains, for example from yourcompany.com to a separate shop domain. Configure tag settings → Configure your domains.
- Review enhanced measurement. Data streams → your stream → Enhanced measurement. Keep page views, scrolls, outbound clicks, site search and file downloads. Turn off form interactions if you will track form submits yourself, because the automatic form_submit fires on forms you do not care about and misses forms that submit by JavaScript.
- Decide on Google signals and granular location and device data. Admin → Data collection and modification → Data collection. Both can be switched off per region. Turning off granular data stops city, device model and similar fields and reduces modelled conversions for that region.
- Link Search Console and Google Ads. Admin → Product links. You need Editor on the GA4 property and Admin on the Ads account. Enable auto-tagging in the link flow so the gclid reaches your landing pages.
- Link BigQuery if you want raw, unsampled event data you own. Standard properties export up to 1 million events per day in the daily export.
How do you set up key events in GA4?
A key event is any event you mark as business-critical in Admin → Data display → Key events. Start by sending the event (generate_lead, purchase, sign_up, book_appointment), confirm it arrives in DebugView, then toggle it as a key event. To bid on it in Google Ads, create a Google Ads conversion from the key event through the linked account.
Use Google's recommended event names where one fits, because reports and Google Ads understand them without extra mapping: generate_lead for form leads, purchase with transaction_id, value and currency for orders, sign_up for account creation. Add parameters that make the event useful later, such as form_name or lead_type. Each parameter you want in reports needs a custom dimension under Admin → Data display → Custom definitions.
Keep the list short. A property where scroll, file_download and every button click are key events has a key event rate that means nothing, and Google Ads optimises towards cheap actions. Our conversion tracking guide goes through which actions deserve the label and how to value them, and the UTM parameter guide covers tagging campaigns so key events are credited to the right source.
Example
A fictional physiotherapy clinic in Bergen with one website and online booking through a third-party system sets up GA4 like this. One property, one web stream, Oslo time zone, NOK. GTM installs the Google tag after a consent banner that sends all four consent mode v2 signals. Key events: generate_lead (contact form, form_name parameter), book_appointment (fired on the booking system's confirmation page through cross-domain measurement), and click_to_call. The booking system's domain is added under Configure your domains, Vipps goes into unwanted referrals, and the clinic's IP range is excluded with a filter that ran in Testing for seven days. Retention is 14 months. With 2 000 sessions a month, the clinic sees roughly how many bookings come from Google Ads, organic search and Instagram, minus the visitors who declined cookies.
How do you check that GA4 collects the right data?
Verify in three places before you share a report: DebugView for individual events, the Realtime report for live traffic, and a comparison against a system of record such as your CRM or order system after a week.
Open DebugView under Admin → Data display → DebugView and start Tag Assistant or GTM preview mode on your own browser, which adds debug mode to the session. Walk through each key journey and check that the event name, parameters and values are what you planned. Two things hide events from DebugView: browser privacy extensions and consent mode with analytics_storage denied, so accept cookies in the banner while testing.
After a week, compare GA4 purchase or lead counts with the real numbers. A gap of a few tens of percent is expected in the EEA because of declined consent and blocked scripts. A GA4 number higher than reality usually means double tagging or a purchase event that fires on every reload of the thank-you page; fix it by deduplicating on transaction_id.
Which GA4 limits catch people out?
Most GA4 surprises come from limits that only appear once data is flowing, so check them while the setup is still cheap to change.
| Limit (standard property) | Value | What it means in practice |
|---|---|---|
| Event name length | 40 characters | Longer key event names are not reported as key events. |
| Parameters per event | 25 | Plan parameters per event instead of sending everything. |
| Event-scoped custom dimensions | 50 | Register only the parameters someone will report on. |
| User-scoped custom dimensions | 25 | Same as user properties. Never store names or e-mails. |
| Item-scoped custom dimensions | 10 | Relevant for e-commerce item attributes. |
| Custom metrics | 50 | Rarely the bottleneck for small sites. |
| Data filters | 10 per property | Enough for internal and developer traffic. |
| Event data retention | 2 or 14 months | Longer options (26, 38, 50 months) are for Analytics 360 only. |
| BigQuery daily export | 1 million events per day | Streaming export has no volume limit but costs per gigabyte. |
Watch out
Google's policies forbid sending personally identifiable information to Analytics, and its help centre names URLs and page titles as the usual leak. Forms that put e-mail addresses or phone numbers in the query string end up in page_location. Turn on data redaction for the web stream (it removes e-mail addresses on a best-effort basis and strips query parameters you list) and fix the form so the data never reaches the URL.
When is GA4 the wrong tool?
GA4 is a poor fit when you cannot accept Google as a processor, when you need exact counts rather than consented and modelled data, or when your main question is about in-product behaviour in a logged-in application. In those cases a privacy-focused analytics tool hosted in the EEA, your own server logs, or a product analytics tool may answer the question better. For most marketing sites that run Google Ads, GA4 stays the default because the Google Ads link, audiences and key event import are hard to replace.
Pair it with Search Console for search queries, which GA4 cannot see; the Google Search Console guide explains that setup. If you want the tracking configured as part of a paid search engagement, our PPC service includes GA4 and conversion setup. Your first action today is the retention setting under Admin → Data collection and modification → Data retention.
Frequently asked questions
Is Google Analytics 4 legal to use in Norway?
Yes, with conditions. Since the EU-US Data Privacy Framework took effect on 10 July 2023, transfers to certified US companies such as Google have a legal basis. You still need GDPR-standard consent for analytics cookies under ekomloven § 3-15, a privacy policy that names Google, and a data processing agreement with Google.
How long does GA4 keep data?
Standard properties let you keep event-level and user-level data for 2 or 14 months. The setting affects explorations and funnel reports. Standard reports keep aggregated data beyond that period.
Should I install GA4 with Google Tag Manager or gtag.js?
Use Google Tag Manager if the site runs, or will run, other marketing tags or if non-developers need to add events. Use gtag.js only for small sites where GA4 is the only tag and a developer handles every change.
What is the difference between a key event and a conversion in GA4?
A key event is an event you mark as important in GA4. A conversion is a Google Ads concept that you can create from a key event in a linked Ads account and use for bidding.
Why are my GA4 numbers lower than my CRM or shop numbers?
Visitors who decline cookies, ad blockers and browsers that limit scripts all remove data. In advanced consent mode GA4 models some of the gap, in basic mode it does not. Compare trends over time rather than expecting the totals to match.
Sources
- Google Analytics Help: Universal Analytics has been replaced by Google Analytics 4
- Google Analytics Help: Data retention
- Google for Developers: Set up consent mode on websites
- Google Analytics Help: About consent mode (basic and advanced)
- Google Analytics Help: Consent mode for EEA users (ad_user_data and ad_personalization)
- Google Analytics Help: Filter out internal traffic
- Google Analytics Help: Enhanced event measurement
- Google Analytics Help: About key events
- Google Analytics Help: Link Google Ads and Analytics
- Google Analytics Help: Monitor events in DebugView
- Google Analytics Help: Event collection limits
- Google Analytics Help: Best practices to avoid sending PII
- Google Analytics Help: Configuration limits
- Google Analytics Help: BigQuery Export
- Google Analytics Help: EU-focused data and privacy
- Lovdata: Lov om elektronisk kommunikasjon (ekomloven), § 3-15
- Datatilsynet: Decision – Google Analytics – Telenor ASA, 26 July 2023 (via EDPB)
- European Commission: EU-US data transfers and the Data Privacy Framework



