How to control the categories tree structure in the Page URLs and Page titles reports?

By default, Piwik PRO Pages Reports will display Page URLs and Page titles in ‘categories’. They are automatically built based on the slash character / as a delimiter.

In the Piwik PRO JavaScript tracking code, you can configure custom page titles by calling piwikTracker.setDocumentTitle(). So, let’s say that you want to track a custom page view when a user clicked on a button in your website, you could use the following snippet

piwikTracker.setDocumentTitle("ajax/click view button");
piwikTracker.trackPageView();

If you want to divide your page URLs and Page titles into different categories (or disable the feature) you can customize the delimiter. In order to do that, please edit your config/config.ini.php file, and set the following:

[General]action_title_category_delimiter = ::

Then you can determine your custom page names:

piwikTracker.setDocumentTitle("Products :: Gardening :: Seeds id=123");

Now your categories and pages will be divided into groups in accordance with :: delimiter.

Was this article helpful?

Be the first to rate this article.

Technical Support

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

We’re happy to help!