For the complete documentation index, see llms.txt. This page is also available as Markdown.

Browser Local Storage

Write segment membership into the browser's local storage, where any on-site partner can read it.

The Browser Local Storage connector writes the segments a user belongs to into that user's browser local storage. No identifier leaves your CDP. A partner already running on your site reads the value and adapts the experience, or activates the user on-site.

Connection

Type

Client-side (local storage)

Identifiers sent

None - segment names only, kept in the browser

Authentication

None

Description

What this connector does

Rather than sending identifiers to a partner, the connector stores segment data in the visitor's local storage under a key you choose. Any partner integrated on your website can then read that key.

The value holds the technical name of each segment the user belongs to. If you did not set a technical name when creating the segment, mediarithmics assigns a default one, which you can change afterwards by editing the segment.

What you can do with this connector

  • Personalise on-site experience by segment, without sharing anything with a third party.

  • Feed on-site partners that have no dedicated connector, through a custom process.

  • Serve several partners from one feed, or give each its own key.

Which identifiers are sent

None. Nothing leaves the CDP; the segment list stays in the visitor's browser.

Connector setup

Prerequisites

  • The mediarithmics tag installed on the site where the personalisation happens, calling syncFeeds - the call that enables client-side feeds. Without it, no segment is written to local storage. See Web tracking.

Set up the Browser Local Storage connector

1

Select the Browser Local Storage connector in the client-side section.

2

Fill in the configuration.

Field

Name

Identifies the feed in the platform. Any name; it is not visible on the site.

Local Storage Field Name

The local storage key that will hold the segments. Defaults to mics_segments. Connectors built on this one require a specific value - see below.

Creating and activating the feed on a segment is covered in Send your first-party data to a destination.

Supported partners

Two partners have a dedicated page, because each expects a specific local storage key:

The connector can also back custom processes with other partners - Google and FreeWheel, for example. Contact your Account Manager to work out how.

Curated Audiences (SDA) also writes to local storage, but to a fixed key (mics_sda) and in the IAB segment-taxonomy format. Use it when the consumer is a bidding integration such as Prebid.js rather than an on-site personalisation tool.

Good to know

A newly activated segment does not appear in local storage straight away. For a segment ID to show up in the key, all of the following must have happened:

  1. The user had a visit matching the rules of your segment.

  2. The segment was calculated after that visit, so the user is genuinely in it.

  3. The user came back to the website, more than 24 hours after the first visit.

The segment list is refreshed once every 24 hours, based on the lastFeedRefreshDate value stored in local storage.

FAQ

Does any personal data leave my CDP?

No. The connector writes segment names into the visitor's own browser. Nothing is sent to a partner's servers.

Why is my segment not in the local storage key yet?

Most often because the segment has not been recalculated since the user's qualifying visit, or because the 24-hour refresh has not come round. See Good to know. If no segment ever appears, check that your tag calls syncFeeds - see Prerequisites.

What decides the segment name I see in the value?

The segment's technical name. If you did not set one, mediarithmics assigned a default, which you can change by editing the segment - see Segment reference.

Last updated

Was this helpful?