How to set up Google Analytics 4 (GA4), from install to Google Ads
Once you run ads, you need to know where customers come from, what they look at on your website and whether they enquire. Google Analytics 4 (GA4) is Google's free website analytics tool. It shows your traffic sources, top pages and what visitors do, and used alongside your ads it tells you whether the spend is worth it.
What GA4 shows you
- Where traffic comes from: Google Search, Facebook, TikTok, people typing your address directly, and more.
- Which pages people view, how long they stay and where they leave.
- Important actions such as form submissions, WhatsApp clicks, phone taps or purchases. GA4 calls these key events (previously "conversions").
- Visitors' rough location, device and language.
Step 1: create a property and data stream
- Sign in at analytics.google.com and create an account and a property. Pick the Malaysia time zone and MYR currency if you sell in Malaysia.
- Add a web data stream and enter your website address.
- You'll get a Measurement ID starting with G-, which you need for the install.
- Keep Enhanced measurement on in the data stream. It records page views, scrolls, outbound clicks, site search and file downloads automatically.
Step 2: install the tag on your website
- The Google tag directly: paste the code GA4 gives you into the <head> of every page.
- Google Tag Manager: add a Google tag with your Measurement ID. Later you can manage the Meta pixel, TikTok Pixel and other tags in the same place.
- Your website platform: WordPress, Shopify, Wix and others usually have a built-in setting or plugin where you just enter the Measurement ID.
- Use only one method. Installing two often records every page view twice and inflates your numbers.
Step 3: set up key events
- Decide what counts as an enquiry for your business: a form submission, a WhatsApp click, a call tap or a completed payment.
- If those actions aren't events yet, create them with "Create event" in GA4 or with click triggers in Tag Manager.
- In Admin → Events, mark the right events as key events.
- Don't mark everyday events like page views or scrolls as key events, or your reports won't show how many real enquiries you get.
Step 4: link Google Ads
- In GA4, go to Admin → Product links and link your Google Ads account. You need admin access on both sides.
- Once linked, you can import GA4 key events into Google Ads as conversions and see ad traffic in GA4.
- Keep Google Ads auto-tagging on so GA4 can identify visitors from your Google ads accurately.
- For other ways to track results, see Google Ads conversion tracking.
How to check it works
- Open your website, then look at the GA4 Realtime report. You should see one active user.
- Submit a test form or tap WhatsApp once, and check Realtime or DebugView for the event.
- Standard reports usually take a few hours to a day to fill in, so don't worry if they're empty right after installing.
Settings people often miss
- Data retention: by default detailed data is kept for only 2 months. Change it to 14 months under Admin → Data collection and modification → Data retention.
- Not filtering out your own team's visits, so test traffic mixes into reports.
- Facebook and TikTok ad links without UTM parameters, so GA4 can't tell which ad brought the customer.
GA4 shows what happens on your website; the ad platforms' own tracking matters too, so see the Meta pixel and TikTok Pixel guides. To read the numbers, see ad metrics explained. Prefer a specialist to set up tracking and run your ads? See our Google Ads management, or contact us.
Frequently asked questions
Is Google Analytics 4 free?
Yes, standard GA4 is free. The paid Analytics 360 is for very high-traffic enterprises; small and medium businesses usually don't need it.
What is the difference between key events and conversions in GA4?
Key events are the events you mark as important in GA4; they used to be called conversions. When imported into Google Ads, they count as conversions there.
Why is GA4 not showing data?
Check the Realtime report first. If data appears there, standard reports usually follow within a few hours to a day. If Realtime is empty too, check the tag is on every page and the Measurement ID is correct.
Do I need GA4 if I already have the Meta pixel?
It's best to have both. The Meta pixel only records data related to Facebook and Instagram ads; GA4 shows traffic from every source so you can compare channels.