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
- 01
Start a scoped session
Explicitly enable observation for the active tab and store under analysis.
- 02
Intercept tracking signals
Observe Meta Pixel, shared data layers, and request paths through generic monkey patches and passive listeners.
- 03
Decode and sanitize
Make gzip-compressed PostHog payloads readable, redact sensitive fields, and retain traceable evidence.
- 04
Normalize and validate
Map heterogeneous signals to canonical commerce events and evaluate payload/funnel quality.
- 05
Explain next actions
Present evidence, deterministic findings, and optional LLM-assisted recommendations for human review.

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.