Skip to content

Conversation

@mneudert
Copy link
Member

@mneudert mneudert commented Sep 23, 2025

Description:

The new "Agent Mode" provided by ChatGPT/NovaAct is using a real browser instance to perform tasks on behalf of the user.

At the moment these visits are tracked just like any other browser, and there is no way to detect them and generate metrics/reports for those agents.

A new AIAgents plugin will flag NovaAct and ChatGPT requests, and prepares flagging other agents once we know how to detect them. The plugin uses two new dependent segments ("ai agent" and "human") to provide VisitSummary metrics.

Review

@mneudert mneudert force-pushed the ai-activity branch 3 times, most recently from e0941e2 to a40b974 Compare September 26, 2025 11:08
@mneudert mneudert added the Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. label Sep 26, 2025
@mneudert mneudert requested a review from a team September 26, 2025 12:22
@mneudert mneudert added this to the 5.5.0 milestone Sep 26, 2025
@mneudert mneudert marked this pull request as ready for review September 29, 2025 17:35
@sgiehl sgiehl self-assigned this Sep 30, 2025
@sgiehl sgiehl modified the milestones: 5.5.0, 5.6.0 Oct 1, 2025
sgiehl
sgiehl previously requested changes Oct 1, 2025
Copy link
Member

@sgiehl sgiehl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code overall looks clean and straight forward. No real issues found.
However, I've left a couple of questions that we should clarify before merging.

@sgiehl sgiehl assigned mneudert and unassigned sgiehl Oct 7, 2025
@mneudert mneudert force-pushed the ai-activity branch 7 times, most recently from 1addffe to 769f648 Compare October 20, 2025 21:28
Copy link
Contributor

@michalkleiner michalkleiner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was just having a look through the code to see how things are done, and left a few minor comments along the way, hope that's ok :)

@mneudert mneudert force-pushed the ai-activity branch 7 times, most recently from 0e19337 to 9c636ad Compare October 21, 2025 21:42
@mneudert mneudert force-pushed the ai-activity branch 2 times, most recently from 6488334 to 21c365b Compare October 27, 2025 16:47
@mneudert mneudert requested a review from sgiehl October 27, 2025 17:30
sgiehl

This comment was marked as outdated.

Copy link
Member

@sgiehl sgiehl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems some new related tests are failing for PHP 8, those might need some investigation. Otherwise everything looks fine

@mneudert
Copy link
Member Author

Forced a specific date setup in that test. With "now = 12:00" and tracking data being created from 06:00 on. Worked at least the last CI run, but then again it did not fail for most runs before 🙈

@mneudert mneudert requested a review from sgiehl October 28, 2025 17:13
sgiehl
sgiehl previously approved these changes Oct 29, 2025
@mneudert mneudert changed the title Capture new metrics for ChatGPT Agent requests Capture new metrics for AI Agent requests Nov 3, 2025
sgiehl
sgiehl previously approved these changes Nov 3, 2025
@mneudert mneudert merged commit 7238624 into 5.x-dev Nov 3, 2025
26 of 28 checks passed
@mneudert mneudert deleted the ai-activity branch November 3, 2025 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Development

Successfully merging this pull request may close these issues.

4 participants