mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-08-13 01:24:40 +02:00
Removed deprecated Google and Motomo analytics configuration options
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
@@ -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>
|
@@ -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 -->
|
@@ -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 }} • {{ config('site_title') }}</title>
|
||||
|
||||
<div class="{{ theme }}" x-data="application" x-effect="storeThemeCookie($store.theme)" :class="{ 'dark': $store.theme === 'dark' }">
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user