This commit is contained in:
2025-11-23 02:05:53 +01:00
parent c899139fdd
commit f08a334676
4 changed files with 43 additions and 2 deletions

View File

@@ -1,4 +1,9 @@
<?php <?php
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);

View File

@@ -1,4 +1,9 @@
<?php <?php
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);

View File

@@ -78,3 +78,4 @@ foreach ($GLOBALS['page_footer_scripts'] as $script) {
</div> </div>
</body> </body>
</html> </html>
<?php tpl('matomo', 'structure'); ?>

View 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 ?>&amp;rec=1"
style="border:0;" alt="" />
</p>
</noscript>
<!-- End Matomo -->