Installing the script
You’ll find your organization’s tracking script and its setup status on your Website Visitor trigger: open Triggers, go to that trigger’s Configuration, then the Script tab (if you don’t have one yet, create it at agent.getswan.com/triggers/new?type=NEW_WEBSITE_VISITOR). Add it to your site the way you’d add any tracking snippet — directly in your site’s HTML, through Google Tag Manager, or through your site builder’s custom-code/embed option (most no-code platforms support this). The script is tied to your organization, not to a specific page, so one install covers your whole site. If you already run a visitor identification pixel, remove it first. Swan’s script includes RB2B’s pixel, and RB2B only supports one instance per page — with both installed, whichever loads first wins and the other silently stops reporting, with no error to tell you which. See replacing a visitor identification tool.Domain allowlist
The script only reports visits from domains you’ve explicitly allowed. Add every domain and subdomain you want tracked, under Allowed Domains on the same Script tab — a script installed on a domain that isn’t on the allowlist won’t report any sessions. If you change your primary domain, re-add it to the allowlist; the previous one isn’t automatically replaced.What you can configure
These live on the trigger’s Configuration → Settings tab:- Excluded paths — specific paths on your site (for example, an internal admin area or your careers page) that should never generate a tracked session.
- Allowed country codes — restrict tracking to visitors from specific countries. Leave this empty to track visitors from anywhere.
- Minimum session time — a visit has to last at least this many seconds before Swan will attempt to identify it, which helps filter out bounces and bots. There’s no minimum enforced by default.
- Identification mode — choose whether Swan tries to identify every visitor, including anonymous company-level matches from their IP address, or restricts identification to visits it can already tie to a known contact.
- CRM exclude lists — companies belonging to lists you choose (for example, existing customers or a do-not-contact list) are filtered out before they can qualify a visit for your trigger.
- Daily identification limit — a cap on how many visits get identified per day, defaulting to 1,000. Your plan may impose a lower effective cap than the one you set here — whichever is lower wins.
Sending a custom visitor ID
If your site already knows who the visitor is — they’re logged into your product, or arrived from a link carrying your CRM ID — you can pass that identifier to Swan alongside the visit. The install snippet Swan gives you already includes a commented-outswan.eId line for exactly this: uncomment it and set your identifier before the script loads. With that line filled in, the full snippet looks like this: