Summary of Significant Accounting Policies - Impact of Adoption of New Revenue Standard on the Condensed Consolidated Balance Sheet and Statement of Operations (Details) - USD ($)
$ / shares in Units, $ in Thousands
3 Months Ended
Mar. 31, 2018
Mar. 31, 2017
Jan. 01, 2018
Dec. 31, 2017
Assets        
Prepaid expenses and other current assets $ 5,253   $ 5,694 $ 4,546
Other assets 3,806   3,054 1,238
Equity        
Accumulated deficit (59,963)   (64,283) (67,247)
Costs and operating expenses:        
Cost of revenue (exclusive of depreciation and amortization) 16,613 $ 12,993    
Sales and marketing 7,405 7,107    
Total costs and operating expenses 38,167 31,529    
Income from operations 4,173 597    
Income before provision for income taxes 4,346 671    
Net income $ 4,320 $ 660    
Net income per common share:        
Net income per share, basic (usd per share) $ 0.13 $ 0.02    
Net income per share, diluted (usd per share) $ 0.12 $ 0.02    
Calculated under Revenue Guidance in Effect before Topic 606        
Assets        
Prepaid expenses and other current assets $ 3,556     4,546
Other assets 1,209     1,238
Equity        
Accumulated deficit (64,257)     $ (67,247)
Costs and operating expenses:        
Cost of revenue (exclusive of depreciation and amortization) 16,673      
Sales and marketing 8,675      
Total costs and operating expenses 39,497      
Income from operations 2,843      
Income before provision for income taxes 3,016      
Net income $ 2,990      
Net income per common share:        
Net income per share, basic (usd per share) $ 0.09      
Net income per share, diluted (usd per share) $ 0.08      
Difference between Revenue Guidance in Effect before and after Topic 606 | Accounting Standards Update 2014-09        
Assets        
Prepaid expenses and other current assets $ 1,697   1,148  
Other assets 2,597   1,816  
Equity        
Accumulated deficit 4,294   $ 2,964  
Costs and operating expenses:        
Cost of revenue (exclusive of depreciation and amortization) (60)      
Sales and marketing (1,270)      
Total costs and operating expenses (1,330)      
Income from operations 1,330      
Income before provision for income taxes 1,330      
Net income $ 1,330      
Net income per common share:        
Net income per share, basic (usd per share) $ 0.04      
Net income per share, diluted (usd per share) $ 0.04