Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I set custom groups of pages (structure) so that page view are aggregated by categories?

0
Posted

How can I set custom groups of pages (structure) so that page view are aggregated by categories?

0

In the Piwik Javascript tracking code, you can specify custom page names by using the piwikTracker.setDocumentTitle() method; (Read more information about the Piwik Javascript Tracking options). In the Piwik Page views reports, by default all page names are automatically categorized in groups delimited by the character ‘/’. For example, if you set a custom page name piwikTracker.setDocumentTitle(“Products / Gardening / id=123”);, Piwik will record this page view in the directory “Products”, the sub-directory “Gardening” and the page name “id=123”. This means that you will get the total number of visitors viewing pages in Products, Gardening, as well as hits on the specific page “id=123”. If you would like to change the delimiter used to categorize pages, you can for example set in your config/config.ini.php : action_category_delimiter = :: You can then define your custom page names as follows: piwikTracker.setDocumentTitle(“Products :: Gardening :: id=123”); and the grouping will be do

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123