Skip to content
Peekbird

Visitor attributes

Facts about the visitor your site knows: their plan, whether they're logged in, how many orders they've placed. Audiences can aim experiments at them (plan is pro), and recordings can be filtered by them.

// As early as you can: set before the snippet, it counts
// for this page's experiments too.
window.peekbird = window.peekbird || [];
peekbird.push(['set', {
  plan: 'pro',
  logged_in: true
}]);

The fields

names
Up to 20 per call, each up to 64 characters.
values
Text (up to 200 characters), numbers or true/false.

Good to know

  • Set them as early as you can. Set before the snippet loads, they count for that page's experiments too.
  • They're remembered for the visitor, so you don't need to set them on every page.
  • To aim an experiment at them, add an audience condition "Your own attribute" with the same name.
  • Recording filters need analytics on for the site (the default).

See what your visitors see.

Start free in a few minutes: one snippet, every feature. Move to a bigger plan when you need more sessions.