Set up Visitor Fast

Add one script, send the events you care about, connect payments, and read everything back over the API.

Install the script

Add your website in the workspace and copy its script. Paste it before </head> on every page and deploy. The site switches to “Verified” after its first real pageview, or click Verify installation to check right away.

<script defer src="https://visitorfast.com/js/script.js" data-site="YOUR_SITE_KEY"></script>
  • Single-page apps are tracked automatically on route changes.
  • The registered domain, its www alias and subdomains are accepted; add other domains in Settings.
  • With a Content Security Policy, allow https://visitorfast.com in both script-src and connect-src. If only connect-src is missing, events still arrive through an image request when img-src allows https, but identify calls need connect-src.

Custom events

Send an event after something meaningful succeeds. Turn it into a goal on the Goals page to see its conversion rate.

window.vast.track("signup_completed", { plan: "growth" });
window.vast.identify("user_123", { name: "Ada" });

No code? Add data-vast-goal to any button or link and every click is sent as that event. Extra data-vast-goal-* attributes become its properties.

<button data-vast-goal="add_to_cart" data-vast-goal-product="pro_plan">Add to cart</button>

Revenue attribution

Revenue is only ever recorded from a trusted server, never from the browser. Each payment is credited to the first-touch source, campaign and landing page of the visitor who paid. There are three ways to send it:

  1. Connect your provider (recommended). In Settings → Revenue, choose Stripe, Dodo Payments, Lemon Squeezy, Paddle, Polar, Shopify or WooCommerce and paste an API key; the webhook is created in your account automatically. You can also add the webhook yourself and paste its signing secret, which lets Visitor Fast prove each payment really came from your provider. Keys and secrets are encrypted at rest.
  2. Pass the visitor ID at checkout. Read window.vast.visitorId on the page, send it to your server, and put it in the checkout metadata as vast_visitor_id. For Stripe subscriptions, also set it on subscription_data.metadata so renewals are attributed.
  3. Or use the API from your backend after verifying your provider's webhook: POST /api/v1?resource=payments with a payments token (see below).
// Stripe: create the Checkout Session on your server
await stripe.checkout.sessions.create({
  mode: "payment",
  line_items: [{ price: "price_123", quantity: 1 }],
  metadata: { vast_visitor_id: visitorIdFromThePage },
  success_url: "https://example.com/thanks",
});

Refunds sent by the same webhook reduce the attributed revenue. Currencies are kept separate.

REST API

Create a website-scoped token in Settings → API. Tokens are hashed at rest, expire after 90 days and are shown once. Give each token only the permissions it needs: read, events, payments or manage.

curl "https://visitorfast.com/api/v1?resource=overview&since=2026-10-01T00:00:00Z" \
  -H "Authorization: Bearer vast_…"
  • GET resource= overview, visitors, events, payments, bots, settings, goals, funnels, notes, segments, alerts or keywords. Lists return 100 rows per page (up to page 1000); since defaults to 24 hours ago and reaches back at most 400 days. A refund's paymentId is the id you sent with the payment.
  • Overview includes revenue_minor: revenue per currency in minor units (cents).
  • POST resource=events with id, visitorId, sessionId, event, path, properties sends a server-side event (events token).
  • POST resource=payments with id, visitorId, amount, currency, at records a verified payment (payments token). The visitor must already exist on the website.
  • POST resource=refunds with id, paymentId, amount records a refund.
  • IDs are deduplicated, so retries are safe. Errors return JSON with an error message and a 4xx status.
curl -X POST "https://visitorfast.com/api/v1?resource=payments" \
  -H "Authorization: Bearer vast_…" -H "content-type: application/json" \
  -d '{"id":"order_123","visitorId":"…","amount":4900,"currency":"USD","at":"2026-10-14T10:00:00Z"}'

Script options

  • data-hash="true", data-scroll="true", data-outbound="true" track hash routes, scroll depth and outbound links.
  • data-storage="none" keeps the visitor ID in memory only.
  • data-cookie-domain and data-domains keep one visitor across subdomains and allowed domains.

X (Twitter) attribution

Every visit that arrives from X is attributed as the source x.com the moment it happens, on every plan. That includes links wrapped by t.co and older twitter.com links, so X traffic, signups and revenue show together under Sources and Reports.

On Growth (and during the free trial), open Settings → Integrations → X (Twitter):

  • Mentions. Posts that link to your website are tracked automatically. Add up to 10 keywords such as your brand, product or @handle (4–15 characters, not case sensitive). Each post appears as a marker on the main chart; hover it to read the post next to that day's traffic and revenue. Reports lists them with likes, reposts, visitors and revenue.
  • Post attribution. Every link in a post is wrapped by X as a unique t.co link. Visitor Fast keeps that link for visits from X and matches it to the post, so visitors and revenue are credited to the exact post in the X posts tab next to Source on the dashboard. No UTM tags needed.
  • Link in bio. Add handles whose profile links to your website (your own or an affiliate's) to credit profile clicks as well.

New posts are pulled when you open the dashboard or Reports, at most every five minutes, and once a day in the background. X search covers the last seven days, so connect it early. If Settings asks for a bearer token, create an app with recent search access on the X developer portal and paste its bearer token. Visits opened inside the X mobile app sometimes arrive without the t.co link; they still count as x.com.

AI crawlers

See when ChatGPT, Claude, Perplexity, Google, Meta, Apple, ByteDance, Amazon, Common Crawl and other AI crawlers read your pages, next to search engines such as Googlebot and Bingbot. The AI crawlers card on the Overview dashboard (and in Reports) shows requests by crawler, the pages they read, crawler files such as robots.txt, llms.txt and sitemaps, and a daily trend. Crawlers never count as visitors or toward your event allowance.

Requests are grouped into AI answers (an assistant such as ChatGPT-User or Claude-User opened the page to answer someone), Indexing (search and answer indexes such as OAI-SearchBot, PerplexityBot and Googlebot), Training (GPTBot, ClaudeBot, CCBot and other model-data crawlers) and Other (link previews and unidentified bots). Switch on Verified only to count just the requests whose IP address matched the crawler. In Settings → Tracking → Crawlers to record, turn off any company you do not need; its requests are skipped and use none of your allowance.

Snippets that can see your response (Cloudflare Workers, Netlify, Node and Express, WordPress) also send its HTTP status, so pages that answer crawlers with a 404 or another error are flagged in the card. Next.js and Vercel middleware runs before the page, so those requests have no status. The AI crawler directory lists every crawler Visitor Fast recognises, with its purpose and how it is verified.

Most AI crawlers do not run JavaScript, so add the small server snippet from Settings → Tracking (Next.js, Vercel, Cloudflare Workers, Netlify, Node and Express, WordPress, or any server). It sends one request per crawler page view to POST /api/crawl with site, url, ua, the crawler's ip and an optional country, and ignores human visitors. Each IP is checked against the addresses OpenAI, Anthropic, Perplexity, Google, Microsoft, Apple and DuckDuckGo publish (and reverse DNS for Amazon, Yandex and Baidu): matches are marked verified, impostors are marked fake and left out of reports and your allowance. Every plan includes 100K crawler requests a month across your websites, counted exactly; after that, new crawler requests are paused until the next month. Bots that do run JavaScript are recorded by the tracking script as well.

Plans and limits

New accounts get a 7-day free trial with every feature, for up to 10,000 events. Plans are priced by monthly events. Above your allowance, collection continues and reports ask you to upgrade; nothing is lost. See pricing.