Compare

The open-source, self-hostable Heap alternative

Heap pioneered autocapture-first product analytics, and it runs only in its own cloud, now as part of Contentsquare. Pug has the same autocapture model (clicks, scrolls and forms, then funnels, retention, flows and profiles) with an AGPL-3.0 server you can self-host and prices it publishes. Here is how the two compare, including where Heap is the better pick.

Choose Pug if
  • You want to self-host, or keep raw events on your own servers
  • You want autocapture product analytics with a published price
  • You want your data readable after you pass the free tier
Stick with Heap if
  • You want to define events retroactively over everything captured
  • You need session replay and a broader experience suite
  • Your identity provider speaks SAML, not OIDC
At a glance

Pug vs Heap, feature by feature

Each row sets what ships in Pug today against what Heap documents. A dash in Pug’s column is a feature Pug doesn’t have.

Capability Pug this page Heap
Ownership & operations
License AGPL-3.0 Proprietary
Open source Yes No
Self-hostable Yes No
Raw events on your own servers Yes No
Pricing (checked November 2026)
Billing unit Events Sessions
Free tier 100k events a month, 1 year of history 10k sessions a month, 6 months of history
Past the free tier Never blocked or dropped Data locked until you upgrade
Paid price published $1 a month + $20 per million events, falling with volume No: Growth by estimate, Pro and Premier through sales
History on paid plans 5 years 12 months on Growth; 1 year on Pro and Premier, up to 3 as an add-on
Product analytics (same category)
Autocapture Yes Yes
Trends Yes Yes
Funnels Yes Yes
Retention cohorts Yes Yes
User-flow Sankey Yes Yes
Unified person profiles Yes Yes
Platform breadth
Retroactive event definition Not in Pug Yes
Session replay Not in Pug Yes
Auto-surfaced insights Not in Pug Yes
Digital-experience suite (Contentsquare) Not in Pug Yes
Integration marketplace Not in Pug Yes
Single sign-on
SSO on every plan Yes Yes
Protocol OIDC and Google Workspace SAML 2.0
SAML Not in Pug Yes
SCIM provisioning Not in Pug Premier plan
Bots
Bot traffic Tagged and kept, out of insights by default 100+ bot user agents blocked by default
SDKs
SDKs Web, Android, iOS, Flutter, Node, Go, Ruby Web, iOS, Android, React Native, Flutter, Capacitor, Cordova, Xamarin

Checked November 21, 2026 by Praveen Kumar, who builds Pug. Sources: Heap pricing, SAML SSO guide, bot user agents, SDK overview, client-side API. Prices change, so confirm them on Heap’s site before you decide.

Open source, not a black box

Heap is proprietary and runs only in its cloud, now as part of Contentsquare. Pug’s server and dashboard are AGPL-3.0: read the code, self-host it with every feature, and keep each event on your own servers.

A price you can read

Heap publishes a price only for its free tier, gives an estimate for Growth once its snippet is installed, and sells Pro and Premier through sales. Past 10k sessions, the free plan locks your data until you upgrade. Pug Cloud publishes every rate, and going over the free allowance never blocks, slows or drops an event.

Bots tagged, not discarded

Heap blocks a list of more than 100 common bot user agents by default, so those requests never reach your data. Pug tags headless browsers, monitors and scrapers ($bot, $bot_reason) as they arrive and leaves them out of insights by default, but keeps them: an Include bots toggle brings them back.

The honest part

Where Heap is still the better choice

Heap has each of these and Pug doesn’t. If your team needs one, Heap is the better fit.

  • Retroactive event definition over everything it captured
  • Session replay of real user sessions
  • Auto-surfaced insights and data-science features
  • The broader Contentsquare digital-experience suite
  • SAML single sign-on on every plan, and SCIM on Premier
  • SDKs for React Native, Capacitor, Cordova and Xamarin
Migrating

Moving from Heap to Pug

heap.js has five calls to replace. The larger job is the events you defined in Heap’s UI over its autocapture, which Pug can’t define retroactively.

Heap Pug What changes
heap.track('Purchase', props) track('purchase', { productId, amount, currency }) Pug event names take letters, digits, _, . and -. Purchase maps to Pug’s well-known purchase event, whose fields the SDK types.
heap.identify('user-42') await identify('user-42') Merges the anonymous history into the person. In the default cookieless mode it does nothing until the visitor consents.
heap.addUserProperties({ plan }) await identify(id, { plan }) User properties ride on identify(). Call it again with new traits to update them.
heap.addEventProperties({ plan }) beforeSend: (e) => { e.customProperties.plan = plan } A beforeSend hook in init() adds the key to every event (npm and loader installs, not the one-tag install).
heap.resetIdentity() reset() Clears the stored identity and starts a new anonymous id and session, sending queued events first.
  • Heap’s defined events are rules over everything it recorded. Pug records a fixed set (page_view, click, scroll, form_start, form_submit, rage_click, dead_click), so list the defined events your reports use and add a track() call for each one that set doesn’t cover.
  • Heap bills by sessions and Pug by events, so check your monthly event count, autocapture included, before you compare bills.

Pug has no importer for Heap’s history, so it counts from the day its SDK goes in: run both until the reports you rely on are rebuilt in Pug. To bring an export across, the Node SDK’s track() takes a timestamp option.

What Pug does well

What ships in Pug today

Pug ships autocapture on the web, seven insight types (trends, funnels, retention cohorts, segmentation, user flows, Top-K and a map), unified profiles, dashboards and a Live view, in the AGPL-3.0 server and on Pug Cloud alike. A self-hosted install is the pug Go binary on PostgreSQL, ClickHouse, NATS and Dragonfly, with no plans or limits.

How much does Heap cost?

Heap doesn’t publish paid prices. Growth comes as an estimate once you install the free snippet, and Pro and Premier are priced through sales; every plan bills by sessions, so the cost climbs with your traffic (checked November 2026). Pug Cloud is free up to 100k events a month, then $1 a month plus graduated per-event rates: 1M events a month bills $19.00, and 10M bills $167.00. The Heap pricing explainer covers what is known about Heap’s paid plans.

Does Heap have a free plan?

Yes: up to 10,000 sessions a month with six months of data history, SSO included. Past that limit data keeps flowing in, but you can’t view it again until you upgrade. Pug Cloud’s free allowance keeps 1 year of history, and going over it never locks or drops anything.

Is Pug a Heap alternative?

Yes. It’s a close fit. Heap and Pug are both autocapture-first product analytics tools with funnels, retention, user flows, and unified profiles. The key difference is that Heap is proprietary, cloud-only SaaS (now part of Contentsquare), while Pug is open source (AGPL-3.0) and self-hostable.

Does Pug autocapture like Heap?

Yes, on the web. The difference is in approach: Heap records everything and lets you define events retroactively from that history, while Pug autocaptures a fixed set of interactions plus the events you track, and can’t define new events over past traffic.

Is Pug as feature-rich as Heap?

No. Heap (now part of Contentsquare) adds retroactive event definition, session replay, auto-surfaced insights, and a broad digital-experience suite. Pug focuses on the core insight types and unified profiles, open and self-hostable.

Do I own my data with Pug?

Self-hosted, every raw event stays in your own ClickHouse. On Pug Cloud, the Node, Go and Ruby SDKs read profiles, activity and insights back with your private key. With Heap, your events live in its cloud.

Does Heap include SSO?

Yes, on every plan including Free, through SAML 2.0, and SCIM provisioning is Premier only (checked November 2026). Pug also includes SSO on every plan, through Google Workspace or your own OIDC provider such as Okta or Microsoft Entra ID; Pug has no SAML or SCIM.

Send your first event.

Create a project, add the snippet, and watch the Live view fill up. Or open the demo first: the real dashboard on a sample pet shop, with no sign-up.

Questions? Email hello@pug.sh