Skip to content

ETT-1679: move class name to fix matomo script load - #244

Open
carylwyatt wants to merge 2 commits into
mainfrom
ETT-1679-ssd-matomo
Open

ETT-1679: move class name to fix matomo script load#244
carylwyatt wants to merge 2 commits into
mainfrom
ETT-1679-ssd-matomo

Conversation

@carylwyatt

@carylwyatt carylwyatt commented Jul 28, 2026

Copy link
Copy Markdown
Member

There's not really anything to test here, just need a second set of eyes on this.

I tried to test this in matomo's preview mode but couldn't find the customUrl set in the data layer. But! When I found myself in the logs, you can see the altered/custom url in the pageview history. SSD url paths are like /cgi/ssd/id?=umn.... but the url has been rewritten with the path as /ssd/umn... which is a closer match for how we track pt pageviews in matomo.

image

@carylwyatt
carylwyatt requested a review from eumalin July 28, 2026 17:05
Comment thread ssd/web/ssdviewer.xsl
</head>

<body style="opacity: 0;">
<body class="apps" style="opacity: 0;">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Moving the class to body makes sense for Matomo. One thing: ssd/web/ssdstyles.css line 14 targets #mdpUberContainer.apps, and that element loses the apps class here, so the rule stops applying and the container loses its left margin. Could we change it to #mdpUberContainer instead?

@carylwyatt
carylwyatt force-pushed the ETT-1679-ssd-matomo branch from 1589f8d to f4b16ad Compare July 30, 2026 17:50
@carylwyatt
carylwyatt requested a review from eumalin July 30, 2026 17:50
@carylwyatt

Copy link
Copy Markdown
Member Author

@eumalin I removed the apps class from that selector, thanks for catching that! I tested it locally and the "washi tape" is appearing for users with elevated access activated now. I also removed an empty p selector for good measure.

@eumalin eumalin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good, thanks for addressing the comment!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants