Getting Started with Lean GA4 Tracker
Lean GA4 Tracker is a lightweight, privacy-friendly Google Analytics 4 plugin for WordPress.
This guide will help you install, configure, and verify tracking within a few minutes.
Step 1: Install the Plugin (List Block)
- Navigate to your WordPress Admin → Plugins → Add New.
- Search for Lean GA4 Tracker.
- Click Install Now and then Activate.
Alternatively, download the ZIP from WordPress.org and upload it manually.
Step 2: Add Your GA4 Measurement ID (Heading + Paragraph + Code Block)
- Go to Settings → Lean GA4 Tracker in your WordPress dashboard.
- Enter your Measurement ID (format: G-XXXXXXX).
- Click Save Changes.
Example:
G-1A2B3C4D5E
Step 3: Verify Tracking (Heading + Paragraph + List Block)
To confirm data is flowing:
- Open your website in an incognito/private browser window.
- In another tab, go to your Google Analytics 4 → Admin → DebugView.
- Interact with your site (page views, clicks).
- Events should appear in DebugView within seconds.
Step 4: Basic Configuration (Heading + Paragraph + Toggle List)
Lean GA4 Tracker provides simple but powerful options:
- Script Loading Mode: Choose default, async, or defer for performance.
- Exclude User Roles: Prevent admins/editors from being tracked.
- Consent Mode Support: Integrates with popular cookie consent plugins.