HeyCatch Help
Open HeyCatch
Analytics / Privacy and troubleshooting

Privacy, consent and your data

What the SDK collects, cookies, consent, excluding pages, uninstalling and deleting data.

What does the analytics SDK collect, and where does it send it?#

The package is @heycatch/sdk, MIT licensed, and it sends to exactly one host, in.heycatch.ai, and only events. It loads no script from there: since version 0.8.0 the whole SDK is inside the package, so there is nothing external to self-host or pin with SRI, and the version you install is the one that runs. It makes no requests to any third-party analytics host from your site. If you installed from npm and your site sends a Content-Security-Policy, connect-src https://in.heycatch.ai is all it needs for us.

Captured automatically: pageviews, page leaves, clicks, rage clicks, the fact that a form was submitted, and route changes in single-page apps, the full URL including path segments, the page title of every pageview, and IP, device and browser. From SDK 0.8.5 you can switch IP addresses off yourself with the option collectIp: false in analytics.init: new events then keep no IP and no country or city taken from it. Capturing starts as soon as init runs, unless you hold it for consent, see "How do I hold analytics until a visitor consents?".

Clicks include the text of the element that was clicked, for example the label on a button. That is deliberate. Those labels are what the dashboard uses to describe what a visitor actually did, so it can tell you someone pressed "Start free trial" and then rage-clicked a broken control, rather than reporting that they clicked an element. You can switch that off yourself, see "Does the SDK record the text on the buttons my visitors click?".

Not captured: the contents of form inputs, so nothing anyone types into a field. There is no session replay and no screen recording, neither is in the SDK at all. Ad-click identifiers are stripped out of the URLs it captures.

Everything else is explicit: events you write yourself, and identity if you call setIdentity, which carries only the properties you pass.

Two things to keep out of it on your side: names or emails in a URL or a page title, and a visitor's name or email shown as the text of something they click.

Does the SDK record the text on the buttons my visitors click?#

Yes, and it is worth knowing exactly what that means before you answer for it in your own privacy policy.

When a visitor clicks something, the SDK records the label on the element they clicked, for example "Start free trial" or "Pricing". It is a deliberate choice rather than a default we left on: those labels are what makes your dashboard readable, because the per-user and per-session summaries describe what someone actually pressed instead of reporting an anonymous click. By default nothing strips the labels.

What it does not record is the contents of form inputs, so nothing your visitors type into a field. There is no session replay and no screen recording either.

If your situation requires clicked labels not to be captured, you can switch that off yourself in analytics.init, from SDK version 0.8.0.

  1. maskAllText: true removes the text of clicked elements.
  2. autocapture: false turns off the automatic capture of clicks and form submissions altogether. Pageviews, page leaves and rage clicks are still recorded.

Both have a cost. Without the text, the recap can no longer name the places where visitors struggle, and with autocapture off the dashboard sees pageviews and only the events you send yourself. The SDK says so once in the console.

Does the analytics SDK write cookies or local storage?#

Yes, as first-party storage on your own domain. Our ingest endpoint sets no cookies of its own. <token> below is a fixed public token built into the SDK, the same for every customer, and it is not your API key.

  1. Cookie: ph_<token>_posthog, with the visitor's distinct id, device id and session id. It is set on your main domain, so your subdomains share it. It lasts 365 days, renewed on every visit. cookieExpirationDays in analytics.init shortens it.
  2. localStorage: ph_<token>_posthog (your project key, SDK version, framework, first-touch UTM tags and referrer), heycatch_session_volume (a counter for the per-session event cap) and __ph_opt_in_out_<token> (the consent choice, written only if you call optInCapturing or optOutCapturing).
  3. sessionStorage, gone when the tab closes: ph_<token>_posthog, ph_<token>_window_id and ph_<token>_primary_window_exists.

A session ends after 30 minutes without activity or at 24 hours. Session replay, surveys and feature flags are off in our SDK.

To store nothing on the device, pass persistence: 'memory' in analytics.init. Every page load is then a new anonymous visitor, so returning visitors and attribution beyond the landing page are lost. respectDnt: true treats a Do Not Track header as opted out.

With a consent banner you can hold all of it back: pass optOutCapturingByDefault: true in analytics.init, and nothing is written to the browser's storage, and nothing is sent, until you call analytics.optInCapturing(). The steps are in "How do I hold analytics until a visitor consents?".

After analytics.optOutCapturing() the cookie is removed and nothing new is sent, also after a reload. What stays: __ph_opt_in_out_<token>, which remembers the choice, and heycatch_session_volume in localStorage, and ph_<token>_window_id and ph_<token>_primary_window_exists in sessionStorage until the tab closes. With the default batching, events captured just before the call can still go out with the current batch, up to about 3 seconds later. With requestBatching: false nothing is waiting.

My website and my web app are on different subdomains, like example.com and app.example.com. Is a visitor recognised across both?#

Yes, with nothing to configure. The SDK's cookie is set on your main domain, .example.com in that case, so every subdomain under it shares it. It carries the visitor's anonymous id, so someone who first visits example.com and later signs in on app.example.com, where you call setIdentity, keeps those earlier visits, including the channel that brought them.

There is no cookie domain or cross-subdomain option, and none is needed. The storage options in analytics.init are persistence, disablePersistence and cookieExpirationDays.

Two conditions.

  1. Both use the same project key, because the key decides which project the events belong to.
  2. With optOutCapturingByDefault, nothing is stored before analytics.optInCapturing(), so a visit made before consent has no id to carry over.

Is capturing off until I call optInCapturing()?#

No. Capturing is on as soon as analytics.init runs, so a site without a consent banner needs nothing more.

It starts off only if you pass optOutCapturingByDefault: true to analytics.init. Then nothing is sent, and nothing is written to the browser's storage, until you call analytics.optInCapturing().

If you read the SDK bundle you will see opt_out_persistence_by_default set on every init. That is a different setting: it only keeps browser storage off for a visitor who has opted out, and it opts nobody out.

How do I hold analytics until a visitor consents?#

Pass optOutCapturingByDefault: true in analytics.init. Until the visitor agrees, nothing is sent and nothing is written to the browser's storage.

  1. When the visitor accepts, call analytics.optInCapturing().
  2. If they later withdraw, call analytics.optOutCapturing(). Nothing new is sent after that, also after a reload. What stays in storage is listed in "Does the analytics SDK write cookies or local storage?".

Call both only after analytics.init has run. Before it they do nothing and log a [HeyCatch] warning in the console.

Calling analytics.optOutCapturing() stops the SDK from capturing new events. If our ingest host cannot be reached at that moment, the SDK retries requests already in the queue up to 3 more times, with pauses of about 3, 6 and 12 seconds, so you may see requests for roughly 20 to 40 seconds after opt-out. Those requests contain only events captured after consent and before opt-out. There is currently no supported way to discard the queue. beforeSend runs only when an event is captured. Setting requestBatching: false removes the batching delay and leaves retries in place. The SDK keeps the queue only in memory. When the page is hidden or closed, the SDK sends each queued request once more and clears the queue.

Since SDK 0.8.5 your own utm_source and utm_campaign stay in the address: the SDK removes only the tags HeyCatch adds, and only after consent, so the session keeps its source when consent comes later. On an older version, update to 0.8.5. A consent_granted event you added to carry the tags over is then no longer needed.

Can I exclude my logged-in or sensitive pages from analytics tracking?#

Not by page address. Once init runs, automatic capture applies across the app, and there is no route allowlist or blocklist to set. One thing does work inside a page: add the class ph-no-capture to an element, for example the container of your logged-in area, and clicks and form submissions on it and everything inside it are not captured. Pageviews of those pages are still recorded.

What you can do is hold all capturing until a visitor consents, or switch off the text of clicked elements or the automatic capture of clicks: see "How do I hold analytics until a visitor consents?" and "Does the SDK record the text on the buttons my visitors click?".

To keep your own visits out of your numbers, see "How do I exclude my own visits from analytics?".

If excluding your authenticated area is a hard requirement, tell us and we will treat it as a blocker rather than sell you a workaround.

How do I exclude my own visits from analytics?#

There is no filter for this: you cannot exclude a person, a browser or an IP address in HeyCatch, and visits already recorded stay in your numbers. What you can do is stop your own visits from reaching us from now on, in one of these ways.

  1. Block in.heycatch.ai in your own browser. The SDK sends to that one host, so a custom rule in an ad blocker keeps your visits out. In uBlock Origin or Brave Shields the rule is ||in.heycatch.ai^. Add it on every browser and device you use, and only after your install is confirmed, because "I've installed" needs a visit that reaches us.
  2. If your site has a consent banner and starts with optOutCapturingByDefault: true, decline it in your own browsers. Nothing is sent until someone accepts: see "How do I hold analytics until a visitor consents?".
  3. If your app has sign-in, your coding agent can call analytics.optOutCapturing() after init for your own accounts. Visits before you sign in are still counted.

A browser rule does not cover a native mobile app. Test and staging addresses are a separate case: see "Why does the install ask for my domains?".

Is my analytics project key a secret? Should I keep it out of client code?#

No, it is publishable by design. It starts with hck_pk_ and is inlined in your client bundle, where anyone viewing your site can read it. Treat it like a public analytics id rather than an API secret. There is no environment variable to set for it.

Is the analytics data processed by an AI model?#

Yes. The event stream is summarised by a large language model to produce the per-user and per-session narratives you see in the dashboard. We route it through OpenRouter to leading commercial models and do not disclose the specific models. OpenRouter is named on our published sub-processor list. The data is never used to train models, and providers may keep prompts for a limited period for abuse prevention. The AI cannot be switched off for a project, because it is the core of the service. If that is not acceptable in your environment, weigh it before you install rather than after.

How do I uninstall the SDK, and what happens to the data it collected?#

To uninstall: remove the package and the init call, plus the redirect rule if you added one for short links.

On the data: end-user analytics collected by the SDK are collected only while your subscription is active. After the subscription ends they are kept for 2 months so you can reactivate, then deleted or irreversibly anonymised, unless you reactivate or ask for earlier deletion. Deletion on request goes to support@heycatch.ai. The DPA and the sub-processor list are published on our site.

One of my own users asked me to delete their data. How do I do that?#

Email support@heycatch.ai with that person's user id or email address and we delete their data. There is no control for it in the dashboard.

Their profile and sessions are cleared from HeyCatch as soon as the request is accepted, and only a hash of the id stays, so they are not added back. There are 48 hours to undo it. After that the deletion goes to PostHog, where the events are stored, and it usually finishes within a day.

If you need to do this regularly, for example because you ship on the App Store or Google Play, where an in-app account-deletion path is a store requirement, ask support for a Deletion API key. We issue it individually, on request.

How long do you keep analytics data, and how is deleted data handled in backups?#

Analytics about your visitors is collected while your subscription is active. After the subscription ends it is kept for 2 months so you can reactivate, then deleted or irreversibly anonymised, unless you reactivate or ask for earlier deletion. The 2 months are the same for every project and cannot be changed.

Deletion on request goes to support@heycatch.ai and is completed within 30 days of the request. We keep daily database copies for 30 days and a monthly copy for 12 months. Our hosting provider keeps its copies for 7 days. The DPA and the sub-processor list are published on our site.

Where is my data stored, and do I need to sign a DPA?#

In the United States: the database on DigitalOcean, analytics on PostHog US Cloud and hosting on Vercel. We do not offer EU or UK data residency. The full list is at heycatch.ai/subprocessors, and we give 30 days' notice of additions or replacements.

The DPA at heycatch.ai/dpa applies automatically, without signature, so there is nothing to sign. Transfers from the EU and UK rely on the Standard Contractual Clauses and the UK Addendum in the DPA. We are not certified under the EU-US Data Privacy Framework, and we do not have SOC 2.

Last updated 2026-12-03 · Read this page as markdown · Questions? Press Ask AI, use Support chat in the app, or email support@heycatch.ai