If your site already uses Google Tag Manager, GTM is the cleanest place to load the Personyze tracking tag — no template editing, deploy and rollback through GTM versioning, no developer push. The Personyze Tracking tag template does more than install the tag: it can translate your existing GA4 ecommerce dataLayer into Personyze product interactions, report specific interactions, write visitor profile attributes from GTM variables, and respect Google Consent Mode.
Prerequisites
- A GTM container installed on your site.
- Your Personyze account number — shown in the panel (it is the number in your panel URL, e.g.
/panel2/id/8110/, and in Settings → Site profile). - The Personyze Tracking template — search “Personyze” in GTM’s Tag Templates gallery.
Basic install
- In your GTM workspace: Tags → New, click the tag-config area and pick Personyze Tracking.
- Account Number — your Personyze account number.
- For use on domains — a space-separated list of the domains to track, like
example.com shop.example.com. - Trigger: All Pages (Page View). Fire Personyze as early as possible — earlier firing means more time to identify the visitor, resolve audiences and render personalization before the visitor starts scrolling; late firing shows a flash of original content.
- Submit a new GTM version.

Ecommerce tracking — reuse your GA4 dataLayer
Tick Track ecommerce events from the dataLayer automatically and the tag translates standard GA4 ecommerce pushes — view_item, add_to_cart, remove_from_cart, add_to_wishlist, purchase — into Personyze product interactions. If your site already reports ecommerce to GA4, this replaces any separate interaction setup.
- Trigger setup: attach the tag to a Custom Event trigger with Use regex matching enabled and the event name
view_item|add_to_cart|remove_from_cart|add_to_wishlist|purchase
— in addition to (or instead of) the All Pages trigger. - Match products by — which column of your Personyze product catalog the reported IDs match: Internal ID or SKU. The IDs in your dataLayer must exist in the catalog, or the interactions won’t attach to products.
Send a specific interaction
The Interaction dropdown sends one Personyze interaction each time the tag fires (on top of installing the tracking code). Fill its fields with GTM variables (e.g. {{Ecommerce item id}}):
- Product Viewed / Added to cart / Removed from cart / Purchased / Liked (wishlist) — takes Product ID and, where relevant, Quantity.
- Order completed — all cart items purchased.
- Article Viewed — takes Article ID, for content recommendations.
- Category viewed — logs visitor interest; one or more category names, comma-separated.
- SPA route change — re-runs targeting on a single-page-app navigation. Attach this one to a History Change trigger.
Visitor profile attributes
Tick Send visitor profile attributes to write values onto the visitor’s Personyze profile — where they become usable in every targeting rule, dynamic content variable and report. Click Add attribute, pick the field, and supply the value as a GTM variable.
Available fields: Email, First/Last name, Phone, Mobile phone, Gender, Birthday, Postal code, City, State, Country, Occupation, Industry, Website, Interests, Subscription type, Lead score, Sale state, Account type, Account balance, Account ID number, Opted in (email, sms) — plus generic slots: Custom text 1–6, Custom integer 1–4, Custom float 1–2, Custom date 1–2.
Consent Mode
Tick Respect Google Consent Mode (analytics_storage) and the Personyze tracker is not loaded — and no cookies are set — until analytics_storage consent is granted. If the visitor grants consent later on the same page, the tracker loads at that moment. Pair it with your CMP’s standard Consent Mode integration; no extra wiring needed.
Verifying the tag fires
- In GTM, click Preview — Tag Assistant opens with your site. Personyze Tracking should list under “Tags Fired”.
- Dev tools → Network → filter
counter.personyze.com— a request should fire on every page load. - In the panel, the visit appears in Live visits within seconds; with ecommerce tracking on, product events show under the campaign’s Interactions step.
Common issues
- Tag fires but no events in Personyze — usually a wrong account number, or the current domain missing from For use on domains.
- Personalization doesn’t render / flashes — tag firing too late; fire on Page View and before interfering tags.
- Ecommerce interactions don’t attach to products — the dataLayer item IDs don’t match the catalog column chosen under Match products by.
- SPA pages tracked twice — the base tag is on a History Change trigger; move it to Page View and use the SPA route change interaction instead.
Related
- Google Analytics integration — the other direction: reporting Personyze events into GA4.
- Product interaction tracking — all the ways to report interactions.
- One-page applications.