Consolidated Statements of Comprehensive (Loss) Income - USD ($)
shares in Thousands, $ in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2016
Sep. 30, 2015
Sep. 30, 2016
Sep. 30, 2015
Income Statement [Abstract]        
Revenue $ 190,686 $ 136,821 $ 523,303 $ 405,141
Cost of revenue 58,380 45,412 167,189 139,319
Gross profit 132,306 91,409 356,114 265,822
Operating expenses:        
Sales and marketing 55,304 35,033 157,867 106,392
Technology and development 15,538 9,062 47,896 26,019
General and administrative 19,094 16,735 54,391 48,819
Restructuring expense 1,133 0 2,047 335
Asset impairment 1,979 0 1,979 0
Depreciation and amortization 21,165 13,846 59,351 41,439
Total operating expenses 114,213 74,676 323,531 223,004
Income from operations 18,093 16,733 32,583 42,818
Interest expense, net (8,270) (4,966) (22,530) (15,398)
Net income before income taxes 9,823 11,767 10,053 27,420
Income tax expense (6,477) (5,673) (7,976) (14,437)
Net income 3,346 6,094 2,077 12,983
Other comprehensive income:        
Foreign currency translation adjustments (198) (524) (1,405) (434)
Unrealized (loss) gain on investments, net of tax 0 (30) 29 (29)
Total comprehensive income $ 3,148 $ 5,540 $ 701 $ 12,520
Basic earnings per share:        
Net (loss) income per common share (in dollars per share) $ 0.07 $ 0.12 $ 0.04 $ 0.26
Diluted earnings per share:        
Net (loss) income per common share (in dollars per share) $ 0.07 $ 0.12 $ 0.04 $ 0.25
Basic weighted average common shares (in shares) 49,221 50,035 49,296 50,420
Diluted weighted average common shares (in shares) 50,771 52,312 50,970 52,477