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

Build your audience from live user activity

React to behaviour as it happens, with Edge segments evaluated in the user's browser.

Your goal

Act on behaviour while it is still current, during the user's visit, instead of waiting for the next segment computation.

Expected outcome

An Edge segment that users enter as they browse your site, ready to be targeted on the pages they view next.

When this is useful

When you need to act during the visit itself: personalising your site as the user browses, or targeting them on Google Ad Manager on the next pages they view.

The audience that makes this possible is called an Edge segment. An Edge segment is evaluated by the user's own browser, in near real time, as they browse, unlike segments based on stored attributes, which are computed once a day by default.

What "real time" costs you

An Edge segment trades depth for speed:

  • It sees only the visit timeline held in the browser, not your whole datamart.

  • Only users who browsed with Edge active are in the segment.

  • A user who never returns does not exit a time-sensitive segment.

  • It cannot carry a processing activity.

  • Segment metrics can lag in the platform.

Prerequisites

Edge activated on your channels by your Account Manager, the latest snippet deployed, and the properties you want to segment on flagged for Edge availability in your schema. Documented in Edge.

Build an Edge segment

1

Create the segment

In Audience > Segments, click New Segment, then Edge.

2

Express the criteria

Build the criteria as you would in the Standard Segment Builder. The properties available are fewer: only the ones flagged for Edge availability in your schema, on UserEvent, DeviceInfo, UserDeviceTechnicalId and UserSegment.

3

Save the segment

Name the segment and save it.

4

Wire the activation

Edge segments activate on Google automatically, through key-value targeting. For any other platform, add a server-side feed on the Edge segment, exactly as on any other segment.

5

Check the numbers with the lag in mind

Do not read a fresh Edge segment's statistics as final - they can be up to 24 hours behind.

Verification

The segment's local storage keys are populated in the browser, and the segment appears with the type Edge in the segments list. See What is stored in the browser.

Last updated

Was this helpful?