It's been good year for Dale Earnhardt Jr. The latest positive for the popular NASCAR driver is a three-year sponsorship with Nationwide Insurance, announced on Friday.

Under the agreement with the No. 88 Hendrick Motorsports team, Nationwide will be a primary sponsor for 12 Sprint Cup races in 2015 and 13 each during the two years after that. The company also will be an associate sponsor all three seasons.

Hendrick Motorsports owner Rick Hendrick says through the partnership "we'll build another program that moves the needle for their business. The opportunities are endless."

Earnhardt is a two-time Nationwide Series champion and has 20 Sprint Cup wins. He said the company is a good fit with his team

"I can't imagine a better scenario and I think Nationwide is very excited to get going and start working together in the Cup series," Earnhardt said.

Nationwide is ending its title sponsorship of the second-tier series at the end of this season after seven years. The company sponsored Ricky Stenhouse Jr. for four Sprint Cup races this season and remains signed on as NASCAR's official auto, home, life and business insurance partner through 2017. Earnhardt, who co-owns a Nationwide team, said he's hearing that the search for a new title sponsor "won't be a challenging one, that there is some good interest there."