Ronald Koeman believes Barcelona demonstrated they are on the right track by overcoming an early setback to win 3-2 at Athletic Bilbao.

Inaki Williams raced clear to put the hosts, who had Marcelino in charge for the first time, in front inside three minutes of Wednesday's LaLiga clash.

However, Barca responded impressively, goals from Pedri and Lionel Messi putting them in front by the break before the latter increased their lead just after the hour mark.

Koeman had to endure a nervy finish after Iker Muniain's 90th-minute finish, but promised his squad will "fight until the last match" in LaLiga after moving up to third in the table.

"The final result is a bit short because we have been superior in many phases," Koeman said, having now recorded three away wins on the spin in LaLiga for the first time in his reign.

"They made it 1-0 and we did not have the defensive coordination, but then we controlled [the game].

"I am happy with the result and with how we have achieved it. We have deserved it. Winning because of our game and our opportunities.

"The teamwork has been phenomenal. We will fight until the last match. There is distance [to go], but we are on the right track." 

Messi will understandably dominate the agenda having scored twice, but Koeman was also quick to praise the performance of Pedri, who completed over 90 per cent of his attempted passes.

The teenage midfielder scored the equaliser, heading in Frenkie de Jong's cutback cross with goalkeeper Unai Simon out of position, while it was his backheeled pass that set up Messi to make it 2-1.

"Pedri is showing despite his youth that he is very mature," the Dutchman said in his post-match interview.

"Messi has always shown his desire but today also with goals. It is very important."

Messi's long-term future at Camp Nou may be unclear but his recent form has shown no lack of commitment to the cause; he has been involved in 10 goals in his last 10 games in all competitions.

Barca are next in action on Saturday, when they visit Granada.