Skip to content

Custom Dimensions

padams edited this page Dec 2, 2026 · 1 revision

A custom dimension is a value your site sets on its events or visitors, such as a subscription plan or an account tier, registered on a Property so its reports can group and filter by it. OWA stores every custom value the tracker sends; registering one makes it reportable.

Registrations belong to a Property. Two Properties can use the same name to mean different things.

Sending a Value

Scope Set with Describes
event setEventProperty( name, value ) One thing that happened
user setUserProperty( name, value ) The visitor. OWA keeps the latest value on the visitor's record
owa_cmds.push( ['setEventProperty', 'plan', 'pro'] );
owa_cmds.push( ['setUserProperty', 'account_tier', 3] );

Both attach the value to every event the tracker sends from that page. Set it again on each page. The names the tracker accepts are on Event Properties, and the commands on Javascript Tracker.

The Custom Dimensions Screen

Select Settings → Property → Custom dimensions to list the Property's registered dimensions.

The Custom Dimensions screen with one dimension reportable and one being added

Column or control What it shows or does
Register New Custom Dimension Opens the form below. Shown while the Property has room for another
Name, Label, Scope, Type As registered
Status Reportable: in reports. Being added — reportable within a few minutes: the next cube build adds it. Could not be added., with the database's reason: usually the Property has no room left; remove a dimension to make room
Remove Asks first, then removes the dimension
n of capacity used. How many the Property has, of the most it can have

A Property that has not collected anything yet offers no form.

Registering a Dimension

The New Custom Dimension form

Control What it does
Name The name exactly as the tracker sets it: for setEventProperty('plan', …), plan. Plan and plan are the same name
Label What reports call it. Defaults to the name
Scope event or user. It must match the method your site uses
Type string, integer or decimal. A value that will not convert is stored as empty. The type cannot be changed later: remove the dimension and register it again
Register Custom Dimension Registers it

A registered dimension cannot be edited.

Limits

Limit Value
Name A letter, then letters, digits and underscores, up to 40 characters
Dimensions per Property 20, or fewer on some database servers
A string value Reports show up to 64 characters of it
Custom values on one event 25 event and 25 user values. Any beyond those are not kept; the event is still recorded

In Reports

Once a dimension is Reportable, it is a dimension of its Property's reports:

Earlier Events

A new dimension is filled in for events from the time it is added. To fill it for earlier dates, rebuild the cube for that range:

php cli.php cmd=cube-rebuild property=<id> from=20260101

The values are kept from the moment they are sent, so you can rebuild as far back as your event data goes.

A user dimension carries the visitor's current value onto every one of their events, including events from before the value was set.

Removing a Dimension

Select Remove beside the dimension and confirm with Remove dimension. The dimension leaves the reports at once, and its values leave the cube at the next build. The values your site sent are kept: register the name again and rebuild to bring them back.

From the Command Line

php cli.php cmd=custom-dimension-register property=<id> key=plan scope=user
php cli.php cmd=custom-dimension-register property=<id> key=tier scope=event type=integer
php cli.php cmd=custom-dimension-register property=<id> key=plan,tier,region scope=event
php cli.php cmd=custom-dimension-list property=<id>
php cli.php cmd=custom-dimension-deregister property=<id> key=plan

A command takes effect at once; with --defer it waits for the next cube build, and cmd=custom-dimension-apply applies what is waiting.

Roles and Permissions

The screen is for administrators, and so are the commands.

Changes from 1.x

1.x 2.0
setCustomVar( slot, name, value, scope ) setUserProperty( name, value ) for the visitor scope, setEventProperty( name, value ) for every other. There are no slots

Clone this wiki locally