User properties

User properties are attributes that can be used to describe segments of your user base, such as language preference or geographic location. Analytics automatically logs some user properties. If you want to collect additional data, you can set up to 25 additional user properties per project. Learn more about User Properties reports.

You can set a user property as follows.

gtag('set', 'user_properties', {
  favorite_composer: 'Mahler',
  favorite_instrument: 'double bass',
  season_ticketholder: 'true'
});