v3.6.0.2
STOCK-BASED COMPENSATION - Stock-based Compensation Expense (Details) - USD ($)
12 Months Ended
Dec. 31, 2016
Dec. 31, 2015
Dec. 31, 2014
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items]      
Total stock-based compensation $ 21,702,000 $ 18,371,000 $ 10,252,000
Capitalized stock-based compensation expense 0 300,000 400,000
Stock Options      
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items]      
Total stock-based compensation 4,933,000 4,733,000 5,780,000
Unrecognized stock-based compensation expense $ 6,500,000    
Period of recognition of unrecognized stock-based compensation expense 2 years 2 months 1 day    
Restricted Stock Units (RSUs)      
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items]      
Total stock-based compensation $ 14,316,000 11,652,000 3,188,000
Unrecognized stock-based compensation expense $ 20,200,000    
Period of recognition of unrecognized stock-based compensation expense 2 years 3 months 18 days    
ESPP      
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items]      
Total stock-based compensation $ 2,453,000 1,986,000 1,284,000
Unrecognized stock-based compensation expense $ 1,500,000    
Period of recognition of unrecognized stock-based compensation expense 11 months 1 day    
Cost of revenue      
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items]      
Total stock-based compensation $ 1,305,000 902,000 411,000
Research and development      
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items]      
Total stock-based compensation 5,393,000 4,651,000 2,419,000
Sales and marketing      
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items]      
Total stock-based compensation 8,269,000 7,112,000 4,121,000
General and administrative      
Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Line Items]      
Total stock-based compensation $ 6,735,000 $ 5,706,000 $ 3,301,000