Equity Incentive Plans and Employee Stock Purchase Plan (Tables)
3 Months Ended
Apr. 30, 2019
Disclosure of Compensation Related Costs, Share-based Payments [Abstract]  
Schedule of stock option activity
The following table summarizes stock option activity for the three months ended April 30, 2019 (in thousands, except share and per share data and years):
 
Shares
 
Weighted-
Average
Exercise
Price Per
Share
 
Weighted-
Average
Remaining
Contractual
Term
(In Years)
 
Aggregate
Intrinsic
Value
Balance - January 31, 2019
8,621,010

 
$
7.75

 
6.7
 
$
729,392

Stock options exercised
(831,901
)
 
7.71

 
 
 
 
Stock options forfeited and expired
(77,121
)
 
10.45

 
 
 
 
Balance - April 30, 2019
7,711,988

 
7.73

 
6.5
 
1,027,149

Vested and exercisable - January 31, 2019
5,342,183

 
6.95

 
6.0
 
456,275

Vested and exercisable - April 30, 2019
4,917,890

 
$
6.95

 
5.9
 
$
658,851

Schedule of restricted stock unit activity
The following table summarizes RSU activity for the three months ended April 30, 2019:
 
Shares
 
Weighted-Average Grant Date Fair Value per RSU
Unvested - January 31, 2019
1,988,774

 
$
54.22

RSUs granted
1,027,610

 
105.50

RSUs vested
(126,346
)
 
45.42

RSUs forfeited and canceled
(24,629
)
 
56.03

Unvested - April 30, 2019
2,865,409

 
$
72.98

Schedule of stock-based compensation expense recognized in consolidated statements of operations
Total stock-based compensation expense recognized in the Company’s unaudited condensed consolidated statements of operations is as follows (in thousands):
 
Three Months Ended April 30,
 
2019
 
2018
Cost of revenue—subscription
$
988

 
$
359

Cost of revenue—services
593

 
184

Sales and marketing
4,940

 
2,218

Research and development
4,520

 
2,206

General and administrative
2,968

 
2,610

Total stock-based compensation expense
$
14,009

 
$
7,577