stats
This commit is contained in:
@@ -2,3 +2,8 @@
|
|||||||
if (!defined('ASSET_VERSION')) {
|
if (!defined('ASSET_VERSION')) {
|
||||||
define('ASSET_VERSION', '2024-11-22'); // oder deine aktuelle Version
|
define('ASSET_VERSION', '2024-11-22'); // oder deine aktuelle Version
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Matomo Einstellungen
|
||||||
|
define('MATOMO_URL', 'https://matomo.my-statistics.info/');
|
||||||
|
define('MATOMO_ENABLED', true);
|
||||||
|
define('MATOMO_SITE_ID', 7);
|
||||||
@@ -2,3 +2,8 @@
|
|||||||
if (!defined('ASSET_VERSION')) {
|
if (!defined('ASSET_VERSION')) {
|
||||||
define('ASSET_VERSION', time()); // oder deine aktuelle Version
|
define('ASSET_VERSION', time()); // oder deine aktuelle Version
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Matomo Einstellungen
|
||||||
|
define('MATOMO_URL', 'https://matomo.my-statistics.info/');
|
||||||
|
define('MATOMO_ENABLED', true);
|
||||||
|
define('MATOMO_SITE_ID', 8);
|
||||||
@@ -78,3 +78,4 @@ foreach ($GLOBALS['page_footer_scripts'] as $script) {
|
|||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
<?php tpl('matomo', 'structure'); ?>
|
||||||
|
|||||||
30
partials/structure/matomo.php
Normal file
30
partials/structure/matomo.php
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
<?php if (!defined('MATOMO_SITE_ID')) return; ?>
|
||||||
|
<?php if (!defined('MATOMO_ENABLED') || !MATOMO_ENABLED) return; ?>
|
||||||
|
|
||||||
|
<!-- Matomo -->
|
||||||
|
<script>
|
||||||
|
var _paq = window._paq = window._paq || [];
|
||||||
|
_paq.push(["setDomains", ["*.usbcheck.it","*.ismyusbfake.com","*.usbcheck.it/fakecheck"]]);
|
||||||
|
_paq.push(['trackPageView']);
|
||||||
|
_paq.push(['enableLinkTracking']);
|
||||||
|
|
||||||
|
(function() {
|
||||||
|
var u = "<?= rtrim(MATOMO_URL, '/') ?>/";
|
||||||
|
_paq.push(['setTrackerUrl', u + 'matomo.php']);
|
||||||
|
_paq.push(['setSiteId', '<?= MATOMO_SITE_ID ?>']);
|
||||||
|
|
||||||
|
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
||||||
|
g.async=true;
|
||||||
|
g.src=u + 'matomo.js';
|
||||||
|
s.parentNode.insertBefore(g,s);
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<noscript>
|
||||||
|
<p>
|
||||||
|
<img referrerpolicy="no-referrer-when-downgrade"
|
||||||
|
src="<?= rtrim(MATOMO_URL,'/') ?>/matomo.php?idsite=<?= MATOMO_SITE_ID ?>&rec=1"
|
||||||
|
style="border:0;" alt="" />
|
||||||
|
</p>
|
||||||
|
</noscript>
|
||||||
|
<!-- End Matomo -->
|
||||||
Reference in New Issue
Block a user