Overview: Query Builder for Matomo (Standard Report)

HOW TO

How to access the Query Builder for Matomo (Standard Report)

Navigate to Metrics > Query Builder to access the Query Builder. Click the green + New Custom Metric button and select your connected Matomo Account from the Data Source drop-down list. Select the Standard Report radio button

    Query Builder is available on the Professional and Performer plans. Request a trial of Query Builder by following these steps.  

How to use the Query Builder for Matomo (Standard Report)

A
  Data Source: This is the Matomo Standard Report Data Source that the Custom Metric is syncing data from.
B
  Metric: Select a Metric from your connected Matomo Standard Report Data Source, such as Visits, Pageviews, or Downloads
C
  Favourable Trend: By default,  Trending up is positive is pre-selected, which will display the percentage change value on Datablocks as green when the Metric value has increased. If the Custom Metric you created has opposite trends, select  Trending down is positive radio button. Learn more here
D
  Segments (Optional) : A segment is a subset of your Analytics data. For example, out of your entire set of Visitors tracked, one Segment might be Visitors from a particular Country. Another Segment might be Visitors who purchase a particular line of products, or Visitors who came to your website from an Organic Source. 
E
  Actions in (Optional) : You can select which segment group you would like to use in the Actions in drop-down. These Segment(s) would restrict the data that gets included in the Custom Metric. All data that is returned is tested against the Segment(s). Multiple Segment(s) can be combined using AND /OR boolean logic.    
If the data synced from the Metric fields meet the Segment's specifications, the data is retained and included in the Custom Metric value. If the data synced from the Metric and Dimension fields don't meet the Segment specifications, the data is excluded from the Custom Metric value.
F
  Preview data: After clicking Preview data, a Data Preview of the Custom Metric will be displayed. Daily Metric values are displayed in this section, along with the total Metric values for the Date Range in bold at the bottom. You can view the Data Preview for different Date Ranges by clicking on the drop-down list at the top of the Data Preview. 
G
  Custom Metric Name: Enter a name for your Custom Metric. This Custom Metric name will be available in the Designer after saving. 
H
  Save: Save your Custom Metric. 

How to create a Custom Matomo Standard Report Metric [Example]

In this example, we'll create a Custom Metric to report on Visitors tracked in the Matomo Account, split up based on Browser. We only want to view this data for Chrome. 

1
 Navigate to Metrics  > Query Builder   
2
 Click the green + New query button
3
 Select the appropriate Matomo Data Source
4
 Select the Standard Report radio button 
5
 Select  Visits from the  Metric drop-down list  
6
 Next, we want to further add Segments to subset the data by the browser, so we'll select Visitors from the Actions by drop-down list, Browser from the Name drop-down list, Contains from the Operator drop-down list, and Chrome from the Value drop-down list
7
 In order to accurately explain what this Custom Metric is reporting on, we'll name the Custom Metric "Visits by Browser (Chrome)" 
8
 Click Preview data to generate a Data Preview of the Custom Metric. 
9
 Once we confirm that these are the results we're looking for, we'll click Save to save the Custom Metric. 

How to add a Custom Matomo Standard Report Metric to a Databoard

Learn how to add a Custom Metric to a Databoard here.

Additional Information

  • The Data Preview is limited to display a maximum of 20 Dimensions per Date Range for Attributed Metrics. Dimensions will be sorted by descending value, therefore the 20 Dimensions with the highest total values will be displayed in the Data Preview for each Date Range.
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.