Jaromir Jagr said he barely slept the last two nights after he was traded to the Bruins from Dallas Tuesday and then tried to get comfortable in his new city Wednesday.

After he scored the lone goal in the Bruins’ 1-0 win against New Jersey at TD Garden Thursday, Jagr could rest assured that he’s already made the type of impact the Bruins wanted from him.

Jagr scored the goal 1:20 into the second period off a feed from Brad Marchand. The speedy winger streaked down the left side before his pass deflected off Jagr’s left skate into the goal behind Martin Brodeur.

“Sometimes you have to be lucky to score, and I think that’s the first time I scored with my leg I guess,” Jagr said. “When I was 25, I wouldn’t have liked that goal, but at 41 I’ll take anything right now.”

Jagr logged 19:12 of ice time and fired five shots on net. He was on the ice for an entire power play at one point, which wasn’t necessarily by design. He blocked one shot and threw a hit. Despite his offensive heroics, Jagr was apologetic to his linemates Brad Marchand and Tyler Seguin, and his new team as a whole.

“I told them, ‘I’ve got to get better.’ I felt bad for them they had to play with me, but I’ve got to get better. That’s for sure,” Jagr explained.

Luckily for Jagr, he had his speedy young linemates to set him up in a crucial situation.

“I knew it was coming,” Jagr said of Marchand’s pass. “They always said, ‘You’ve got to drive to the net,’ and now I understand why they were saying that, and I never really drive to the net, now I know why. If I knew it when I was 20 I would have 100 more goals by now.”