The year 2012 is nearing its end, and now's a good opportunity to look at what happened throughout the year to the stocks you follow. If you know the important things that a company achieved, as well as any challenges it failed to overcome, then you can make a better decision about whether it really deserves a spot in your portfolio.

Today, I'll look at Priceline.com (BKNG 1.76%). The online travel portal is famous for its name-your-own-price service but, this year, it seems like shareholders were the ones who got to pick their stock price, as the company posted amazing gains. Can Priceline make the good times last? Below, you'll find more to explain what happened with shares of Priceline.com this year.

Stats on Priceline.com

  

Year-to-date stock return

28.8%

Market cap

$30 billion

Revenue, past 12 months

$5.06 billion

Net income, past 12 months

$1.36 billion

1-year revenue growth

23.6%

1-year net income growth

40.4%

CAPS rating

**

Source: S&P Capital IQ.

How did Priceline.com keep flying high in 2012?
At the beginning of 2012, Priceline continued the upward trajectory it has enjoyed for years. With blowout quarterly results, the company left analysts in the dust by extending its long streak of earnings beats. By using its international business presence, Priceline has managed to avoid some of the economic headwinds that more domestically-focused competitors have suffered in the years since the recession.

But later in the year, Priceline started losing ground. Competitors re-emerged, as Expedia (EXPE 2.34%) reinvigorated its business after spinning off its TripAdvisor business into a separate company, and even Google (GOOGL 1.47%) began to use its influence to grow its travel business.

In response, Priceline decided to buy metasearch giant Kayak (NASDAQ: KYAK) in order to secure its dominance in the portal space, potentially reducing its online advertising costs, and giving it the same sort of data that Google uses to cater to its customers. That move could potentially put Expedia and Orbitz Worldwide (NYSE: OWW) at a huge competitive disadvantage.

At 23 times earnings, Priceline shares may look like they need a discount. But with expectations of 20% revenue growth going forward and, potentially, even faster earnings growth, investors who prefer fast-growing businesses will likely pay every penny to pick up Priceline shares at a relative bargain.

Click here to add Priceline.com to My Watchlist, which can find all of our Foolish analysis on it and all your other stocks.