matomo-org / matomo-org/plugin-CustomAlerts

Link Custom Alerts with Segments

Open
#47 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
17
Forks
24
Avg merge
3d 3h
Merged PRs (30d)
7

Description

Hi,
Currently custom alerts are supporting only 1 condition.
For example, if we want to be alerted when a visit coming from a specific campaign reached a goal... we cannot know that.
One way to do it (this is what Google Analytics is doing) is to support segments within the alert.
As a result it will be possible to amplify the custom alerts possibilities. For example the segment include only the visits from a specific campaign, then the condition of the alert is the goal report, when the number of visits is higher than 1 then fire the alert.
Do you think it is feasible?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue does not identify any files, tests, or entry points, so first map how Custom Alerts currently represent a single condition and how Matomo segments are exposed. Done means defining and implementing segment-aware custom alerts, including the campaign-and-goal example, with tests covering the combined filtering and alert condition.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.