GA4 for Monetised Blogs

Blog Analytics Setup in 2026: Google Analytics 4 Configuration for Monetised Blogs Full Tracking Blueprint

Stop flying blind. This step-by-step guide shows you exactly how to configure GA4 to track affiliate revenue, digital product sales, email signups, and build a custom dashboard that reveals your true profit per post.

Jump to section: Why GA4 Setup Custom Events Revenue 5 Reports

Loading...

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.

73%
of bloggers don't track conversion events in GA4
2.4Ă—
higher attributed revenue with custom events
-34%
lower acquisition cost when using GA4 audiences

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.

1
Create a GA4 Property (or Upgrade from UA)
In your Google Analytics account, click "Admin" → "Create Property". Choose "Web" as the platform, enter your blog URL, and name the property (e.g., "EarnifyHub - GA4"). Turn on "Enhanced measurement" — this automatically tracks outbound link clicks, site search, scrolls, video engagement, and file downloads. These are free events you don't need to code yourself.
2
Install the GA4 Tracking Code
Copy the global tag (gtag.js) from your GA4 property's "Data streams" → "Web" → "Tagging instructions". Paste it immediately after the <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).
3
Configure Data Retention & Consent Mode
Go to Admin → Data Settings → Data Retention. Set the retention period to 14 months (the maximum). This ensures you can compare year‑over‑year data. For privacy compliance (GDPR, CCPA), enable Google Consent Mode under Admin → Data Settings → Consent Settings. This allows GA4 to respect user cookie preferences and avoids legal penalties.
4
Set Up Internal Traffic Filtering
To prevent your own visits from skewing data, go to Admin → Data Streams → [your stream] → Configure Tag Settings → Define internal traffic. Enter your office or home IP address. Then create a filter in Admin → Data Settings → Data Filters that excludes internal traffic. This keeps your bounce rate and conversion data clean.

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
ParameterValueExample
currencyISO currency code"USD"
valueTotal revenue (including tax/shipping)47.00
transaction_idUnique order ID"ORD-12345"
itemsArray 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:

  1. In GA4, go to Admin → Product Links → Search Console Links → Link.
  2. Select the Search Console property for your blog.
  3. 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:

1
Revenue by Landing Page
Dimensions: Page path + query string, Source/medium. Metrics: Sessions, Conversions (purchase), Total revenue, Revenue per session. This tells you which blog posts are your best salespeople. Focus your content updates on posts with high revenue per session.
2
Affiliate Click Performance by Post
Dimensions: Page path, Event name (affiliate_click). Metrics: Event count, Unique users who clicked. Create a free‑form exploration. This report shows which posts generate the most affiliate link clicks, even if they don't have high traffic. You can then optimise those posts with better‑placed links.
3
Channel Grouping by Conversion Value
Dimensions: Default channel group. Metrics: Sessions, Conversions (purchase + generate_lead), Total revenue, E‑commerce purchases. This report reveals which traffic channels (Organic Search, Direct, Social, Referral) deliver the highest ROI. If Social has low conversion value, consider shifting resources to SEO.
4
User Retention & LTV by Cohort
Use the "Cohort exploration" template. Dimensions: Acquisition date. Metrics: User retention (week 0–4), Lifetime value (total revenue per user). This tells you whether your blog builds a returning audience. Low retention indicates you need better email capture or content that encourages repeat visits.
5
Funnel Analysis: Blog Visit → Email Signup → Purchase
Create a path exploration with steps: 1) session_start, 2) generate_lead (email signup), 3) purchase. This shows the drop‑off rates between each stage. If many visitors sign up but never buy, your email nurture sequence needs work. If few visitors sign up, improve your lead magnets.

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:

  1. Install the "Google Analytics 4" add‑on in Google Sheets (Extensions → Add‑ons → Get add‑ons).
  2. Create a new sheet and use the add‑on to pull data for a custom report (e.g., page path, sessions, conversions, revenue).
  3. In a second sheet, manually enter costs per post: writer fee, graphics, SEO tool time, promotion.
  4. Use a VLOOKUP to match costs to each page path, then calculate profit = revenue - cost.
  5. 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.

Frequently Asked Questions About Blog Analytics

Yes, GA4 is free for up to 10 million events per month per property. Most blogs will never exceed this limit. Only enterprise sites with hundreds of thousands of daily visitors need the paid version (Google Analytics 360).
No. You can use the gtag.js code snippets provided above. However, GTM makes it easier to manage many tags, preview changes before publishing, and debug issues. If you plan to track more than 3–4 custom events, I recommend installing GTM.
Amazon doesn't pass commission data back to GA4. Instead, track the click as an event, then estimate revenue using your average conversion rate Ă— average commission. For example, if 100 affiliate clicks generate $50, each click is worth $0.50. Set that as the event value in GA4.
Yes, GA4 offers a direct BigQuery integration (free up to 1TB of queries per month). You can write SQL queries to analyse raw event data, then connect BigQuery to Looker Studio for custom dashboards. This is advanced but powerful for large blogs.
GA4 uses "engagement rate" instead of bounce rate. An "engaged session" is one that lasts longer than 10 seconds, has a conversion, or has 2+ page views. The complement (non‑engaged sessions) is roughly equivalent to bounce rate. You can calculate it as 100% - engagement rate.
Weekly for the five custom reports above. Monthly for deeper analysis (cohorts, funnels). After each content campaign, check the specific landing page performance. Avoid daily checks — data noise can lead to over‑optimisation.