Skip to content

Commit ded8e10

Browse files
committed
Remove honor DNT option
1 parent b51cf7f commit ded8e10

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## [0.2.0] - 2022-06-14
4+
5+
### Removed
6+
7+
- Honor DNT.
8+
39
## [0.1.2] - 2022-06-14
410

511
### Added
@@ -22,6 +28,7 @@
2228

2329
- TrackPageview middleware.
2430

31+
[0.2.0]: https://github.com/pirsch-analytics/laravel-pirsch/releases/tag/0.2.0
2532
[0.1.2]: https://github.com/pirsch-analytics/laravel-pirsch/releases/tag/0.1.2
2633
[0.1.1]: https://github.com/pirsch-analytics/laravel-pirsch/releases/tag/0.1.1
2734
[0.1.0]: https://github.com/pirsch-analytics/laravel-pirsch/releases/tag/0.1.0

config/pirsch.php

-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,4 @@
44

55
'token' => env('PIRSCH_TOKEN'),
66

7-
'honor_dnt' => env('PIRSCH_HONOR_DNT', false),
8-
97
];

src/Http/Middleware/TrackPageview.php

-4
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ public function terminate(Request $request, mixed $response): void
1919
return;
2020
}
2121

22-
if (config('pirsch.honor_dnt') && $request->headers->get('DNT')) {
23-
return;
24-
}
25-
2622
Http::withToken(config('pirsch.token'))
2723
->post('https://api.pirsch.io/api/v1/hit', [
2824
'hostname' => $request->getHost(),

0 commit comments

Comments
 (0)