Digital Analytics Suite
A portfolio of custom-built digital analytics tools demonstrating proficiency in JavaScript development, analytics instrumentation, session replay, experimentation, and tag management — the core competencies of modern digital experience platforms.
Google Analytics 4 Integration
Live on this siteFull GA4 implementation with a custom JavaScript analytics wrapper that provides typed event tracking. Custom events include article reads with scroll depth, music plays, resume downloads, navigation clicks, and outbound link tracking. Custom dimensions track content lens types and user roles.
Session Replay Engine
Custom-built · Quantum Metric / Tealeaf patternA lightweight JavaScript session recording library built from scratch. Captures DOM mutations, click coordinates, scroll positions, form interactions (privacy-safe — no input values), JavaScript errors, network request timing, and page visibility changes. Event batches are flushed to a SQLite-backed API every 10 seconds. An admin replay viewer reconstructs sessions with a timeline scrubber and event inspector.
A/B Testing Engine
Custom-built · Optimizely / Adobe Target patternA client-side A/B testing framework that handles experiment assignment, DOM modification, and conversion tracking. Uses deterministic hashing for stable user-to-variant mapping, cookie-based persistence, and configurable traffic allocation. Supports text, HTML, style, and class modifications via CSS selectors. Conversion events pipe through GA4 for unified reporting. Experiment configs are managed via admin API.
Analytics Dashboard
Admin panel integrationCustom analytics dashboard built into the admin panel showing session metrics, page performance, device breakdown, referrer sources, error tracking, and experiment results — all visualized with Chart.js. Aggregates data from the session replay engine and provides a unified view of site performance.
Tag Auditing Tool
Bookmarklet · Run on any pageA JavaScript diagnostic tool that audits any webpage for analytics tags, data layers, and tracking pixels. Detects GA4, Adobe Analytics, Adobe Target, Optimizely, Facebook Pixel, GTM, Segment, Hotjar, PostHog, Quantum Metric, Tealeaf, Mixpanel, and Amplitude. Reports tag firing sequence, data layer contents, and network requests to analytics endpoints. Available as a bookmarklet for use on any site.
Drag this to your bookmarks bar:
Tag AuditorLive Audit: This Page
Click to run the tag auditor on this page and see what analytics tags are detected.
Architecture
┌─────────────────────────────────────────────────┐
│ Browser │
│ ┌──────────┐ ┌──────────┐ ┌───────────────┐ │
│ │ GA4 gtag │ │ Session │ │ A/B Testing │ │
│ │ wrapper │ │ Replay │ │ Engine │ │
│ └────┬─────┘ └────┬─────┘ └──────┬────────┘ │
│ │ │ │ │
│ ▼ ▼ ▼ │
│ Google Analytics /api/analytics /api/analytics │
│ 4 Servers /sessions /experiments │
└─────────────────────┬──────────────┬─────────────┘
│ │
▼ ▼
┌──────────────────────────┐
│ SQLite (auth.db) │
│ ┌────────────────────┐ │
│ │ replay_sessions │ │
│ │ replay_events │ │
│ │ experiments │ │
│ │ experiment_events │ │
│ └────────────────────┘ │
└──────────────────────────┘
│
▼
┌──────────────────────────┐
│ Admin Dashboard │
│ ┌──────────────────┐ │
│ │ Analytics Tab │ │
│ │ - Sessions │ │
│ │ - Pages │ │
│ │ - Devices │ │
│ │ - Errors │ │
│ │ - Experiments │ │
│ │ - Session Replay│ │
│ └──────────────────┘ │
└──────────────────────────┘