Website analytics
Install analytics tracking on your site. Set up conversion tracking for purchases, add-to-carts, and email signups.
Why it matters
Without analytics, you spend money on gut feeling. You might be paying for ads on one channel while most of your sales come from another, and never know.
GA4 tells you four things: where visitors come from, what they do on your site, where they drop off and what turns them into buyers. A funnel report that shows plenty of add-to-carts but few completed checkouts tells you the problem is your checkout, not your traffic, product or price.
Set up analytics on day one, even if you don't look at the data for weeks. You can't go back and measure visitors you didn't track.
How to do it
GA4 setup: events, key events and the 5 reports that matter
1. Install Google Analytics 4 (15 min)
Go to analytics.google.com and create a GA4 property. You'll get a Measurement ID (starts with "G-").
- On Shopify: Install the free Google & YouTube sales channel from the Shopify App Store, connect your Google account, and select your GA4 property. (The old Online Store > Preferences field no longer exists.)
- On WooCommerce: Install the "Google Analytics for WooCommerce" plugin and paste your ID.
- Any platform: Install Google Tag Manager (one tag) and fire GA4 through it for maximum flexibility.
Verify: open GA4 > Realtime report and visit your site in another tab. You should appear as an active user within 30 seconds.
2. Configure e-commerce event tracking (15 min)
GA4 uses events instead of goals. Ensure these four events are firing:
- view_item: Product page viewed
- add_to_cart: Product added to cart
- begin_checkout: Checkout started
- purchase: Order completed (with revenue data)
The Google & YouTube channel and the WooCommerce GA4 plugin set these up automatically. Verify in GA4 under Admin > Events, or watch them fire in DebugView.
3. Mark your key events (10 min)
GA4 calls conversions "key events." Go to Admin > Events and toggle "Mark as key event" for:
- purchase (primary conversion)
- add_to_cart (measures product page effectiveness)
- begin_checkout (measures cart-to-checkout rate)
- email_signup (measures list building)
4. Learn the 5 reports you'll actually use (15 min)
- Traffic Acquisition (Reports > Acquisition): Which channels bring visitors. Check weekly.
- Pages and Screens (Reports > Engagement): Your top pages by views. Double down on winners.
- E-commerce Purchases (Reports > Monetization): Revenue by product. Your sales dashboard.
- Funnel Exploration (Explore): view_item > add_to_cart > begin_checkout > purchase. Shows exactly where you lose customers.
- Landing Pages (Reports > Engagement): Which pages visitors arrive on first. Optimize these: they are your store's front doors.
5. Set up a 5-minute Monday review ritual (5 min)
Every Monday, check four numbers: total sessions vs. last week, conversion rate, top traffic source, and top selling product. That's enough data to make informed decisions without drowning in metrics.
What you will have at the end
- Google Analytics 4 installed and verified with real-time tracking confirmed working
- E-commerce events (view_item, add_to_cart, begin_checkout, purchase) configured and verified
- Key events marked in GA4: purchase, add_to_cart, begin_checkout, email_signup
- A funnel exploration built showing the full purchase funnel with drop-off percentages at each stage
Tools for this step
Tips
- Install Hotjar's free plan (35 sessions a day, checked October 2026) alongside GA4. GA4 tells you how many visitors leave your product page; Hotjar's session recordings show why, such as scrolling past the price, hesitating and leaving.
- Track micro-conversions from day one: email signups, add-to-carts and wishlist adds. A product page with 500 views and 80 add-to-carts but only 5 purchases has a checkout problem. A page with 500 views and 8 add-to-carts has a product page problem.
- Check analytics weekly on Monday mornings, not daily. Daily checking leads to panic over normal swings: one slow Tuesday is noise. Weekly trends are the signal. Set a recurring 5-minute calendar event and stick to it.
Unlock the full course for free
Enter your email and we'll send you a code to unlock every step. It's free.
Our privacy policy says what we do with your email.