If you're monetising your blog with display ads, affiliate marketing, or digital products, you need analytics that goes beyond page views and sessions. Google Analytics 4 (GA4) is the only analytics platform that can track the full customer journey from first click to purchase — but most bloggers use less than 10% of its power. In this guide, I'll walk you through a complete GA4 setup for a monetised blog in 2026: property configuration, custom events for affiliate link clicks and email signups, revenue tracking for digital products, Search Console integration, and the five custom reports you should check every week to grow your income. By the end, you'll know exactly which posts, traffic sources, and monetisation channels drive your profit — not just your traffic.
Essential Reading Before You Start
- Why GA4 Is Non‑Negotiable for Monetised Blogs in 2026
- Step‑by‑Step GA4 Property Setup (With Privacy Compliance)
- Tracking Affiliate Clicks, Email Signups & Outbound Links
- How to Track Digital Product Revenue & Ecommerce in GA4
- Linking Google Search Console to GA4 for SEO Insights
- The 5 GA4 Reports Every Monetised Blogger Needs Weekly
- Building a Profit‑per‑Post Dashboard (Google Sheets + GA4 API)
- Common GA4 Mistakes & How to Fix Them
- Frequently Asked Questions About Blog Analytics
Why GA4 Is Non‑Negotiable for Monetised Blogs in 2026
Universal Analytics (UA) was sunset in July 2023, and while many bloggers migrated to GA4, most never configured it properly for a monetised site. GA4 is fundamentally different: it's an event‑based model, not session‑based. That means you can track every meaningful action a visitor takes — clicking an affiliate link, submitting an email address, buying a digital product — and attribute that action back to the traffic source and content that drove it. For bloggers, this is a game changer. With UA, you could see which posts got traffic. With GA4, you can see which posts generate actual revenue. For a deep dive on measuring what matters, see our Blog Revenue Tracking in 2026: How to Build a Dashboard That Shows True Profit Per Post.
Key GA4 Advantages for Bloggers
- Cross‑device tracking: See if a reader discovers you on mobile and buys on desktop.
- Predictive audiences: Google's machine learning predicts which users are likely to convert — you can target them with Google Ads.
- No sampling (up to 10M events): Your data is accurate even as your traffic grows.
- Direct BigQuery export: For advanced bloggers, you can query raw event data with SQL.
But GA4's power comes with complexity. The default installation only tracks page views and scrolls. To track affiliate revenue, email signups, or product purchases, you need to implement custom events and enhanced measurement. That's what this guide will show you, step by step.
Step‑by‑Step GA4 Property Setup (With Privacy Compliance)
Before we dive into custom events, let's ensure your GA4 property is configured correctly for a monetised blog. If you already have a GA4 property, skip to step 3 to verify your settings.
<head> tag on your WordPress site (use a plugin like "Insert Headers and Footers" or add it to your theme's header.php). Alternatively, install via Google Tag Manager (recommended for advanced tracking).Pro Tip: Use Google Tag Manager
If you plan to track many custom events (affiliate links, email forms, product purchases), install GA4 via Google Tag Manager (GTM). GTM gives you a point‑and‑click interface to add event tracking without editing code. It also makes it easier to debug and version‑control your tags. For this guide, I'll provide both gtag.js and GTM instructions.
Tracking Affiliate Clicks, Email Signups & Outbound Links
Most bloggers lose 80% of their revenue attribution because they don't track these three events. Let's fix that.
1. Track Affiliate Link Clicks
Affiliate links are the lifeblood of many monetised blogs, but GA4 doesn't track them by default. You need to fire a custom event whenever a visitor clicks an affiliate link. Here's how.
📊 Affiliate Link Tracking Setup (gtag.js)
// Add this script after your GA4 tag
document.querySelectorAll('a[href*="amazon.com/dp/"], a[href*="shareasale.com/"], a[href*="clickbank.net/"]').forEach(link => {
link.addEventListener('click', function() {
gtag('event', 'generate_lead', {
'event_category': 'affiliate',
'event_label': this.href,
'value': 1 // placeholder, we'll override with actual commission later
});
});
});
For Google Tag Manager users, create a new Trigger for "Click - Just Links" and set it to fire only on affiliate domains. Then create a GA4 Event tag with event name "affiliate_click". This sends the same data to GA4. Once this is set up, you can create a report showing which posts generate the most affiliate clicks — and combine that with revenue data to calculate click‑to‑commission ratios.
2. Track Email Signups (Lead Generation)
If you use an email marketing platform like ConvertKit, MailerLite, or Mailchimp, you can fire an event when a visitor submits your opt‑in form. Most form plugins (Gravity Forms, Elementor, Fluent Forms) allow you to add a custom JavaScript callback on success. Add this code:
đź“§ Email Signup Tracking (Form Success)
gtag('event', 'generate_lead', {
'event_category': 'email_signup',
'event_label': 'Newsletter Form',
'value': 0.50 // estimated lifetime value per email subscriber
});
Assign a value based on your average email subscriber lifetime value (e.g., if you earn $2 per subscriber per month and keep them for 6 months, value = $12). GA4 will then report the total value generated by each traffic source, allowing you to optimise for lead‑generating channels. For a complete email strategy, see Email List Building for Bloggers in 2026.
3. Track Outbound Links (Non‑Affiliate)
GA4's enhanced measurement automatically tracks outbound link clicks, but it groups them all together. To differentiate between affiliate links (which generate income) and regular outbound links (e.g., to a source article), create a separate event for non‑affiliate outbound clicks. Use the same selector logic as above but exclude affiliate domains.
After Implementation
Wait 24–48 hours, then go to GA4 → Reports → Engagement → Events. You should see "affiliate_click", "generate_lead", and "outbound_link" events populating. If not, use the GA4 DebugView (Admin → DebugView) to test in real time.
How to Track Digital Product Revenue & Ecommerce in GA4
If you sell digital products (ebooks, courses, templates) directly on your blog, you need to set up GA4's ecommerce tracking. This is the most accurate way to measure return on investment per traffic source. Assuming you use a platform like WooCommerce, Easy Digital Downloads, or Shopify, you can install their GA4 integration plugin. For custom implementations, use the purchase event with the following parameters:
đź’° GA4 Purchase Event Structure
| Parameter | Value | Example |
|---|---|---|
| currency | ISO currency code | "USD" |
| value | Total revenue (including tax/shipping) | 47.00 |
| transaction_id | Unique order ID | "ORD-12345" |
| items | Array of products purchased | [{item_id, item_name, price, quantity}] |
Once ecommerce is set up, GA4 will automatically populate the "Monetization" reports, showing revenue by item, by source/medium, and by user segment. You'll finally know which blog posts drive the most product sales — not just the most traffic. For more on product creation, read Selling Digital Products on a Blog in 2026.
Linking Google Search Console to GA4 for SEO Insights
One of the most underused GA4 features is the integration with Google Search Console. When linked, you can see which search queries drive traffic to your site, and more importantly, which queries lead to conversions. To link:
- In GA4, go to Admin → Product Links → Search Console Links → Link.
- Select the Search Console property for your blog.
- Enable the two data features: "Web data" (queries, impressions, clicks) and "Performance reports".
Once linked, you'll find Search Console data in GA4 under Reports → Acquisition → Search Console. You can create custom explorations to combine query data with conversion events. For example, you might discover that the query "best SEO tools for beginners" drives affiliate clicks while "how to start a blog" drives email signups. That insight lets you tailor your content strategy. For a deeper dive, see Google Search Console for Bloggers in 2026: How to Use GSC Data to Grow Organic Traffic.
The 5 GA4 Reports Every Monetised Blogger Needs Weekly
The default GA4 reports are generic. You need custom reports that focus on monetisation. Here are the five I recommend building in GA4's Explore section:
Schedule 30 minutes every Monday to review these five reports. Over time, you'll spot patterns — which topics, formats, and channels drive profit. For a step‑by‑step guide to automating these reports, see Blog Revenue Tracking in 2026: How to Build a Dashboard That Shows True Profit Per Post.
Building a Profit‑per‑Post Dashboard (Google Sheets + GA4 API)
GA4's reports are great, but they don't combine with your cost data (content production, ad spend, tool subscriptions). To get true profit per post, you need to export GA4 data to Google Sheets and merge it with your expense tracking. Here's a simple method:
- Install the "Google Analytics 4" add‑on in Google Sheets (Extensions → Add‑ons → Get add‑ons).
- Create a new sheet and use the add‑on to pull data for a custom report (e.g., page path, sessions, conversions, revenue).
- In a second sheet, manually enter costs per post: writer fee, graphics, SEO tool time, promotion.
- Use a
VLOOKUPto match costs to each page path, then calculate profit = revenue - cost. - Sort by profit descending to see which posts are your true winners.
This dashboard is the single most valuable asset for a monetised blogger. It stops you from optimising for traffic and starts you optimising for profit. For a full template, join the EarnifyHub newsletter (we'll send you a copy).
Common GA4 Mistakes & How to Fix Them
Mistake #1: Not Verifying Events in DebugView
Many bloggers install tracking code but never test. Use GA4 DebugView (Admin → DebugView) while browsing your site with the Google Analytics Debugger Chrome extension. You'll see events fire in real time. If an event doesn't appear, check your selector or GTM trigger.
Mistake #2: Ignoring Data Thresholding
GA4 applies thresholds to reports when there are few users, to prevent re‑identification. This often hides data in the first few weeks. To reduce thresholding, go to Admin → Property Settings → Reporting Identity and switch from "Blended" to "Device‑based". Your data will be less accurate across devices but you'll see more granular reports.
Mistake #3: Not Setting Up Conversions
Marking an event as a "conversion" is a separate step. In GA4, go to Configure → Conversions and add your custom events (affiliate_click, generate_lead, purchase). Only conversion events appear in the standard reports. Without this, you're blind to your most important actions.
For a complete pre‑publish SEO and analytics checklist, see Blog SEO Checklist for 2026: 40 On‑Page and Technical Checks Before You Hit Publish.