EC Diag: E-commerce Diagnostics

Published Chrome extension for traceable tracking/funnel diagnostics, with privacy filtering and optional AI explanations.

EC Diag: E-commerce Diagnostics

Personal engineering tool · observation-only tracking diagnostics

Context

EC Diag grew from hands-on e-commerce troubleshooting and was published in the Chrome Web Store.

It brings Meta Pixel, data-layer events, and readable PostHog payloads into one diagnostic workflow, adapting a production tracking technique to bounded observation.

Challenge

Investigations required switching between DevTools, analytics tools, and raw payloads to reconstruct a customer journey.

Inconsistent events, duplicates, and compressed requests obscured problems. The tool needed comparable evidence without altering page behavior or exposing sensitive data.

Approach

Explicit authorization starts observation on the active tab. Passive observers and scoped monkey patches capture signals without changing storefront behavior.

Gzip/batched PostHog payloads are decoded, sensitive fields are redacted, and sanitized evidence is stored locally.

Deterministic analysis maps commerce events, attributes sources, and checks payloads/funnel continuity. Optional LLM explanations require separate user confirmation.

Workflow

  1. 01

    Start a scoped session

    Explicitly enable observation for the active tab and store under analysis.

  2. 02

    Intercept tracking signals

    Observe Meta Pixel, shared data layers, and request paths through generic monkey patches and passive listeners.

  3. 03

    Decode and sanitize

    Make gzip-compressed PostHog payloads readable, redact sensitive fields, and retain traceable evidence.

  4. 04

    Normalize and validate

    Map heterogeneous signals to canonical commerce events and evaluate payload/funnel quality.

  5. 05

    Explain next actions

    Present evidence, deterministic findings, and optional LLM-assisted recommendations for human review.

EC Diag Chrome extension showing popup, checklist, funnel, diagnostics, and realtime event log screens
The interface brings capture, canonical events, funnel state, payload issues, and realtime evidence into one diagnostic workflow; optional LLM reports remain a separate, user-approved step.

Capabilities

  • Explicit, authenticated, tab-scoped, observation-only capture.

  • Generic monkey patches and passive observers across Meta Pixel, data layers, and request paths.

  • Readable decoding of gzip-compressed and batched PostHog request payloads.

  • Canonical events, source attribution, payload-quality checks, and funnel diagnostics.

  • PII redaction plus sanitized, user-controlled JSON/HAR exports.

  • Realtime evidence with separately confirmed LLM-assisted recommendations.

Results

  • The extension originated from and has been used in my own e-commerce tracking debugging/troubleshooting workflow.

  • A Terpli interception technique became a platform-agnostic diagnostic tool.

    Its purpose changed from production instrumentation to bounded investigation, including Meta Pixel attribution signals.

  • Gzip-compressed and batched PostHog request payloads are decoded into readable records instead of remaining difficult to inspect in DevTools.

  • The interface correlates realtime logs, canonical commerce events, payload issues, and funnel state in one investigation surface.

  • Deterministic checks retain the evidence behind each finding.

    Meanwhile, LLM assistance is used to explain issues and propose improvements rather than replace human judgment.

Decisions & trade-offs

Trade-offs

  • Monkey patching provides visibility across heterogeneous data layers without asking storefront teams to change their code.

    However, it must remain scoped, passive, and carefully isolated to avoid affecting page behavior.

  • Local capture, decoding, redaction, and export minimize unnecessary data movement.

    Meanwhile, protected canonicalization and optional LLM analysis add an explicit authorization boundary when cloud processing is useful.

  • LLM-assisted explanations can make complex tracking findings easier to act on.

    However, deterministic validation and source evidence remain the primary basis because generated recommendations require human verification.

Problems solved

  • Reduced tool switching by consolidating data-layer signals, request evidence, canonical events, funnel state, and diagnostics in one side panel.

  • Made compressed PostHog payloads readable and inspectable during debugging.

  • Normalized heterogeneous event names and payload structures into a comparable commerce vocabulary.

  • Highlighted missing, malformed, duplicated, or inconsistent payload fields and journey gaps.

  • Turned raw evidence into prioritized corrections and optional LLM-assisted guidance for improving tracking quality.

Technology

Chrome ExtensionJavaScriptGA4Event TrackingData Quality

Let's build something amazing?

We are ready to understand your technical challenge and propose the best architecture. Contact us for an initial consultation without commitment.

OnTimeStack

© 2026 OnTimeStack. All rights reserved.

Let's talk?Privacy Policy
Designed by Sarah Ninsi