Remove GA
This commit is contained in:
parent
dd9c53683d
commit
a1e73aefc0
3 changed files with 1 additions and 44 deletions
|
|
@ -74,7 +74,6 @@ MESBR_COUPON_2_CHARCUT=""
|
|||
MESBR_COUPON_3_CHARCUT=""
|
||||
|
||||
## GOOGLE
|
||||
ANALYTICS_GOOGLE_ID=
|
||||
GOOGLE_MAP_API_KEY=
|
||||
|
||||
# Google Recaptcha
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
'apiKey' => env('GOOGLE_MAP_API_KEY'),
|
||||
'analyticsKey' => env('ANALYTICS_GOOGLE_ID')
|
||||
'apiKey' => env('GOOGLE_MAP_API_KEY')
|
||||
];
|
||||
|
|
|
|||
|
|
@ -178,47 +178,6 @@ $cookies['matomo']['script'] .= <<<SCRIPT
|
|||
})();
|
||||
}
|
||||
SCRIPT;
|
||||
|
||||
// ANALYCTICS
|
||||
$cookies['analytics'] = [
|
||||
'name' => __('MESURES D’AUDIENCE') . ' - Google Analytics',
|
||||
'description' => __('Service d\'analyse d\'audience'),
|
||||
'link' => 'https://support.google.com/analytics/answer/6004245',
|
||||
'labelLink' => __('En savoir +'),
|
||||
'cookies' => [
|
||||
'_ga',
|
||||
'_gat_gtag_' . str_replace("-", "_", config("ldcweb-cookies.analyticsKey")),
|
||||
'_gid'
|
||||
]
|
||||
];
|
||||
|
||||
$cookies['analytics']['script'] = <<<SCRIPT
|
||||
function () {
|
||||
(function (d, t) {
|
||||
var g = d.createElement(t),
|
||||
s = d.getElementsByTagName(t)[0];
|
||||
g.src = 'https://www.googletagmanager.com/gtag/js?id=
|
||||
SCRIPT;
|
||||
$cookies['analytics']['script'] .= config("google.analyticsKey");
|
||||
$cookies['analytics']['script'] .= <<<SCRIPT
|
||||
';
|
||||
g.id = 'analytics';
|
||||
s.parentNode.insertBefore(g, s)
|
||||
}(document, 'script'));
|
||||
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag() {
|
||||
dataLayer.push(arguments);
|
||||
}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', '
|
||||
SCRIPT;
|
||||
$cookies['analytics']['script'] .= config("google.analyticsKey");
|
||||
$cookies['analytics']['script'] .= <<<SCRIPT
|
||||
');
|
||||
}
|
||||
SCRIPT;
|
||||
@endphp
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue