Skip to main content

Overview

Client-side personalisation uses a JavaScript tracking script that loads in the browser. It fetches personalised content after the page renders and injects it into designated DOM zones. This is the original integration method and works alongside the Server Side SDK.

When to use client-side personalisation

Integration methods

1. Script tag (manual)

Add the Reelevant tracking script to your page. The integration URL is generated from the Integration modal in the workflow editor.
The script automatically:
  • Creates an anonymous identity (rlvt_tmpId cookie) if none exists
  • Scans the DOM for [rlvt] attribute zones
  • Fetches personalised content from the runner
  • Injects content into matching zones
  • Tracks impressions and clicks

2. HTML zones

Mark elements on your page where personalised content should appear:

3. Browser extension integrations

The Reelevant Browser Extension provides a no-code way to set up client-side integrations:
1

Install the extension

Install from the Chrome Web Store or Microsoft Edge Add-ons and sign in with your Reelevant email and password or SSO.
2

Navigate to your website

Open the page where you want personalised content to appear.
3

Select a workflow

In the extension side panel, browse your workflow list and select the one to integrate.
4

Configure the on-site integration

Use the content script UI to pick a DOM selector, set emplacement, and define integration conditions. Click Save to persist the configuration.
5

Copy integration URLs (optional)

For channels that need direct URLs, open the integration instructions to copy image and redirection links.

Integration triggers

Browser extension integrations support three types of triggers:

Identity management

The client-side script manages two identity cookies: To associate a known user identity:

Combining with server-side SDK

When using both the server-side Web SDK and the client-side script on the same page:
  1. Server-rendered zones should include data-rlvt-ssr="true" on the wrapper element
  2. The client-side script automatically skips zones marked with data-rlvt-ssr
  3. The client script still handles event tracking, client-only zones, and integrations

DataLayer integration

The script reads values from the window.dataLayer array (Google Tag Manager compatible):
These values are automatically forwarded to workflows as URL parameters for use in data nodes.