# Influence Thread
> Asks B2B buyers how they found and chose you, from their first visit until after they sign. Free during the beta. Built by Mark Barrera (https://markbarrera.com).
Influence Thread asks B2B buyers how they found and chose a company, at four points:
- Arrival from an AI assistant (ChatGPT, Perplexity, Claude, Gemini, Copilot): one question, "What were you asking it?"
- Arrival from LinkedIn: one question, "What brought you here from LinkedIn?", with fixed choices (one of our posts, someone else's post or comment, a message someone sent, something else) and an optional "which one" in their own words. No list of posts to maintain. If the visitor skips it, a short welcome note can show instead.
- Arrival from Google search: "Had you heard of us before you searched?" Yes asks where they first heard. No asks what they searched for.
- Direct or unknown arrivals: tap choices after a few seconds. A homepage landing gets "Where did you first hear about us?" and a deeper page gets "How did you find this page?"
- Arrival from a paid ad: a short note with buttons the site owner chooses. No question.
- Right after a form is sent: "How did you first hear about us?" plus one follow-up picked by fixed rules from the answer. A site can add one optional second question, such as "What are you hoping to get from this?" No AI writes what visitors see. Someone who already answered gets "What stood out to you so far?" instead.
- After a customer signs: a three-minute interview sent by email or shown after the contract is signed. The customer types or talks and checks the written version before it is saved. Audio is never kept. Not built yet. During the beta, Mark Barrera runs these interviews by hand.
Limits: at most one question per visit, never the same question twice, a skipped question waits 60 days, and no visitor is asked more than three times. It does not identify anonymous visitors.
## Join the beta (people and agents)
The install line only works with a site key, and a site key comes from joining. An agent can do the whole join on a person's behalf. Only the person can click the confirm link in their email, and Mark Barrera approves each site during the beta.
1. Join. Send JSON to `POST https://influencethread.com/api/beta`:
```json
{"action": "signup", "name": "Dana Ruiz", "email": "dana@acme.com", "site": "https://acme.com", "decision": "What they would decide with the answers (optional)"}
```
Use the person's own work email, and the site where the script will run. The reply looks like:
```json
{"ok": true, "site": "acme-com", "status": "pending", "install": "", "check": "https://influencethread.com/api/it?site=acme-com&status=1", "confirm_sent": true, "next": "..."}
```
2. Install. Add the `install` line to the site now. While the site is pending, the script reports that it is installed and shows previews, but asks real visitors nothing. The key only works on the domain that was signed up (with or without www).
3. Confirm. The person clicks the link in the email from Mark Barrera (subject "Confirm your Influence Thread beta sign-up"). Mark gets the sign-up at the same time and approves it, usually within a day. The site goes live when both are done.
4. Check. `GET` the `check` URL. It returns `status` (pending or live), `email_confirmed`, `approved`, `seen` (when and on which host the script last reported in, or null), `next` (what is left, in plain words) and `previews` (links that show each question on the site without real traffic). It never returns the email or any answers.
Signing up again for a site that already has a key returns the same key. A retry from the same email resends the confirm link. Sign-ups are limited per connection. In the browser console, the script says when a key is unknown or still pending.
## Install
Add one line before the closing body tag. The site key comes from joining (above).
```html
```
- Sites with a cookie banner: add `data-consent="wait"` to the tag. The script stores nothing, sends nothing and shows nothing until the consent tool calls `InfluenceThread.consent(true)`. `InfluenceThread.consent(false)` stops it and clears its browser storage. Off by default.
- Holdout (optional): every eligible visitor can be asked by default. A site can set a share of visitors who are never asked, to compare them with visitors who were. `/api/it?site=your-site` returns that share as `holdout` (0 by default).
- Preview what a visitor sees, without real traffic: add `?it_preview=chatgpt`, `perplexity`, `claude`, `gemini`, `copilot`, `linkedin`, `linkedin-note`, `ad`, `direct`, `search`, `podcast` or `submit` to a page URL.
- Ask manually after a custom form: `InfluenceThread.ask()`.
- Answers are kept 12 months, or deleted sooner when the site owner asks.
- Events: the script dispatches an `influencethread` window event with `{name, props}` for analytics tools.
## Links
- [Home](https://influencethread.com/)
- [Try it](https://influencethread.com/demo)
- [Join the beta](https://influencethread.com/#join)
- [Privacy](https://influencethread.com/privacy)