From 0e5944ca8967427ee21208ff3cc6fcf10ddb59b2 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 26 Feb 2019 17:50:42 +0100 Subject: [PATCH] wip #2609 @0.25 --- src/GtagFrontProvider.php | 2 +- src/ScriptViewCreator.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GtagFrontProvider.php b/src/GtagFrontProvider.php index 294f095..dceb346 100644 --- a/src/GtagFrontProvider.php +++ b/src/GtagFrontProvider.php @@ -17,7 +17,7 @@ class GtagServiceProvider extends ServiceProvider $this->loadViewsFrom(__DIR__ . '/../resources/views', 'gtag'); $this->publishes([ - __DIR__ . '/../resources/config/config.php' => config_path('googleanalytics.php'), + __DIR__ . '/../resources/config/config.php' => config_path('gtag.php'), ], 'config'); $this->publishes([ diff --git a/src/ScriptViewCreator.php b/src/ScriptViewCreator.php index 9a71ff4..8bac860 100644 --- a/src/ScriptViewCreator.php +++ b/src/ScriptViewCreator.php @@ -24,7 +24,7 @@ class ScriptViewCreator */ public function create(View $view) { - if ($this->googleAnalytics->isObserveDnt() && isset($_SERVER['HTTP_DNT']) && $_SERVER['HTTP_DNT'] === 1) { + if ($this->googleAnalytics->isObserveDnt() && isset($_SERVER['HTTP_DNT']) && $_SERVER['HTTP_DNT'] === '1') { $this->googleAnalytics->disable(); } if ($this->googleAnalytics->isEnabled() && empty($this->googleAnalytics->id())) { -- 2.39.5