Skip to main content
If your users must accept a cookie banner before tools run in their browser, load the HelpAlive tag only after they accept. HelpAlive has no consent mode of its own, so your banner decides when the tag loads. After the tag loads, HelpAlive records activity in the page but sends it only after identify() runs. If identify() never runs, HelpAlive drops that activity, as Identify users describes. But if someone signed in earlier in that browser and your logout code didn’t call reset(), HelpAlive may send it as that person. HelpAlive doesn’t read Do Not Track or Global Privacy Control signals.

Prerequisites

  • A cookie banner or consent tool that tells your code when a user accepts or declines.
1

Hold back the tag

Leave the HelpAlive tag out of your page’s HTML. Add it from your code only after the user accepts, with the same attributes as in Install the script.
2

Keep identify() and reset() as they are

Keep the four queue lines from Install the script, and your identify() and reset() calls. Calls made before the tag loads wait in the page and run after it loads.

Example: add the tag when the user accepts

Call this from your banner’s “accepted” callback. This code adds the same tag as Install the script, but never adds it twice:
Replace YOUR_PROJECT_KEY with your key from Settings → Setup & API Key. If your Content Security Policy uses a nonce, set it on the tag too, as Content Security Policy describes.
Without the tag, no part of HelpAlive runs, so the agent doesn’t appear for a user who declines. To keep the agent away from some users, leave them out of Who gets it on Controls. To stop recording one user’s usage events, use Stop tracking on Settings → Privacy Management.
When your banner reports that a user withdrew consent, run this on the page:
Then stop adding the tag on later page loads, as in Make HelpAlive wait for consent. If the user accepts again, add the tag again.
  • Before the user accepts: the tag isn’t on the page, so HelpAlive sends nothing and shows nothing. Your four queue lines hold any identify() or reset() calls in the page.
  • After the user accepts: the tag loads and runs the waiting calls. Then the chat button appears for users in Who gets it.
  • If the user declines: the tag doesn’t load, so the agent doesn’t appear for that user in that browser. This lasts until your banner reports a change.

Check it works

  1. Open your app in a private window with the browser’s developer tools open on Network. Filter on helpalive.
  2. Sign in and decline in your banner. No HelpAlive request appears.
  3. Accept in your banner. The script loads, and the chat button appears for users in Who gets it.

Next

Data we collect

What HelpAlive records, and what it doesn’t.

Privacy Management

Stop tracking or delete a user’s data.

JavaScript reference

Every call your code can make.
Last modified on November 25, 2026