settings = $settings; } /** * Whether a platform that is on, or the Google tag, sends leads. */ public function is_met(): bool { $settings = $this->settings->all(); $ga4 = Events::for_ga4( $settings ); return Events::any_has( 'lead', $settings ) || ( null !== $ga4 && in_array( 'lead', $ga4['events'], true ) ); } }