Inside Ads Manager, everything looks healthy: clicks are rolling in, cost-per-click is cheap, and "add to cart" numbers keep stacking up. But when you check your bank account at the end of the month, the sales are quiet. So where's the problem — the ads, the landing page, or the checkout? As long as you rely on a single source of data, the honest answer is: you're guessing.
This is where Google Analytics 4 (GA4) comes in. Think of GA4 as a second CCTV camera for your online store — one that records what visitors actually do, from the moment they click your ad to the moment they (hopefully) pay. This guide walks through setting up GA4 from scratch, specifically for an online store, with a focus on the events that truly matter — not just installing it and forgetting it.
What Is GA4, in Plain Terms?
GA4 is the latest version of Google Analytics, the replacement for Universal Analytics, which Google shut down back in mid-2023. The most fundamental difference: GA4 records data as events rather than just pageviews like the old version did.
Why does that suit an online store so well? Because almost everything that makes you money is an action, not merely opening a page. Someone views a product, adds it to their cart, starts checkout, then pays — all actions. GA4 was designed precisely to track flows like this, and it's free.
Why Your Store Needs GA4 Beyond Ads Manager
Meta's Ads Manager only "sees" what relates to its own ads, and it reports through Meta's attribution model, which tends to be optimistic. GA4 gives you a neutral second source of data to cross-check against. The concrete benefits:
- You'll see exactly where the funnel leaks. Say 1,000 people view a product but only 40 reach checkout — you immediately know which stage is broken.
- You'll see where all your traffic actually comes from. Not just Meta Ads, but Google, TikTok, WhatsApp, and people who type your store address directly.
- You can compare page performance. Which product page sends people running, and which one turns them into buyers.
- You build historical data. Three-to-six-month trends become the basis for decisions, instead of gut feeling.
How to Set Up GA4 for Your Online Store (Step by Step)
1. Create an Account and a GA4 Property
Go to analytics.google.com and sign in with your business Google account. Click Admin (the gear icon at the bottom left), then:
- Create a new Account and enter your business name.
- Create a Property, choosing the Jakarta time zone (GMT+7) and the Indonesian Rupiah (IDR) as your currency. This matters — it ensures your revenue reports show in rupiah, not dollars.
- Fill in your business details, then create a Data Stream of the Web type using your store's address.
Once that's done, you'll receive a Measurement ID in the format G-XXXXXXXXXX. Save this ID.
2. Install GA4 on Your Website
There are two routes — pick whichever is easiest for you:
- Use Shopify, WordPress, or a store plugin: usually you just paste the Measurement ID into a field your theme or plugin already provides. This is the fastest way.
- Want more flexibility: install it through Google Tag Manager (GTM). GTM acts like a "power outlet" that lets you add GA4, the Meta Pixel, and other tracking without repeatedly digging into code. For an online store that's serious about advertising, this route is the better choice.
After installing, open your store in a new tab, then check Reports > Realtime in GA4. If you see "1 user in the last 30 minutes," GA4 is connected.
3. Turn On Enhanced Measurement
In your Data Stream settings, make sure Enhanced Measurement is switched on. This feature automatically tracks scrolls, outbound link clicks, and on-site searches without any setup. It's free and genuinely useful to start with — but it's not enough for an online store. Here's why.
The E-commerce Events Every Store Must Track
This is the part people skip most often, yet it's exactly where GA4's value for an online store lives. Enhanced Measurement has no idea what a "product" or a "checkout" is, so you need the following e-commerce events. These are GA4's official standard names — don't rename them:
- view_item — a visitor opens a product page.
- add_to_cart — a product is added to the cart.
- begin_checkout — a visitor starts the checkout process.
- add_payment_info — a visitor enters payment details (if your flow has this step).
- purchase — the transaction succeeds. This is the most important event, and it must send the transaction value in rupiah plus the product details.
If your store runs on a popular e-commerce platform, these events can usually be enabled via a plugin or a GTM template. If your website is custom-built, your developer will need to push this data through the dataLayer. The one non-negotiable: the purchase event must send the correct rupiah value, so you can calculate a GA4 version of ROAS to compare against Ads Manager.
How to Read Funnel Health from Your GA4 Data
Once your events are firing and a few days of data have collected, you can start "reading" the health of your store. Here's an illustrative month:
- view_item: 2,000 people
- add_to_cart: 300 people (15%)
- begin_checkout: 120 people (40% of those who added to cart)
- purchase: 30 people (25% of those who checked out)
The conclusions come quickly. If add_to_cart is high but begin_checkout collapses, suspect your pricing, shipping costs, or cart display. If begin_checkout is busy but purchases are few, the payment process is probably too complicated or your payment methods are too limited. You won't get insight like this from Ads Manager, because Meta stops "seeing" the moment someone enters your website.
Say you spent Rp5,000,000 on ads in a month and generated 30 purchases worth Rp15,000,000. GA4 helps you confirm that number is real and consistent with the Ads Manager claim — not just optimistic attribution.
Common GA4 Setup Mistakes
- Installing it but forgetting the e-commerce events. The most common miss. The result: GA4 knows how many visitors you have but is blind to your sales.
- Double tracking. Installing GA4 through both a plugin and GTM, so every action is counted twice. Pick one route only.
- Counting your own traffic. Filter out your office and personal phone IPs so your own visits don't pollute the data.
- Wrong currency on the purchase value. If the property isn't set to IDR, your revenue can be misread. Double-check this at the start.
The Bottom Line
GA4 isn't just a visitor counter. For an online store, it's the second source of truth that tells you whether your ad spend is actually turning into sales — and exactly where buyers slip away before they pay. Ads Manager shows you the top of the journey; GA4 shows you the rest of it. Together, they turn end-of-month guesswork into decisions you can defend.
Keep in mind that in Aira Tech's model your ad budget is paid directly from your own Meta ad account to Meta — we never hold your spend. Proper tracking simply makes every rupiah of that budget accountable.
Want your tracking set up right and your ads managed with real data instead of guesswork? Explore our Meta Ads and tracking services, see our management packages and pricing, or build a plan tailored to your store. You can also keep learning on the Aira Tech blog.