# PulseAI page tag

The page tag is one line of HTML. It does two things your server-side collector cannot:

1. **Estimates browser visits**: visitors, sessions, page views, engagement rate, engagement time, channels, landing pages and devices, with definitions that can help comparisons with GA4.
2. **Looks for automation signals in a real browser.** Browser agents can send the same headers a person's browser sends. The tag adds evidence from how input physically arrives.

Use it together with a collector. The collector can record requests in its collection scope, including crawlers that never run scripts. The tag records pages where it runs and successfully delivers a message. Visits without enough automation evidence are **Estimated human**, not verified people, and can include unrecognized AI browser agents.

## Install

Verify your domain in the dashboard first. Then add this before `</head>` on every page, replacing the ID with the Website ID shown under Connections:

```html
<script async src="https://pulseaianalytics.com/pulse.js" data-site="YOUR_WEBSITE_ID"></script>
```

The Website ID is public; it is not your ingestion key. Never put the ingestion key in a page. The receiver only accepts page views sent from pages on your verified domain or its subdomains, and only while your subscription is active. Each page view counts as one event toward your monthly allowance.

If your site sends a Content-Security-Policy, allow `https://pulseaianalytics.com` in `script-src` and `connect-src`.

Open your site, then open **Visitors** in the dashboard. Your own visit appears within a minute.

## How browser agents are recognized

An agent that controls a browser can produce "trusted" events and leave the automation flag unset. The behavior thresholds were informed by one recorded agent harness; catch rates and false-positive rates on real traffic are unmeasured.

The current rule flags a session when any one of these is present. These are signals of suspected automation, not proof; for example, a person using a corporate cloud gateway can trigger the network rule:

| Signal | What it means |
| --- | --- |
| `synthetic_pointer_input` | A click arrived with zero pointer pressure, or with a screen position identical to its page position even though the browser window has a toolbar. These differ from the physical-mouse values used to design the rule. |
| `input_while_hidden` | A click or key press arrived while the page was not visible. |
| `webdriver_flag` | The browser itself reported that automation software controls it. |
| `datacenter_network` | A desktop browser connected from a cloud hosting network such as AWS, Azure or Google Cloud. Added by PulseAI's receiver from its own edge, never by the page. |

Two different ones of these are needed. Each can have a non-agent cause; their frequency has not been measured:

| Signal | What it means | Innocent cause |
| --- | --- | --- |
| `click_without_pointer_travel` | The first click on the page came with no pointer movement before it. | The pointer was already resting on a button when the page loaded. |
| `instant_press` | Button pressed and released within 8 milliseconds. | Some touchpad taps. |
| `text_without_keystrokes` | Four or more characters appeared in a field at once, with no key press. Pastes, autofill, voice input and IME composition are excluded. | Dictation software. |
| `machine_speed_typing` | Nine characters typed with a median gap under 12 milliseconds. | A barcode scanner. |

When enough behavior signals arrive, the receiver flags the current page, the session's starting page and up to 20 recent page-view IDs from that session. Flagged page views are excluded from Estimated human totals and shown under browser agents. Older pages in longer sessions or missed updates can remain in the estimated totals.

**What this cannot do.** Behavior suggests software control; it does not prove it or identify a company. A browser's own name is a claim; cryptographic or network verification is separate evidence. An agent that only reads a page and never clicks or types leaves no input behavior to observe. A hosting-network signal or recognized agent claim may still flag it, but a quiet agent can remain unrecognized. Agents can imitate human input. Treat both the flagged and Estimated human groups as estimates.

## How the visitor numbers are defined

The tag uses a 30-minute session timeout and a 10-second or second-page engagement rule to support comparisons. Its visitor estimates are not equivalent to GA4 Active users, and its channel rules are a simplified mapping from referrers and campaign tags.

| Number | Definition |
| --- | --- |
| Page view | A page that loaded in a browser, plus each path change in a single-page app. Prerendered pages count when shown. |
| Session | Starts with the first page view and ends after 30 minutes without one. It does not restart at midnight or when the campaign changes. |
| Engaged session | In view for 10 seconds, or two or more page views. |
| Engagement rate | Engaged sessions divided by sessions. Bounce rate is the remainder. |
| Avg. engagement time | Time the page was actually in view, per session. |
| Visitors | Estimated browsers in the selected period, inferred from first-visit and previous-visit facts sent by the tag, after flagged page views are excluded. |
| Channel | A channel inferred from the referrer and `utm_source` / `utm_medium`, with AI assistants as their own channel. |

Differences to expect when you compare with GA4:

- Flagging automation can reduce PulseAI's Estimated human totals. Unrecognized agents can remain, and false positives can exclude people.
- Consent settings can change what either tool records. PulseAI sets no cookie but uses localStorage.
- These are estimates from received tag messages, not exact counts of people. Cleared or unavailable storage, multiple devices or browser profiles, missing messages and simultaneous tabs can affect visitor and session totals.
- The tag does not record key events such as purchases or sign-ups, so its engagement definition is incomplete for that comparison.
- Days are UTC in PulseAI; GA4 uses the property's configured time zone.
- A blocked tag cannot record a visit. A collector may still record the request if it falls within that collector's scope.

## What is and is not sent

The tag keeps visit-day facts, a session clock, page-view IDs, engagement state and signal names in the browser's own `localStorage`. It creates no persistent visitor ID. Per-page IDs and the session's starting page ID are sent so the receiver can update engagement and link flags to recent pages in that session. Each message also includes:

- the page path (query strings removed; IDs and sensitive segments masked on receipt);
- yes/no facts: new session, first visit today, new visitor, and the number of days since the previous visit;
- the referring site's hostname and `utm_source` / `utm_medium`, which the receiver reduces to a channel name and discards;
- device type, time in view, and the signal names above.

The telemetry payload excludes cookies, a persistent visitor or device ID, IP addresses, anything typed, page text, click positions, full URLs and the user agent. Browsers still send ordinary request metadata; the receiver uses the user agent for classification without storing it or client IP addresses in the events. Country comes from the hosting edge as a two-letter code.

The tag uses the browser's storage, which some jurisdictions treat like a cookie. Check what your privacy notice and consent rules require where you operate.
