How can I stop tracking/re-initialize heap in certain pages in a single page application? I need to configure ‘disableTextCapture’ based on pages.
Best answer by jonathan
View originalHow can I stop tracking/re-initialize heap in certain pages in a single page application? I need to configure ‘disableTextCapture’ based on pages.
Best answer by jonathan
View originalHi Sujan, did you see Using Heap With Single Page Application (SPA) Websites?
Yes, but I couldn’t find anything useful for my problem.
Hey
There’s currently no way to change the `heap.config` outside of calling `heap.load`, and you can’t call that twice in the same js context. We don’t currently support arbitrarily changing the privacy configs from the client after Heap loads for security reasons. However, I’ve shared this feedback with the heapjs team for future development consideration.
Thank you
heap.loaded = false
flag is not respected anymore?
Running heap v4.19.3, setting this flag does stop all requests to the usual https://heapanalytics.com/h endpoint. However, auryc.worker.js
keeps sending data to mt.auryc.com/v1/event.
I’d really like to unload Heap altogether when my records show a customer has asked to opt out of any behavior tracking.
It sounds like your use case would be better solved with a cookie consent tool or similar behavior, where Heap is gated behind consent and conditionally loaded on that basis. Typically, when consent is revoked, those tools refresh the page and simply don’t load the snippet. That would be my recommendation.
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.