LabscoMCP early access ↗
PostHog avatar✓ Official

managing-path-cleaning-rules

MCP connection required★ 59 on GitHub
part of posthog/ai-pluginby posthog

When /users/123 and /users/456 are really the same page, a report fills up with thousands of one-visit rows; this writes and tests the rules that fold them back into a single readable line.

WHEN TO USE

SCOPE

USE FOR

  • Work out which parts of a site's URLs are really just IDs or dates.
  • Test a proposed cleaning rule against real URLs before saving it project-wide.
  • Order rules so a specific pattern doesn't get swallowed by a broader catch-all rule.
  • Turn a natural-language description of a URL pattern into working regex.

NOT FOR

  • Getting per-URL drill-down data for one specific page; use a $pathname filter instead.