- Issue created by @mschudders
- Open on Drupal.org →Core: 10.2.1 + Environment: PHP 8.1 & MySQL 5.7last update
about 1 year ago Waiting for branch to pass
Uncaught TypeError: drupalSettings.matomo is undefined
In matomo.module in function:
function matomo_page_attachments(array &$page) {
we have:
if ((_matomo_visibility_pages() || in_array($status, $trackable_status_codes)) && _matomo_visibility_user($account)) {
in that if: "trackMailto" is set.
Thus when javascript tries to check for drupalSettings.matomo.trackMailto inside of matomo.js this error gets triggered?
Drupal 10 + Js aggregation.
When editing a block on a layout builder page > this error is triggered.
Check if the variable exists (or set it by default?)
Review
Needs review
1.23
Code