GTM · GA4 · Custom Events · Data Layer · Looker Studio

Conversion Event Tracking & Analysis — GTM, GA4 & Looker Studio

A comprehensive conversion tracking implementation using Google Tag Manager with custom Data Layer Variables, sending 7 key events with rich custom parameters to GA4 — including articles read before conversion, user type, subscription plan, and onboarding preferences — visualised in Looker Studio.

7
Conversion Events
With custom parameters
DLV
Data Layer Variables
Dynamic GTM capture
GA4
Custom Dimensions
Articles, user type, plan
Live
Looker Dashboards
Funnel & content analysis

What We Built & Why

The client had basic GA4 pageview tracking but no visibility into the conversion funnel — which content drove free trial sign-ups, which articles users read before subscribing, or why users viewed the paywall but didn't convert. Critical user journey data was invisible.

We implemented a full conversion tracking system using Google Tag Manager with Data Layer Variables (DLV) and JavaScript Variables to capture 7 key events — each with rich custom parameters like articles_read_before_conversion, user_type, subscription_plan, and newsletter_type_selected — sending everything to GA4 Custom Dimensions for deep Looker Studio analysis.

Core problem solved: GA4 tracked sessions but not journeys. Now every purchase fires with the last 3 articles the user read, every trial sign-up carries content that drove the conversion, and every onboarding step captures newsletter preferences and age category — giving the content and marketing teams proof of what actually converts.

GTM Data Layer

Custom DLVs capture user_id, user_type, articles_read, and subscription data on every event.

GA4 Custom Dimensions

Custom dimensions created for all parameters — age_category, articles, user type, plan, newsletter.

Content Attribution

Which articles users read before converting — definitive proof of content ROI.

Looker Studio

Funnel analysis, content interaction reports, and onboarding dashboards built in Looker.

GTM Tags, Variables & GA4 Custom Dimensions in Production

GTM GA4 purchaseComplete tag configuration with custom event parameters — all_last_visited_articles, paywall_type, user_state, user_type, wp_user_id, membershipGroup
GTM Tag — GA4 purchaseComplete with Custom Parameters

The live GTM tag GA4 - purchaseComplete sends a GA4 event named purchaseComplete to Measurement ID G-5XSH80P8Q7 — with 6 custom event parameters mapped to Data Layer Variables.

· all_last_visited_articles → {{DLV - Last Visited Articles}}
· paywall_type → {{DLV - Paywall Type}}
· user_state → {{DLV - User State}}
· user_type → {{DLV - User Type}}
· wp_user_id → {{DLV - wp_user_id}}
· membershipGroup → {{DLV – membershipGroup}}
GTM User-Defined Variables — DLVs & JS Variables

The live GTM workspace shows all user-defined variables — including Data Layer Variables, 1st Party Cookies, Custom JavaScript, DOM Elements, and Lookup Tables for capturing dynamic user data on every event.

· DLV - Last Visited Articles — Data Layer Variable
· DLV - membershipType — Data Layer Variable
· DLV - newsletter_selection — Data Layer Variable
· Cookie - Is Trial Upgrade Flow — 1st Party Cookie
· Age - page category — Custom JavaScript
· Category Group (Age) — Lookup Table
GTM User-Defined Variables list — DLVs, JavaScript variables, cookies for data layer capture
GA4 ParentData custom dimensions — age_category, all_last_visited_articles, authors, cmsTemplate, pd_sub_type, email_Id, children_birthdates
GA4 Custom Dimensions — All Parameters Registered

The ParentData - GA4 property shows all custom dimensions registered in Admin → Custom Definitions — every GTM parameter mapped to a named GA4 dimension for Looker Studio reporting.

· Age Category New → age_category (Event scope)
· all last visited articles → all_last_visited_articles
· Current User Membership Type → pd_sub_type
· Free Signup Email → email_Id
· Free Trial Children_birthdates → children_birthdates
· Free Trial Existing User Flag → is_existing_user

7 Key Events — Custom Parameters Included

Subscription Generated
· user_id, user_type
· subscription_plan — Basic, Premium
· articles_read_before_conversion
· Reveals which content drives paid subs
Free Trial Sign-Up
· user_id, user_type
· articles_read_before_trial
· Maps content → trial sign-up journey
· Identifies highest-converting articles
Custom Onboarding Completed
· user_id, user_type
· newsletter_type_selected
· age_category_selected
· Personalisation & segmentation data
Contact Us Form Submission
· user_id, user_type
· Tracks form submission intent
· Lead generation signal from content
· GTM form submit trigger
Book Appointment
· user_id, user_type
· Appointment booking confirmation
· High-intent user action signal
· GTM click trigger on booking CTA
Paywall View
· user_id, user_type
· paywall_type parameter included
· Measures paywall effectiveness
· Identify paywall → conversion rate
User Visited Plan Page
· user_id, user_type
· Subscription plan page visit tracked
· Funnel entry signal before purchase
· GTM page view trigger on /plans URL

Three Phases of Delivery

Phase 1 — GTM Setup
· Data Layer Variables for all parameters
· JavaScript Variables for JS-only values
· 7 GA4 Event tags — one per conversion
· dataLayer.push() for each event trigger
· GTM Preview Mode validation on each
Phase 2 — GA4 Configuration
· Custom dimensions created in GA4 Admin
· user_id, user_type, subscription_plan
· articles_read_before_signup dimension
· newsletter_type_selected dimension
· Events verified in GA4 DebugView
Phase 3 — Looker Reporting
· Looker Studio → GA4 connected
· Conversion event analysis dashboard
· Content interaction → trial report
· Funnel: plan page → trial → subscription
· Onboarding completion & newsletter report

What the System Measures

Conversion Metrics

Daily free trial sign-ups, form submissions, appointment bookings, subscriptions generated — with conversion rates between each funnel stage.

Content Attribution

Which articles users read before converting to a free trial or paid subscription — the definitive "closer content" list for the editorial team.

Onboarding Analysis

Newsletter type selected, age category chosen — which onboarding paths lead to higher engagement and lower churn over the first 30 days.

Paywall Performance

Paywall view rate, paywall type effectiveness, and paywall-to-subscription conversion rate — by user_type (anonymous, free, paid).

Funnel Visualisation

Plan page visit → paywall view → free trial sign-up → subscription — drop-off at each step identified for targeted optimisation.

Ad-Level Attribution

Which marketing campaigns and ads drive free trial sign-ups and subscription purchases — complete ROI measurement per channel.

What This Tracking System Delivers

Content teams can now prove which articles drive conversions — the last 3 articles before every purchase are captured, giving editorial teams definitive ROI data.

Marketing teams build GA4 cohorts from custom dimensions — e.g. "users who read Article X, are 5 days into trial, haven't purchased" — for hyper-targeted re-engagement.

Improved conversion rates — detailed funnel analysis and paywall tracking identify exactly where users drop off, enabling targeted fixes at each friction point.

Real-time Looker dashboards — automated reports on conversions, content performance, and onboarding provide decision-makers with live insights without manual extraction.

Technologies Used

Google Tag Manager
Tags, triggers, DLVs
Google Analytics 4
Events & custom dims
Looker Studio
BI dashboards
JavaScript
dataLayer.push() & DLVs
GA4 Custom Dims
Event-scoped parameters
GTM Preview Mode
Tag validation & testing

What Was Built & Applied

Google Tag Manager (GTM)
Google Analytics 4 (GA4)
Looker Studio Reporting
Data Layer & DLV Configuration
GA4 Custom Dimensions Setup
Conversion Event Implementation
Funnel & Content Attribution Analysis
GTM Preview & DebugView Testing

Want rich conversion tracking with custom parameters for your product?

From GTM data layer setup to GA4 custom dimensions and Looker Studio dashboards — we build tracking systems that tell you exactly what content and campaigns drive conversions.

Start Your Project →