Skip to content

remove: drop DNT header support and configuration#47

Merged
me-shaon merged 4 commits intomainfrom
remove-dnt-header-configuration
Sep 17, 2025
Merged

remove: drop DNT header support and configuration#47
me-shaon merged 4 commits intomainfrom
remove-dnt-header-configuration

Conversation

@theihasan
Copy link
Copy Markdown
Collaborator

What: Remove Do Not Track (DNT) handling and its configuration.
Why: DNT is widely considered obsolete and is not a reliable or legally recognized privacy signal. Keeping it adds complexity without meaningful benefit.
Changes
Removed privacy.respect_dnt from config/request-analytics.php
Removed DNT short-circuit check from src/Traits/CaptureRequest.php::capture()
Breaking changes
The REQUEST_ANALYTICS_RESPECT_DNT env/config key is no longer supported.
Requests with header DNT: 1 will no longer be excluded from analytics.
Migration
Remove REQUEST_ANALYTICS_RESPECT_DNT from your .env (if present).

@theihasan theihasan self-assigned this Sep 16, 2025
@theihasan theihasan requested a review from me-shaon September 16, 2025 17:49
@me-shaon
Copy link
Copy Markdown
Owner

@theihasan Tests are failing. Need to fix the tests.

@theihasan
Copy link
Copy Markdown
Collaborator Author

@theihasan Tests are failing. Need to fix the tests.

pushed a fix

@me-shaon me-shaon merged commit 6261731 into main Sep 17, 2025
18 checks passed
@me-shaon me-shaon deleted the remove-dnt-header-configuration branch September 21, 2025 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants