Removed tracking code.

This commit is contained in:
flash 2021-07-31 04:44:01 +00:00
parent 70e340be34
commit 2929adcc03
2 changed files with 0 additions and 24 deletions

View file

@ -248,14 +248,6 @@ if(parse_url($_SERVER['PHP_SELF'], PHP_URL_PATH) !== '/index.php')
if(!empty($userInfo))
Template::set('current_user', $userInfo);
if(Config::has('matomo.endpoint') && Config::has('matomo.javascript') && Config::has('matomo.site')) {
Template::set([
'matomo_endpoint' => Config::get('matomo.endpoint', Config::TYPE_STR),
'matomo_js' => Config::get('matomo.javascript', Config::TYPE_STR),
'matomo_site' => Config::get('matomo.site', Config::TYPE_STR),
]);
}
$inManageMode = starts_with($_SERVER['REQUEST_URI'], '/manage');
$hasManageAccess = User::hasCurrent()
&& !User::getCurrent()->hasActiveWarning()

View file

@ -58,22 +58,6 @@
<script type="text/javascript">
window.addEventListener('DOMContentLoaded', function() { Misuzu(); });
</script>
{% if matomo_endpoint is defined and matomo_js is defined and matomo_site is defined %}
<script type="text/javascript">
var _paq = window._paq || [];
_paq.push(['disableCookies']);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
_paq.push(['setTrackerUrl', '{{ matomo_endpoint }}']);
_paq.push(['setSiteId', '{{ matomo_site }}']);
var g = document.createElement('script');
g.type = 'text/javascript'; g.async = true;
g.defer = true; g.src = '{{ matomo_js }}';
document.head.appendChild(g);
})();
</script>
{% endif %}
<script src="/vendor/timeago/timeago.min.js" type="text/javascript"></script>
<script src="/vendor/timeago/timeago.locales.min.js" type="text/javascript"></script>
<script src="/vendor/highlightjs/highlight.pack.js" type="text/javascript"></script>