Skip to content

Commit 14af3c2

Browse files
osbreadriaandotcom
authored andcommitted
Remove "Enabled" checkbox
1 parent 5c57ef1 commit 14af3c2

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

src/Plugin.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,6 @@ protected function defineAdminPage(): void
9999
->placeholder('Enter your custom domain or leave it empty.')
100100
->description('E.g. api.example.com. Leave empty to use the default domain (most users).')
101101
->docs('https://docs.simpleanalytics.com/bypass-ad-blockers');
102-
103-
$tab->checkbox(SettingName::ENABLED, 'Enabled')
104-
->default(true)
105-
->description('Enable or disable Simple Analytics on your website.');
106102
})
107103
->tab('Ignore Rules', function (Tab $tab) {
108104
$tab->icon(get_icon('eye-slash'));

src/TrackingPolicy.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ class TrackingPolicy
66
{
77
public function shouldCollectAnalytics(): bool
88
{
9-
if (Setting::boolean(SettingName::ENABLED, true) === false) {
10-
return false;
11-
}
12-
139
if ($this->clientIpExcluded($_SERVER['HTTP_X_FORWARDED_FOR'] ?? $_SERVER['REMOTE_ADDR'])) {
1410
return false;
1511
}

0 commit comments

Comments
 (0)