Group dimension values

Analytics new Available from version 12.0.0

Each dimension has a set of values that represent it. For example, a country dimension has countries, a device type dimension has devices, a page URL dimension has web pages, and so on. But sometimes, analyzing data by the fixed set is not enough, and it’s better to group dimension values into your own buckets. In this article, we’ll show you how.

Before you start

Here are some things to know about groping of dimension values before you begin creating them:

  • You can create up to 10 groups in one custom grouping.
  • Custom grouping is not available in filters. But, you can apply the same conditions to the filter as in custom grouping, and the effect will be the same.

Create a custom grouping

To group dimension values, follow these steps:

  1. Go to Menu > Analytics (new).
  2. Navigate to Settings.
  3. On the left, click Dimension value grouping.
  4. Click Add new dimension value grouping.
  5. Add new dimension value grouping in Piwik PRO.
  6. Name the dimension value grouping.
  7. Choose the Visibility option: Author or All users. The All users option lets you share this grouping with other teammates.
  8. Setting grouping in Piwik PRO.
  9. If you want to have this grouping available on all websites, mark All websites.
  10. Setting grouping in Piwik PRO.
  11. On the right, pick the dimension that you want to use and drag it to the drop-in section.
  12. Setting grouping in Piwik PRO.
  13. Name the first group.
  14. Set conditions. For example, Country is United States or Country is United Kingdom.
  15. Setting grouping in Piwik PRO.
  16. Click + Add group, name the second group and define its conditions.
  17. Add more groups.
  18. Setting grouping in Piwik PRO.
  19. In Other dimension values, set how you want to group the remaining values. You can choose one of the following options:
    • Add the remaining dimension values to one group
    • Keep the remaining dimension values ungrouped
    Setting grouping in Piwik PRO.
  20. When you’re done, click Create
  21. Your new grouping will appear on the list. You’ll be able to use it in custom reports and on dashboards.
Dimension value grouping in Piwik PRO.

Use custom grouping in custom reports

After creating a new grouping for dimension values, you can apply it in custom reports and on dashboards.

To use the custom grouping in custom reports, follow these steps:

  1. Go to Menu > Analytics (new).
  2. Navigate to Custom reports.
  3. Edit a report or create a new report.
  4. While setting up the report, add a dimension with custom grouping.
  5. Click on the dimension and pick the custom grouping.
  6. Custom grouping in custom reports.
  7. When you’re done, click Save report or Create report.
  8. The report will show data with the custom grouping.
A custom report with custom grouping in Piwik PRO.

Note: Custom grouping in the user flow report is available for dimensions applicable to this report like a page URL, page title, outlink URL, download URL, and more. The grouping appears on the list of interaction settings.

A user flow report with custom grouping in Piwik PRO.

Use custom grouping on dashboards

To use the custom grouping on dashboards, follow these steps:

  1. Go to Menu > Analytics (new).
  2. Navigate to Dashboards.
  3. Edit a widget on the dashboard or add a new dashboard and a new widget.
  4. While setting up the widget, add a dimension with custom grouping.
  5. Click on the dimension and pick the custom grouping.
  6. A dashboard with custom grouping in Piwik PRO.
  7. When you’re done, click Save widget or Add widget.
  8. The dashboard widget will show data with the custom grouping.
A dashboard with custom grouping in Piwik PRO.

Edit, copy, and delete custom grouping

Whenever you need to make changes in the custom grouping, copy or remove it, you can do it with a few clicks.

To edit settings, copy or delete a dashboard, follow these steps:

  1. Go to Menu > Analytics (new).
  2. Navigate to Settings.
  3. On the left, click Dimension value grouping.
  4. Pick a custom grouping you want to work with.
  5. On the right, click a three-dot icon.
  6. Edit, copy, and delete custom grouping in Piwik PRO.
  7. Click edit, copy, or delete.
  8. Follow the steps on the screen.

Custom grouping examples

You can use the custom grouping to design data structure that reflects your business or organization. Here are some examples:

  • Group a country dimension into sales regions specific to your business. For example, if you focus on US and UK market, put these countries into one group.
  • Group a page URL dimension into content categories used on your website. For example, make a group for product pages, a group for a blog, a group for a help center, and a group for landing pages. With this structure, it’ll be easy to analyze content on your site.
  • Group a referrer URL dimension. For example, put your websites into one basket and websites that belong to others to another basket. This way, you’ll keep apart your traffic from external traffic.
Was this article helpful?

Technical Support

If you have any questions, drop us a line at support_SPC@piwik_SPC.pro.

We’re happy to help!