---
title: "PageviewsPerOperatingSystem"
manual: "Tracking Extension"
version: "4.1"
permalink: "https://docs.typo3.org/permalink/danielsiepmann/tracking:pageviewsperoperatingsystem@4.1"
source: "PageviewWidgets/PageviewsPerOperatingSystem.rst"
rendered: "2026-12-01T16:22:07+00:00"
---

# PageviewsPerOperatingSystem {#pageviewsperoperatingsystem}

Provides the total calls on a operating system level.
This way editors can see which operating systems most visitors use.

## Example {#example}

![](../Images/Widgets/PageviewsPerOperatingSystem.png)

Default widget configuration.

[`Configuration/Services.yaml`](https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ExtensionArchitecture/FileStructure/Configuration/ServicesYaml.html#file-extension-configuration-services-yaml):

```yaml
services:
  _defaults:
    autowire: true
    autoconfigure: true
    public: false

  DanielSiepmann\Tracking\Dashboard\Provider\PageviewsPerOperatingSystem:
    arguments:
      $queryBuilder: '@querybuilder.tx_tracking_pageview'
      $days: 62

  dashboard.widget.danielsiepmann.tracking.operatingSystems:
    class: 'TYPO3\CMS\Dashboard\Widgets\DoughnutChartWidget'
    arguments:
      $view: '@dashboard.views.widget'
      $dataProvider: '@DanielSiepmann\Tracking\Dashboard\Provider\PageviewsPerOperatingSystem'
    tags:
      - name: 'dashboard.widget'
        identifier: 'operatingSystemsDoughnut'
        groupNames: 'tracking'
        iconIdentifier: 'content-widget-chart-pie'
        title: 'LLL:EXT:tracking/Resources/Private/Language/locallang.xlf:dashboard.widgets.operatingSystemsDoughnut.title'
        description: 'LLL:EXT:tracking/Resources/Private/Language/locallang.xlf:dashboard.widgets.operatingSystemsDoughnut.description'
        height: 'medium'
        width: 'small'
```

## Options {#options}

-   **$days**

    -   *Type:* Integer
    -   *Default:* 31

    Defines the number of days to respect.

-   **$maxResults**

    -   *Type:* Integer
    -   *Default:* 6

    Defines how many pages should be shown.
    Defaults to 6 because EXT:dashboard only provides 6 colors.

-   **$languageLimitation**

    -   *Type:* array of `sys_language_uid`'s to include
    -   *Default:* empty array, all languages are shown

    Allows to limit results to specific lanuages.
    All entries tracked when visiting page with this language are shown.
    If multiple languages are shown, default system language labels are used.
    If only a single lanugage is allowed, record labels are translated to that language.
