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

Edge segment

The segment type evaluated by the user's own browser, in near real time, rather than by mediarithmics servers.

What it is

Edge is a segmentation feature that runs client-side, inside the user's browser, instead of relying on server-side segmentation. Each user's browser evaluates whether that user belongs to a segment, based on the interactions it has recorded on your site - which makes membership close to real time.

Edge is not available by default. Contact your Account Manager to have it activated on your channels. The setup itself - snippet version, schema flags, ad server wiring - is documented in Edge. This page covers the segment as an audience object.

Edge versus server-side

Edge
Server-side

Who evaluates

The end user's browser

mediarithmics servers

When

Near real time, as the user browses

On the segment's evaluation period, usually overnight

What it can see

The visit timeline held in the browser's local storage

Any criteria stored in the datamart

Who is in it

Only users who browsed your site with Edge active

Every user matching the query

The same audience, both ways. A sales house wants to activate people who like high-tech products. With Edge, the segment is defined on user activity and a visitor enters it the moment their browsing matches the criteria, with activation triggered on Google Ad Manager on each subsequent page. With a server-side segment, the same audience is defined on anything in the datamart, computed overnight, and activated once a day.

For high-volume, precision-driven segmentation that needs cross-site behaviour and broader aggregation, server-side segmentation remains the recommended approach. Edge is the right choice for instant on-site personalisation and targeting.

How a user enters one

1

The tag records the visit

The user visits your site, the mediarithmics tag runs, and the user's visit timeline is stored in local storage.

2

The browser fetches the definitions

The browser downloads all Edge segment definitions from mediarithmics - JavaScript-based segment queries.

3

The browser evaluates them

The definitions are evaluated against the visit timeline, in the browser.

4

Membership is stored and reported

The segments the user belongs to are written to local storage, and synchronised back to mediarithmics for analytics.

5

Activation fires

Edge segments are activated on Google automatically, as key-value targeting through Google Publisher Tag.

During setup you can agree a custom targeting key - a namespace - with your Account Manager. It is automatically prefixed with mics_: a namespace of dogfooding produces the Google Ad Manager targeting key mics_dogfooding.

What is stored in the browser, and for how long

Visit timeline
Segments

Local storage key

<namespace>_mics_up

mics_sgmts

Limit

Up to 200 events per domain and user. Beyond 200, each new event replaces the oldest.

No limit on the number of segments stored.

Expiry

None. No automatic cleaning.

None. No automatic cleaning.

Consequences to plan around

  • Statistics lag. Segment membership is synchronised for analytics, but segment statistics updates can take up to 24 hours. The audience is real time; the number you read is not.

  • Users do not always exit. If a criterion is time-sensitive - "visited a product page in the last 10 days" - and the user never returns to the site, nothing re-evaluates the definition, so the user does not leave the segment even though they no longer match.

  • Consent still applies. Edge follows the same consent management requirements as the rest of the platform. See Manage consent & Processing activities. Note that Edge segments cannot carry a processing activity - see Enforce compliance on your audience.

Activating beyond Google

Google Ad Manager is wired in automatically. For other platforms, add a server-side feed on the Edge segment, exactly as you would on any other segment.

Last updated

Was this helpful?