]> _ Git - cubist_gtag.git/commitdiff
wip #2609 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 26 Feb 2019 16:50:42 +0000 (17:50 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 26 Feb 2019 16:50:42 +0000 (17:50 +0100)
src/GtagFrontProvider.php
src/ScriptViewCreator.php

index 294f09562263ad30bc4ce41d6ac55d17b07bd8d2..dceb346e0eb7e8c8421dbed96402f886a540c52d 100644 (file)
@@ -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([
index 9a71ff43e719429a429a904c281a55c71477005d..8bac86095319763b9d99e6d5e2a2bee910f58b74 100644 (file)
@@ -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())) {