Removed deprecated Google and Motomo analytics configuration options

This commit is contained in:
Chris Kankiewicz
2025-07-28 14:06:03 -07:00
parent 4c568fba59
commit 1a0b15f8e1
5 changed files with 0 additions and 67 deletions

View File

@@ -86,32 +86,6 @@ return [
*/
'zip_compress' => env('ZIP_COMPRESS', false),
/**
* DEPRECATED: Will be removed in a future release.
*
* Your Google analytics tracking ID.
*
* Expected format: 'UA-123456789-0'
* Default value: false
*/
'google_analytics_id' => env('GOOGLE_ANALYTICS_ID', false),
/**
* DEPRECATED: Will be removed in a future release.
*
* Your Matomo analytics URL.
*
* Default value: false
*/
'matomo_analytics_url' => env('MATOMO_ANALYTICS_URL', false),
/**
* Your Matomo analytics site ID.
*
* Default value: false
*/
'matomo_analytics_site_id' => env('MATOMO_ANALYTICS_SITE_ID', false),
/**
* Sorting order of files and folders.
*

View File

@@ -1,11 +0,0 @@
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{ config("google_analytics_id") }}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
{% if config('google_analytics_id', false) %}
gtag('config', '{{ config("google_analytics_id") }}');
{% endif %}
</script>

View File

@@ -1,15 +0,0 @@
<!-- Matomo -->
<script type="text/javascript">
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="{{ config('matomo_analytics_url') }}/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '{{ config("matomo_analytics_site_id") }}']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->

View File

@@ -12,16 +12,6 @@
{{ analytics() | raw }}
{# NOTE: To be removed in a future release #}
{% if config('google_analytics_id', false) %}
{% include 'components/analytics/google.twig' %}
{% endif %}
{# NOTE: To be removed in a future release #}
{% if config('matomo_analytics_url', false) and config('matomo_analytics_site_id', false) %}
{% include 'components/analytics/matomo.twig' %}
{% endif %}
<title>{{ title }} &bull; {{ config('site_title') }}</title>
<div class="{{ theme }}" x-data="application" x-effect="storeThemeCookie($store.theme)" :class="{ 'dark': $store.theme === 'dark' }">

View File

@@ -5,11 +5,6 @@ DISPLAY_READMES=true
READMES_FIRST=false
ZIP_DOWNLOADS=true
GOOGLE_ANALYTICS_ID=false
MATOMO_ANALYTICS_URL=false
MATOMO_ANALYTICS_SITE_ID=false
SORT_ORDER=type
REVERSE_SORT=false