mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 18:20:48 +01:00
feat(analytics): Add Plausible analytics script, remove Matomo script
- Added a new file `plausible.blade.php` for Plausible analytics script. - Removed the `matomo-analytics.blade.php` file and replaced its usage with the new Plausible analytics component in `app.blade.php`.
This commit is contained in:
1
resources/views/components/analytics/plausible.blade.php
Normal file
1
resources/views/components/analytics/plausible.blade.php
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<script defer data-domain="rico.sh" src="https://data.rico.sh/js/script.js"></script>
|
||||||
@@ -1 +0,0 @@
|
|||||||
<script>var _paq=window._paq=window._paq||[];_paq.push(["setDocumentTitle",document.domain+"/"+document.title]),_paq.push(["setDoNotTrack",!0]),_paq.push(["trackPageView"]),_paq.push(["enableLinkTracking"]),function(){var e="https://data.rico.sh/";_paq.push(["setTrackerUrl",e+"matomo.php"]),_paq.push(["setSiteId","1"]);var a=document,t=a.createElement("script"),p=a.getElementsByTagName("script")[0];t.async=!0,t.src=e+"matomo.js",p.parentNode.insertBefore(t,p)}()</script><noscript><p><img alt=""referrerpolicy=no-referrer-when-downgrade src="https://data.rico.sh/matomo.php?idsite=1&rec=1"style=border:0></p></noscript>
|
|
||||||
@@ -44,7 +44,7 @@
|
|||||||
@vite(['resources/css/app.css', 'resources/js/app.js'])
|
@vite(['resources/css/app.css', 'resources/js/app.js'])
|
||||||
|
|
||||||
@stack('top_scripts')
|
@stack('top_scripts')
|
||||||
<x-matomo-analytics />
|
<x-analytics.plausible />
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="antialiased bg-stone-900 dark scroll-smooth">
|
<body class="antialiased bg-stone-900 dark scroll-smooth">
|
||||||
|
|||||||
Reference in New Issue
Block a user