Repository navigation
Custom Dimensions
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.
| 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.
Select Settings → Property → Custom dimensions to list the Property's registered dimensions.

| 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.

| 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.
| 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 |
Once a dimension is Reportable, it is a dimension of its Property's reports:
- In a report's table, choose it in the field chooser, under Custom.
- In the custom report and funnel editors, choose it as a dimension or a filter, or as a condition of a funnel step.
- In the Reporting API, by the name given there.
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=20260101The 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.
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.
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=planA command takes effect at once; with --defer it waits for the next cube build, and cmd=custom-dimension-apply applies what is waiting.
The screen is for administrators, and so are the commands.
| 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 |
- Home
- Features
- New in 2.0
- Changes from 1.x
- Technical Requirements
- Installation
- Upgrading from 1.x
- Configuration
- Updating
- Automatic Updates
- Update Fetcher
- Troubleshooting
- Support
- Tracking Tag
- Javascript Tracker
- Sending Events
- Event Properties
- Custom Events
- Campaign Tracking
- Goals
- Ecommerce Tracking
- Currency Conversion
- Custom Dimensions
- Tracking Event Pipeline
- Integration Plugins
- Reports
- Realtime
- Custom Reports
- Heatmaps and Recordings
- Report Widgets
- Report Definitions
- Metrics and Dimensions
- Channels and Attribution
- REST API
- Reporting API
- Data Model
- Reporting Cubes
- Organizations, Properties and Profiles
- Settings
- User Accounts
- User Permissions
- Application Passwords
- Command Line Interface
- Scheduled Jobs
- Data Retention
- Partitioning
- Privacy
- Spam Detection
- Notifications
- Server Roles
- File System Permissions
- MaxMind GeoIP