File tree Expand file tree Collapse file tree 2 files changed +0
-8
lines changed
Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Original file line number Diff line number Diff 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 ' ));
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments