One snippet makes Personyze operational: it recognizes visitors, tracks engagement, and delivers every campaign. This page covers getting the code, the install route for each platform, and verifying it fires.
Two short videos: installing the code on a new account, and the one-minute version.
From “One step left” to Get code: For, how the code loads, the page-speed box, Copy code, Send it to whoever manages your site, Google Tag Manager and the step-by-step guides, then the store with the code in place and Tracker is firing.
Get your code, the other ways in (send it to your developer, or connect Google Tag Manager), and knowing that it works.
Get your tracking code
In the panel, open Tracking Code (in the left menu until your first visit arrives, then under Settings › Tracking Code). Add every domain you personalize on, then click Get code in the status banner. In the drawer, For chooses the code: All domains gives one code to paste on every site of this account, or pick a single domain to give it its own code. Each domain’s row has its own Get code too, which opens the drawer on that domain.

How the code loads offers two choices. It is saved as soon as you choose, for every domain on the account:
- 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; 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 waits for it. Where a campaign changes something, visitors may see the original content for around 200 ms, then see it change.
Then Copy code and paste it into your site’s <head> on every page (Show the code unfolds it). Tick Add exclusions for page-speed plugins if your site runs WP Rocket, LiteSpeed Cache, Cloudflare Rocket Loader or a similar plugin. No access to your site’s code? Send it to whoever manages your site opens an email with the code in it.
The code you paste also holds back, from the very first moment, the parts of your pages an AI Personalization campaign changes — those that were live when you copied it. After a new part goes live, or a part is pointed at a new place, copy the code again so it is covered from the first moment too; until then Personyze still holds it as soon as its script loads.
The code is safe to include more than once — duplicates are detected.

Install routes
| Platform | How |
|---|---|
| Raw HTML (any site) | Paste the snippet into the <head> of your template — every page you want to personalize. |
| Google Tag Manager | Either click Connect Google Tag Manager under Use Google Tag Manager? in the drawer and Personyze adds the tag to a container for you (you review and publish in GTM as always), or add the Personyze Tracking template from the gallery yourself — which also brings ecommerce dataLayer tracking and Consent Mode. |
| Shopify | Follow the Shopify guide — includes catalog sync and e-commerce events. |
| WordPress / WooCommerce | The plugin installs the tag with one click and can sync content and products. |
| Magento, BigCommerce, Wix, Squarespace… | Every platform with a “custom scripts” or theme-HTML setting takes the raw snippet: paste it into the site-wide <head> include. |
Installing the tag is one half. To sync a store’s products, orders and customers into Personyze as well, connect it by API: Shopify, Magento, WooCommerce, BigCommerce.
Single-page applications
The tracker detects SPA route changes automatically; the Single-page app settings on the Tracking Code screen tune that behaviour. Details: one-page applications.
Verify it fires
- The domain’s row on Tracking Code flips to Active, with visits counted over the past 90 minutes, and the banner says Tracker is firing.
- Open Live visits and browse your site in another tab — your session appears within seconds.
- Not firing? Check the snippet is on every page, isn’t blocked by a consent manager, and isn’t running inside an iframe. For consent-gated loading, use the GTM template’s Consent Mode option.
Next steps
- Product interaction tracking for recommendations.
- Conversion goals.
- Setup by site type — the full checklist for e-commerce, B2B/SaaS and content sites.