mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 10:10:48 +01:00
feat(components): add Matomo analytics component
Add Matomo analytics tracking code to a new Blade component for easy integration across views.
This commit is contained in:
16
resources/views/components/matomo-analytics.blade.php
Normal file
16
resources/views/components/matomo-analytics.blade.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<script>
|
||||
var _paq = window._paq = window._paq || [];
|
||||
_paq.push(['trackPageView']);
|
||||
_paq.push(['enableLinkTracking']);
|
||||
(function() {
|
||||
var u = "//data.rico.sh/";
|
||||
_paq.push(['setTrackerUrl', u + 'matomo.php']);
|
||||
_paq.push(['setSiteId', '1']);
|
||||
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>
|
||||
@@ -9,7 +9,6 @@
|
||||
this tells darkreader to disable on the site. -->
|
||||
<meta name="darkreader-lock">
|
||||
|
||||
|
||||
<!-- Favicon -->
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/img/icons/apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/img/icons/favicon-32x32.png">
|
||||
@@ -45,6 +44,7 @@
|
||||
@vite(['resources/css/app.css', 'resources/js/app.js'])
|
||||
|
||||
@stack('top_scripts')
|
||||
<x-matomo-analytics />
|
||||
</head>
|
||||
|
||||
<body class="antialiased bg-stone-900 dark scroll-smooth">
|
||||
|
||||
Reference in New Issue
Block a user