Google Analytics 4 (GA4) shows how people find and use your website, and which visits turn into enquiries or sales. Out of the box, it collects a lot of data but not the conversions that matter most to your business. This guide covers the setup I do for clients so GA4 answers useful questions from day one.
Create a property and data stream
In Google Analytics, create a GA4 property for your business, set the time zone and currency, then add a web data stream for your website. The data stream gives you a measurement ID, which starts with G-.
Enhanced measurement, enabled by default, tracks page views, scrolls, outbound clicks, site search, video engagement and file downloads automatically. Review these settings and turn off anything you do not need.
Install the tracking code
Install GA4 using Google Tag Manager, a plugin such as Site Kit by Google or your SEO plugin’s integration, or Shopify’s Google and YouTube app. Use one method only to avoid double counting. Tag Manager offers the most flexibility for adding events later.
After installing, open the DebugView or real-time report and visit your site to confirm data arrives.
- 1Property and streamMeasurement ID
- 2Install onceTag Manager or plugin
- 3Consent modeRespect choices
- 4Key eventsForms, calls, purchases
- 5Connect toolsSearch Console, Ads
Set up consent mode
If you have visitors from regions with cookie consent laws, such as the UK and EU, use a consent management platform and Google’s consent mode. Consent mode adjusts how Google tags behave based on visitors’ choices and allows modelling of missing data.
Make sure analytics does not set cookies before consent where required. See GDPR and cookie consent.
Define your key events
Key events, previously called conversions, are the actions that matter: contact form submissions, quote requests, bookings, phone number clicks, email clicks, newsletter signups and purchases. Decide which ones represent real business value.
Mark only important actions as key events. Too many key events make reports confusing and dilute the meaning of conversions.
Track form submissions
The most reliable way to track forms is to send a custom event when the form is successfully submitted, or redirect to a thank-you page and track that page view as a key event. Many form plugins include GA4 integration that sends events automatically.
Avoid tracking button clicks as submissions, since clicks do not guarantee the form was completed. Test each form and check that events appear in DebugView. See WordPress contact form setup.
Track calls and email clicks
For businesses that receive many calls, track clicks on phone number links, which use tel: links, and email links. These clicks indicate intent, especially on mobile. Tag Manager can fire an event when these links are clicked.
For more accurate call tracking, including calls from people who type the number, use a call tracking service with dynamic numbers.
E-commerce tracking
For online stores, set up e-commerce events: view item, add to cart, begin checkout and purchase, with product and revenue data. Shopify’s Google app and WooCommerce integrations handle this automatically.
Check that purchase revenue in GA4 is close to your store’s sales. Some difference is normal due to consent and ad blockers. See Shopify analytics reports.
Connect Search Console and Google Ads
Link GA4 with Search Console to see organic search queries and landing page performance in Analytics. Link Google Ads to import key events for bidding and see ad performance alongside other channels.
These links make GA4 much more useful for understanding where valuable visitors come from.
Useful reports
The Traffic acquisition report shows which channels bring visitors and key events. The Pages and screens report shows popular content. The Landing page report shows where visits start and which pages lead to conversions.
Explorations let you build custom reports such as funnels, paths and segment comparisons. Start with the standard reports and add explorations as questions arise.
UTM parameters
Add UTM parameters to links in emails, social posts, ads and QR codes so GA4 attributes traffic correctly. Without them, much traffic appears as direct or referral. Use consistent naming for source, medium and campaign.
Google’s Campaign URL Builder helps create tagged links. Keep a simple spreadsheet of your naming conventions.
Data retention and filters
In Admin, set data retention to the longest available period for event data, so explorations can look further back. Add internal traffic filters to exclude visits from your office or team, and filter out developer traffic.
Check referral exclusions for payment gateways so purchases are attributed to the original source rather than the payment provider.
Reporting for decision-makers
Most business owners do not need dozens of GA4 reports. Build a simple monthly view showing sessions by channel, key events by channel, top landing pages and conversion rate. Looker Studio, Google’s free reporting tool, can connect to GA4 and Search Console to create a one-page dashboard.
Add short notes each month explaining changes, such as a campaign, a website update or a seasonal pattern. Numbers with context lead to better decisions than raw charts. Review the dashboard with whoever manages marketing, and agree one or two actions for the following month.
Getting help
A well-configured GA4 property shows which marketing efforts bring enquiries and sales. I set up analytics and key events as part of every website I build through my WordPress development service and in my SEO services.
For measuring SEO specifically, see how to measure SEO results.
Key takeaways
- Install GA4 with one method only to avoid double counting.
- Track the actions that matter as key events: forms, calls and purchases.
- Use consent mode where cookie consent laws apply.
- Tag campaign links with UTM parameters for accurate attribution.
Frequently asked questions
What happened to Universal Analytics?
Google replaced it with GA4. Universal Analytics stopped processing data in 2023.
What is a key event in GA4?
An important action you mark for reporting, previously called a conversion.
Why does GA4 show fewer visits than my server logs?
Consent choices, ad blockers and bots affect counts. GA4 shows tracked sessions.
Should I use Google Tag Manager?
It is recommended for flexibility, especially for custom events.
How do I track form submissions?
Send an event on successful submission or track a thank-you page view as a key event.
Can I use GA4 on Shopify?
Yes, through the Google and YouTube app, which sends e-commerce events automatically.
