private function getSessionIdsByStore($events)
    {
        $sessionIdsByStore = [];

        foreach ($events as $event) {
            if (isset($event['page']['store_id']) && isset($event['session']['uid'])) {
                $sessionIdsByStore[$event['page']['store_id']][] = $event['session']['uid'] ?? 0;
            }
        }

        return $sessionIdsByStore;
    }
private function getSessionIdsByStore($events)
    {
        $sessionIdsByStore = [];

        foreach ($events as $event) {
            if (isset($event['page']['store_id']) && isset($event['session']['uid'])) {
                $sessionIdsByStore[$event['page']['store_id']][] = $event['session']['uid'] ?? 0;
            }
        }

        return $sessionIdsByStore;
    }
private function getSessionIdsByStore ( $ events ) { $ sessionIdsByStore = [ ] ; foreach ( $ events as $ event ) { if ( isset ( $ event [ 'page' ] [ 'store_id' ] ) && isset ( $ event [ 'session' ] [ 'uid' ] ) ) { $ sessionIdsByStore [ $ event [ 'page' ] [ 'store_id' ] ] [ ] = $ event [ 'session' ] [ 'uid' ] ?? 0 ; } } return $ sessionIdsByStore ; }
Extract session ids from event by store.

@param array $events Events

@return array
Extract session ids from event by store .