fivebar

Custom properties

Copy page
View Markdown
Open with
Connect MCP
Cursor VS Code

A custom property labels everything a page sends with something the page knows about itself, such as its author or type.

Properties let you read your stats by what an address doesn’t say, such as a page’s author, language or type: which author was read most last month, and where their readers came from. Each is one attribute on the tag, filled in by the template that already knows the value, and gets a pane of its own once pages send it.

Adding one

Give the script tag a data-property- attribute for each property, named after it:

<script async data-domain="example.com" data-property-author="Ada Lovelace"
  data-property-type="article" src="https://fiveb.ar/js/tally.js"></script>

This page is counted with the author Ada Lovelace and the type article. Have your templates write the values in, so each page gives its own.

A property describes the page, and goes with every pageview and event it sends. To describe one event instead, give that event data of its own: see Custom events.

On the dashboard

Each property the site sends gets a pane of its own under Properties, headed by its name, with its values ranked by pageviews. Click a value to filter the whole dashboard by it, or the pane’s heading to see all of them.

Under a filter, each pane counts the pageviews that match, and under a goal the conversions, each value with its conversion rate, which is how to compare the variants of an A/B test. fivebar has kept each pageview’s properties since 19 September 2026.

Names and values

A property that breaks these rules is dropped on its own, and the page is counted with the rest.

Read once, when the script loads

The properties are the ones the tag had when the script loaded. In a single-page app, every page the visitor moves to carries the properties of the page they arrived on.