Personyze Wiki Personyze Wiki docs
English
Open Personyze
Docs/ Start Here/ Activating Personyze On Your Site
Start Here

Activating Personyze On Your Site

Important: Do NOT use these codes interchangeably.

7 min read Updated 5 days ago

How to Install Personyze on Your Website

UI path: Tracking Code in the Personyze left menu. Until your first visit arrives it has its own entry (</>); after that it is under Settings › Tracking Code.

Installing Personyze is two steps: tell Personyze which domains you personalize on, then drop the tracking snippet on those pages. Once the snippet is live, Personyze can recognize visitors, track engagement, and deliver personalization.

The Tracking Code screen is also your health check. A banner at the top tells you whether the tracker is firing, when the last visit was, across how many domains, and how many visits were logged in the last 90 minutes. Below it, every domain is listed with its last activity and a 90-minute sparkline, and you can filter by All / Active / Idle / No recent visits to find domains that have gone quiet.

The Personyze Tracking Code screen showing the tracker status banner, domain filters, and the list of domains under tracking
Tracking Code: the status banner confirms the tracker is firing and how many visits came in over the last 90 minutes. Each domain row shows its last activity, a 90-minute trend, and per-row actions on the right.

Step 1: Add the Domains You Track

Click + New domain and give Personyze the root page URL — the homepage it will use to detect tracker status. It must be reachable from the public internet.

Two options shape how visitors are counted:

  • Include subdomains — track visitors across *.example.com as one user. Turn this off if your subdomains serve unrelated products and shouldn’t share a visitor profile.
  • Tracked domains — add any other hostnames that should share the same user profile. Visitors moving between these domains are recognized as one person, which is what you need when, for example, your checkout lives on a separate host.
The Add new domain panel in Personyze with the root page URL field, include subdomains option, and tracked domains list
Add new domain: enter the public root page URL, decide whether subdomains share one visitor profile, and list any additional hostnames that should be treated as the same person.

Add every domain you personalize on. The code itself can cover them all at once: in the next step, For: All domains gives one code to paste on every site of this account.

Step 2: Install the Tracking Code

Press Get code in the status banner at the top. Each domain row also has its own white Get code button: both open the same drawer, the banner’s on all domains and a row’s on that domain.

  • For — All domains gives one code to paste on every site of this account; a single domain gives that domain its own code. Switch between them here.
  • How the code loads — two choices:
    • Anti-flicker (recommended) — a small part of the code runs before your page appears, and holds only the parts your campaigns change. They wait for their new content, usually around 200 ms, then appear already changed: visitors never see the original first. If it is slow to come, they show the original, so nothing stays blank.
    • Fastest load — the whole code loads in the background, so nothing on your page waits for it. Where a campaign changes something, visitors may see the original content for around 200 ms, then see it change.

    Your choice is saved as soon as you make it, for every domain on the account (it is the Anti-flicker setting in Site profile). If you change it once the code is on your site, the drawer tells you to copy the code again and replace the one on your site.

  • Copy code copies it; Show the code unfolds it. “Paste it into your site’s <head> on every page.” The code is safe to include more than once — duplicates are detected.
  • Add exclusions for page-speed plugins — tick it if your site uses WP Rocket, LiteSpeed Cache, Cloudflare Rocket Loader or a similar plugin that delays scripts. It adds the attributes those plugins read to leave the code alone. Some of their features still need the code excluded in the plugin’s own settings — see Exclude Personyze from caching and optimisation below.
  • Send it to whoever manages your site opens an email from your own address with the code in it, ready for your developer.
  • Use Google Tag Manager? — Connect Google Tag Manager and Personyze adds its tag to a container for you, with no copy-paste; you review and publish it in GTM. See Google Tag Manager.
  • Step-by-step guides: Raw HTML, Google Tag Manager, Shopify and WordPress.

Where to Put It

  1. Master page header (recommended). Place the snippet inside the <head> tag, as high as possible — ideally right after your charset declaration and essential meta tags. Placing it lower delays personalization and makes flicker more likely.
  2. Tag manager. You can deploy the snippet through your tag management system. Configure it to fire as early as possible to minimize that delay. A tag manager’s tag runs once the tag manager has loaded, after the page has begun to draw, so a campaign that replaces content may show the old content for a moment; to avoid any flicker, paste the code into the <head> instead.

For platform-specific instructions, see Setup by Site Type — Tracking, Feeds & Integrations.

Verifying the Installation

Go back to Tracking Code and check the domain’s row. The Last activity column shows when Personyze last logged a visit from that domain, and the sparkline shows the last 90 minutes. If a domain you’ve just installed on shows No visits in last 90 min, the snippet either isn’t on the page, isn’t firing, or is on a different hostname than the one you registered. The No recent visits filter lists every such domain at once. Once visits arrive, the banner says Tracker is firing.


Exclude Personyze from caching and optimisation

Whatever else you install, keep Personyze out of your caching, minification and
“speed” tooling
. The library has to load and decide before the visitor sees the page. A
tool that delays it, bundles it, or serves a cached copy of its output turns personalization into something that
arrives late — or never.

The symptom is unmistakable: nothing personalizes until the visitor moves the mouse. That is a
delay-JavaScript rule, not a broken tag. Most optimisation tools hold every script until the first interaction —
and a visitor who bounces never interacts, so the people you most wanted to reach are exactly the ones who see the
unpersonalized page.

What to exclude

Three strings, in whatever the tool calls its exclusion list:

_S_T
stat-track-lib
counter.personyze.com
Entry What it covers
_S_T The inline snippet, matched by its content. The one that actually matters — the other two are external files and are never requested without it.
stat-track-lib The tracker library itself.
counter.personyze.com Everything the tracker fetches afterwards from that host — your account’s compiled bundle and the chat widget.

Settings are named differently from tool to tool. Look for delay JavaScript, defer,
combine and minify, and exclude the same three strings in each. If JavaScript
minification or combination is on, add counter.personyze.com to that exclusion too — folding a
third-party tracker into a bundle is a common way to break it silently. Leave lazy-loading and CSS options alone; they
are irrelevant here.

How to check it worked

Open the page in a fresh tab and, without touching anything, run this in the browser console:

window._S_T && _S_T.uid
Before the exclusion it returns undefined until you move the mouse. After it, the visitor ID
immediately
— a number for an ID that fits in 32 bits, the digits as a string for a longer one (see Visitor IDs). That is the whole test — and the reason to run it before touching the page, since any
interaction releases the delayed scripts and makes a broken setup look fine.

The Add exclusions for page-speed plugins box in Get code does part of this for you: it marks the code so those plugins leave it alone. A plugin’s delay-JavaScript or combine settings may still need the three strings above.

Using WordPress? The exact WP Rocket settings are on the
WordPress plugin page.

Personalizing Single-Page Applications (SPAs)

In a single-page app the URL changes without a full page reload, so Personyze needs to know which URL changes should count as a new page view — that’s what triggers new personalization actions and dismisses ones that no longer apply.

Open Single-page app settings above the domain list and choose which parts of the URL count:

  • Path changes — e.g. /shop → /shop/shoes
  • Query changes — e.g. ?color=red → ?color=blue
  • Fragment changes — anchor or hash routes, e.g. #cart
The single-page app settings popover in Personyze with path, query, and fragment change options
Single-page app settings: tick the URL changes that should register as a new page view. If your app routes with hashes, enable Fragment changes; if filters live in the query string, decide whether each filter change is really a new page view.

For more detail, see the One-Page Applications guide.


Cross-Domain Tracking

Personyze can track visitors across multiple domains automatically, so a person moving between your sites is recognized as one visitor rather than several. The Tracked domains field when adding a domain is what links those hostnames to a single user profile.

For the full setup, see the Cross-Domain Tracking Guide.

Get an AI plan for your site

Inspire me reads your website and suggests the personalization campaigns to run first, and who should see each one. Free.

Scan your site
Did this page answer your question?
Thank you — that goes to whoever maintains this page.