Custom properties

Custom properties allow you to attach additional metadata to pageviews and custom events. This lets you segment your analytics data by any dimension that matters to your business.

Setting up custom properties

  1. Go to your Site Settings → Custom Properties page.
  2. Click Add Property.
  3. Enter the property key (e.g., author, category, plan).
  4. Select the property type: string, number, boolean, or date.
  5. Click Save.

Sending properties with events

Attach properties to custom events using the props parameter:

pageviews('Purchase', { props: { plan: 'pro', price: 10, annual: true } });

Sending properties with custom events

Attach properties to any custom event using the props parameter in the track command:

pageviews('track', 'Article View', { props: { author: 'John Doe', category: 'Tutorial' } });

Viewing property data

Once properties are flowing in, you can use them in your dashboard reports:

  • Goal conversion breakdowns — See which property values drive the most conversions.
  • Report filters — Filter your entire dashboard by a specific property value.

Property types

TypeDescriptionExample
StringText valuesplan: "pro"
NumberNumeric valuesprice: 29.99
BooleanTrue or falselogged_in: true
DateDate valuespublished: "2025-01-15"

Tips

  • Custom properties are available on the Pro plan and above.
  • Property keys are case-sensitive. Be consistent across your site.
  • Keep property values concise and use a controlled vocabulary where possible (e.g., free, pro, enterprise rather than freeform text).