matomo-org / matomo-org/plugin-TrackingSpamPrevention

Feature request: Dimension metric abnormalities

Offen
#167 4 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
PHP
Sterne
18
Forks
10
Ø Merge
20 Std. 11 Min.
Gemergte PRs (30 T.)
1

Beschreibung

Great news: We may soon have an Exclude by dimensions tool, which will help bot visits from getting registered as regular visits, offering to identify and block them via dimensions, such as resolution, country and browser version:

  • #162

We could help the user with these tasks:

  1. Discover relevant dimension patterns of cloaked bots
  2. Create "Exclude by dimension"-rules to block bot visits

Proposal

Cloaked bots usually share certain dimensions, like resolution, country and browser version, and we could offer a new "Dimension metric abnormalities"-widget to more easily discover these dimensions, and make a Matomo administrator aware of the characteristics of a potential bot attack.

Dimension metric abnormalities widget

All dimensions could be monitored behind the scenes, and if a dimension metric (like a specific resolution) makes a huge jump, it would be immediately obvious.

It could be exposed in a new Dashboard widget like below, which admins can add to the front page:

Dimension metric abnormalities

Dimension Unique visitors
Resolution: 375x812 +2.100%
Configuration: Chrome Mobile +1.160%
Country: Bangladesh +890%
Country: Myanmar +610%
Country: USA +20%

Create Dimension metric abnormalities rule link

At the bottom of the widget, there could be a "Create Exclude by dimension rule with top 3" link to the new "Exclude by dimensions"-feature, with these value pre-selected, ready to click "Save":

Resolution: 375x812
--AND
Configuration: Chrome Mobile
--AND
Country: Bangladesh

The link could be something along these lines:
https://example.org?segment=resolution==375x812;countryName==Bangladesh;browserName==Chrome%2520Mobile&method=TrackingSpamPrevention.setDataSubjects

Since Myanmar (number 4) is also relevant, the preset rule under the TrackingSpamPrevention section could be expanded to include that as well by the admin like this:

Resolution: 375x812
--AND
Configuration: Chrome Mobile
--AND
--Country: Bangladesh
----OR
--Country: Myanmar

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginnen Sie mit der Prüfung der verwandten Arbeit zu exclude-by-dimensions in #162 und des im Vorschlag erwähnten Einstiegspunkts TrackingSpamPrevention.setDataSubjects. Legen Sie fest, wie das Dashboard-Widget für Dimension-Metrikunregelmäßigkeiten abnormale Dimension-Werte erkennen und anzeigen soll und wie sein Top-Drei-Link Ausschlussregeln vorauswählen soll. Als erledigt gilt die Aufgabe, wenn Widget, Regel-Link und die vom Administrator gesteuerte Ländergruppierung wie beschrieben zusammenarbeiten.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
php
Bereich
analytics, frontend
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.