CONSOLIDATED STATEMENTS OF OPERATIONS AND COMPREHENSIVE LOSS - USD ($)
$ in Thousands
3 Months Ended
Mar. 31, 2018
Mar. 31, 2017
Revenue:    
Revenue $ 48,434 $ 35,945
Cost of revenue:    
Cost of revenue 10,215 7,601
Gross profit 38,219 28,344
Operating expenses:    
Sales and marketing 30,678 24,359
Research and development 14,922 11,547
General and administrative 10,426 4,929
Total operating expenses 56,026 40,835
Loss from operations (17,807) (12,491)
Interest income 68 42
Interest expense (23) (73)
Change in fair value of warrant liability (2,881) 126
Other income (expense), net 120 (26)
Loss before income taxes (20,523) (12,422)
Provision for income taxes 71 17
Net loss (20,594) (12,439)
Comprehensive loss (20,594) (12,439)
Accretion of preferred stock to redemption value (40,039) (11,647)
Net loss attributable to common stockholders $ (60,633) $ (24,086)
Net loss per share attributable to common stockholders - basic and diluted $ (5.38) $ (2.40)
Weighted-average common shares outstanding - basic and diluted 11,264,252 10,039,592
Subscription, License and Support    
Revenue:    
Revenue $ 45,391 $ 33,005
Cost of revenue:    
Cost of revenue 7,212 4,831
Services    
Revenue:    
Revenue 3,043 2,940
Cost of revenue:    
Cost of revenue $ 3,003 $ 2,770