We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
See https://github.com/matomo-org/matomo/blob/4.0.5/plugins/PrivacyManager/Controller.php#L189 where it uses hard coded the path to /matomo.js. However, the path may be changed through DI like this:
/matomo.js
'Piwik\Plugins\CustomJsTracker\TrackerUpdater' => DI\decorate(function ($previous) { $to = PIWIK_DOCUMENT_ROOT . '/'; $to .= \Piwik\SettingsPiwik::rewriteMiscUserPathWithInstanceId('misc/user/'); $to .= 'matomo.js'; $previous->setToFile($to); return $previous; }),
To get the correct path it might be better to use something like
StaticContainer::get('Piwik\Plugins\CustomJsTracker\TrackerUpdater')->getToFile()->getPath();
The text was updated successfully, but these errors were encountered:
sgiehl
Successfully merging a pull request may close this issue.
See https://github.com/matomo-org/matomo/blob/4.0.5/plugins/PrivacyManager/Controller.php#L189 where it uses hard coded the path to
/matomo.js
. However, the path may be changed through DI like this:To get the correct path it might be better to use something like
The text was updated successfully, but these errors were encountered: