v3.8.0.1
STOCK-BASED COMPENSATION - Stock-based Compensation Expense (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2017
Sep. 30, 2016
Sep. 30, 2017
Sep. 30, 2016
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items]        
Total stock-based compensation $ 4,964 $ 6,415 $ 12,961 $ 16,765
Employee Stock Option        
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items]        
Total stock-based compensation 652 1,336 2,355 3,667
Unrecognized stock-based compensation expense 3,100   $ 3,100  
Period of recognition of unrecognized stock-based compensation expense     1 year 7 months 10 days  
Restricted Stock Units (RSUs)        
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items]        
Total stock-based compensation 3,945 4,353 $ 9,408 11,044
Unrecognized stock-based compensation expense 22,100   $ 22,100  
Period of recognition of unrecognized stock-based compensation expense     2 years 4 days  
ESPP        
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items]        
Total stock-based compensation 367 726 $ 1,198 2,054
Unrecognized stock-based compensation expense 300   $ 300  
Period of recognition of unrecognized stock-based compensation expense     2 months 1 day  
Cost of revenue        
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items]        
Total stock-based compensation 313 431 $ 860 1,024
Research and development        
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items]        
Total stock-based compensation 1,329 1,576 3,082 4,287
Sales and marketing        
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items]        
Total stock-based compensation 1,566 2,505 4,361 6,336
General and administrative        
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items]        
Total stock-based compensation $ 1,756 $ 1,903 $ 4,658 $ 5,118