Skip to main content
disable GTM preview environments

Google Tag Manager disabled in PR environments

xpenser added a DISABLE_GTM flag and set it for PR previews so validation traffic no longer emits production analytics events.

Published June 25, 2026

PR previews now disable Google Tag Manager by default so test traffic stays out of analytics.

This release came from PR #57 and is now part of the xpenser release archive. It gives people evaluating an open-source expense tracker a clearer view of how the product has improved over time.

What changed

  • Added DISABLE_GTM configuration to the web app.
  • Forwarded the flag through Docker build and runtime settings.
  • Updated PR environment generation so future previews disable GTM automatically.

Why it matters

Preview environments should be measurable for QA without polluting production analytics. An explicit flag keeps that behavior configurable.

Where it fits

This is part of the deployment hygiene that keeps xpenser preview validation clean.

For a broader product overview, start with the xpenser home page. Developers can also explore the personal finance API and MCP tools, while self-hosters can review the self-hosted personal finance tracker page.

Start hosted, then self-host when ready

Create a hosted xpenser account for the public instance, or review the MIT licensed source and run your own deployment from Docker Compose.