Ulta Beauty shares jumped as much as 6% in after-hours trading on Thursday after the company's fourth-quarter sales and profits topped analysts' expectations.

Here's what Ulta reported for the fourth-quarter, compared with what Wall Street analysts surveyed by Bloomberg were expecting.

Revenue: $2.12 billion versus $2.11 billion expected.

Adjusted earnings per share: $3.61 versus $3.56 expected.

Comparable sales: +9.4% versus +7.9% expected.

Full-year EPS guidance: $12.65 to $12.85, versus $12.74 expected.

The company said its spike in comparable sales was driven by a 7.1% increase in transactions and 2.3% rise in its average ticket price. Ulta also said its e-commerce comparable sales rose 25.1% year-over-year during the quarter.