A data-driven method to design reference tracking controllers for nonlinear systems is presented. The technique does not derive explicitly a model of the system, rather it delivers directly a time-varying state-feedback controller by combining an on-line and an off-line scheme. Like in other on-line algorithms, the measurements collected in closed-loop operation are exploited to modify the controller in order to improve the tracking performance over time. At the same time, a predictable closed-loop behavior is guaranteed by making use of a batch of available data, which is a feature of off-line algorithms. The feedback controller is parameterized with kernel functions and the design approach exploits results in set membership identification...