BidirectionDocs
Open the console

Install the script on your site

One tag before the closing body tag. We confirm it from a real heartbeat.

Agent & personaIntegration

One script tag. No other code changes, no tagging plan, no per-page work.

Install it#

  1. Open the agent's Agent & persona page and follow the Integration card.
  2. Copy the snippet. It carries this agent's own publishable key.
  3. Paste it just before </body> on every page the agent should cover.
  4. Deploy, then load one of those pages yourself.

How we confirm it#

From a real heartbeat. When we see the widget load on your verified domain, the Integration card turns green by itself and the status refreshes every few seconds. Installation is never marked done from a checkbox you tick.

That same heartbeat can verify a pending domain for you. See Verify your domain.

If it says "Nothing yet"#

Load a page of your site that carries the tag and give it a few seconds. If it never turns green, check in this order:

  1. The tag is before </body>, not in the head.
  2. The page you loaded is on the verified domain — not a staging host, not localhost.
  3. No script blocker or consent banner is stripping it before it runs.
  4. The page actually shipped — view source on the live URL and look for the tag.

Installing before you launch#

Installing and going live are deliberately separate. A draft agent's script sits silently on your pages — it reports the heartbeat and does nothing else. You can install on Monday and launch on Thursday.

What the script does#

It tracks the visitor journey — page views and SPA routes, dwell and scroll depth, clicks, form start and abandon, search and downloads, UTM and referrer — and runs the call itself. Raw events fold into a journey state on our side; the model never sees your raw event stream.

You can also drive it from your own code with window.benchAgent: track, identify, setContext, open and close.