Qlik Sense (part of Qlik Cloud) is a data analytics and visualisation tool designed to explore, analyse, and present data from multiple sources. It combines data modelling with an interactive user interface for technical and non-technical users to build dashboards and reports. Qlik Sense requires three key components to import Matomo data: spaces, data connections, and apps.

  • A space is the workspace and governance layer where you create your data connection and analytics app and analytics assets.
  • The analytics app contains your data model, load script, and visualisation sheets.
  • A data connection defines how Qlik Sense accesses a data source such as via REST APIs, file imports, and more. Depending on your Qlik plan, you may have access to set up connections to data warehouse sources such as Amazon S3, Google BigQuery, Google Cloud Storage, or Snowflake.

This guide describes two methods for importing Matomo data into a selected Qlik space: using a REST connector or uploading files to create datasets.

Before you start

  1. First, you will need admin access to a Qlik Sense account to prepare your Qlik environment.
  2. Create or select a space (Personal, Shared, or Managed) that will contain the Matomo app and data connection. Read the Qlik documentation for guidance on creating spaces.
    view space in qlik
  3. In Matomo, you will need to generate a token_auth for the Qlik data connection. Make sure it is not enabled for secure requests only. Learn how to generate the Matomo token_auth.
  4. Once the environment is set up, proceed to the next section to set up the data connection in Qlik.

Create a data connection

A data connection defines how Qlik accesses your source data. Connections can be created from within an app or directly in the space with defined permissions. The following section covers the REST connector setup and how to import files to create datasets. Both options let you build and manage reusable connections within a space so that your apps can load and model Matomo data for analysis.

Use the REST connector

  1. Open the Analytics menu and click + Create.
  2. Under Data and upload, select Data connection.
    add data connection in qlik
  3. In the next screen, search for and select the REST connector. the REST connector to retrieve data directly from the Matomo API.
    select qlik rest connect
  4. For the Request URL, provide the Matomo API endpoint and append the token_auth. For example: site.matomo.cloud/index.php?module=API&method=Events.getCategory&idSite=1&period=day&date=last30&format=JSON&token_auth=123
  5. Define the connection settings as required and click Test connection. You should see a verification message when the test is successful.
  6. If an error occurs, check you are using the correct token_auth, which must not be enabled for secure requests in the Matomo token settings.
  7. Click Create to save the new data connection.

Import files to create datasets

  1. Open the Analytics menu and click + Create.
  2. Under Data and upload, select Dataset.
    new dataset in qlik
  3. You can choose to create datasets by uploading files or creating a data connection. This example covers the Upload data file option.
    upload data file in qlik
  4. Select Upload data file and click Next.
  5. In the next screen, drag-and-drop your files to upload or use the Browse option to locate and select the files to import.
  6. The Path must reflect the path to the correct space where the files will be uploaded to.
  7. Click Upload (or Upload and analyze).

Create a Qlik Sense Analytics app

The app contains your data model, load script, and visualisation sheets. Apps created in the same space can share data connections, depending on permissions. While you can reference or create data connections from within an app, those connections are stored as resources in the associated space.

  1. Open the Analytics menu and click + Create.
  2. Under Content and collaboration, select Analytics app.
  3. Provide a name for the app and select the right space that the app will be saved to.
  4. You can optionally add a description and tags.
  5. The Open app setting is enabled by default, which is useful to edit the app once it is created.
    create analytics app gif
  6. Click Create.
  7. You will be prompted to choose how to load data into the app:
    • Data catalog: Select to browse the catalog for existing datasets (imported files).
    • Files and other sources: Select to browse for data files, existing data connections, and you can import new files and create a new data connection.
    • Data load editor: Select to use a script to load the data.

Add data from the Data catalog

  1. If you choose the Data catalog option to load data into your app, your Qlik Analytics catalog will open and display existing datasets.
    browse qlik data catalog
  2. Select the datasets and click Next.
  3. Review the summary and click Load into app.
  4. Alternatively, if you click Continue browsing, you can search for and select multiple datasets.
  5. When the data loads, it will open the visualisation tools.
  6. Go to the Visualise and analyse section below to learn how to start building reports.

Add data from Files and other sources

  1. If you choose the Files and other sources option to load data into your app, the list of available data files and data connections are shown.
  2. Select an existing file connection or you can choose to upload new files or create a new data connection.
    load data connection in qlik
  3. For example, choose an existing data connection and click Next.
  4. In the Preview, select the table and click Next.
    qlik choose table to import
  5. When the data loads, it will open the visualisation tools.
  6. Go to the Visualise and analyse section below to learn how to start building reports.

Add data using the Data load editor

  1. If you choose the Data load editor option to load data into your app, the script editor will open.
  2. In the data connection panel, locate the REST data connector and click on the option, Select data.
  3. Qlik will preview the response and generate the correct script automatically and add the RestConnectorMasterTable components.
  4. Select the table shown in the preview (often a single array/root), and click Insert script.
    select data to load in qlik
  5. Qlik inserts the auto-generated script into the editor. You can edit the script as required, for example, if loading the Matomo events data, modify the script to create a single Pages table and a separate PageGoals table.
    modify query in qlik
  6. Click Load data to execute the script and close the app.
  7. Go to the Visualise and analyse section below to learn how to start building reports.

Visualise and analyse Matomo data in Qlik

  1. After adding data to your app from the Data catalog or Files and other sources, Qlik by default, opens the visualisation tools to create new sheets and add analytics assets.
  2. You can also open an app from the Analytics > Data catalog page to build visualisation sheets.
  3. In the app, use the top drop-down menu to navigate between sheets, the data manager, data model viewer and other features.
    navigate data manager in qlik

  4. Click Create new sheet and open it to edit.
    A sheet is where you arrange charts, tables, KPIs, and filters to explore and present data. Each sheet can focus on a different topic, for example, traffic overview or conversions. The data displayed comes from your data model (loaded through scripts or connections), not from manually entered cells.

  5. By default, Qlik opens Assets > Master items to create master dimensions and measures for naming, formatting, and reuse. You can add charts without masters, but creating them first makes everything consistent and reusable.
    select master items in qlik sheet

  6. Under Master items, click the plus icon + to add a new Dimension.
  7. Create dimensions for the core fields that you will reuse (e.g., Page URL, Event Category, Campaign, Device Type, Goal).
    new dimension in qlik
  8. Under Master items, click the plus icon + to add a new Measure.
  9. A master measure is a reusable calculation that defines how a metric is displayed throughout your app. You can add expressions using fields and functions from your data model, apply aggregation functions, and insert variables.
  10. To start building your first visualisation, click Edit sheet in the new sheet workspace.
  11. Drag-and-drop master dimensions and measures onto the sheet to create a new chart and customise as needed, for example, choose a chart type, configure properties, and add filters.
  12. To add metrics to the chart, click on the Fields option in the left menu panel.
  13. Drag-and-drop the required fields onto the relevant chart.
    add fields to qlik sheet
  14. Once your charts and filters are in place, review the layout for clarity and consistency and save your changes.
  15. Click on the Analyses option in the left menu panel to switch to analyse mode. This helps test the chart’s interactivity and confirm that selections, filters, and calculations behave as expected.

Publish and bookmark your app

If you are using shared or managed spaces, you can move the app to a published space or publish your changes. You can also go to Bookmarks > Create bookmark to set a visualisation as a default view for users to see specific reports when opening the app.

It is also important to check that users and roles within the space have access to the app and its associated data connections. Read the official Qlik documentation on publishing apps. With your app published and a default view configured, your visualisation is ready for exploration and collaboration.

Previous FAQ: How to import Matomo data into Microsoft Power BI Desktop