Skip to content

Conversation

@chippison
Copy link
Contributor

Description

UX-341
We need to update the page title everytime active Segment is changed as well as changes in the Menu Category and Subcategory

CHANGE #1 SEGMENT in Page title

Currently, the Browser Page title,
<title>Demo Site - 2025-10-14 - Web Analytics Reports - Matomo</title>
But because a segment called Click liveaboard.com ad is selected in the UI at this URL,
we expect instead the Segment name to be displayed, AFTER the date in the title, like this:

CHANGE #2 Current Menu Category and Subcategory in Page title

So for example when viewing the goal My Goal Name which is inside the “Goals” menu,
We concatenate the Menu category and the Menu sub-category together with > character as separator

With both the Segment and Menu Category and Subcategory:

<title>Demo Site - 2025-10-14 - Goals > My Goal Name - Click liveaboard.com ad - Web Analytics Reports - Matomo</title>

The default title will be (after login):

<title>Demo Site - 2025-11-23 - Dashboard - All visits - Web Analytics Reports - Matomo</title>

Checklist

  • [NA] I have understood, reviewed, and tested all AI outputs before use
  • [NA] All AI instructions respect security, IP, and privacy rules

Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants