Log OS and device infomation - BrowserCap replacement

Created on 23 June 2023, over 1 year ago
Updated 22 May 2024, 7 months ago

Problem/Motivation

Operation system and device information can be obtain from the user agent, and optional headers.

Steps to reproduce

Proposed resolution

Use device detect from Matomo to obtain and log the OS an device information.

Remaining tasks

  1. composer require matomo/device-detector ; add device detect
  2. Add columns to visitors table
  3. Service for OS and device from user agent and optional headers
  4. Batch form to rebuild OS and device information
  5. Drush command to rebuild OS and device information

User interface changes

API changes

Data model changes

+-----------------------------+-----------------------+------+-----+---------+----------------+
| Field                       | Type                  | Null | Key | Default | Extra          |
+-----------------------------+-----------------------+------+-----+---------+----------------+
| config_browser_engine       | varchar(10)           | YES  |     | NULL    |                |
| config_browser_name         | varchar(40)           | YES  |     | NULL    |                |
| config_browser_version      | varchar(20)           | YES  |     | NULL    |                |
| config_client_type          | tinyint(1)            | YES  |     | NULL    |                |
| config_device_brand         | varchar(100)          | YES  |     | NULL    |                |
| config_device_model         | varchar(100)          | YES  |     | NULL    |                |
| config_device_type          | varchar(100)          | YES  |     | NULL    |                |
| config_os                   | char(3)               | YES  |     | NULL    |                |
| config_os_version           | varchar(100)          | YES  |     | NULL    |                |
+-----------------------------+-----------------------+------+-----+---------+----------------+
✨ Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bluegeek9

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024