Attribute types

By Rasmus Makwarth

There's three types of attributes on Bucket:

  • System attributes
  • Custom attributes
  • Event attribues

System attributes

System attributes comes out of the box on Bucket. Here's a list of default system attributes for companies and users.

Company

Attribute Type Description
externalId string unique company identifier
createdAt timestamp company creation
last_seen timestamp timestamp of latest company user interaction


User

Attribute Type Description
externalId string unique user identifier
createdAt timestamp user creation
last_seen timestamp timestamp of latest interaction
sessions integer incremental count

Custom attributes

Custom attributes are key:value pairs. Values can be either a text string, a number or a timestamp.

Example: monthly_spend: 99

Event attributes

Whenever a user sends an event, that event gets rolled up to the user's company as an Event attribute. Each event attribute has three sub-attributes:

Attribute Type Description
count string incremental event count
first_seen timestamp timestamp of first event occurrence in company
last_seen timestamp timestamp of latest event occurrence in company