CONDENSED CONSOLIDATED STATEMENTS OF STOCKHOLDERS’ EQUITY - USD ($) $ in Thousands | Total | Class A and Class B Common Stock | Additional Paid-In Capital | Treasury Stock | Accumulated Other Comprehensive Loss | Accumulated Deficit |
Beginning balance (in shares) at Jan. 31, 2018 | | 50,575,571 | | | | |
Beginning balance at Jan. 31, 2018 | $ 247,657 | $ 51 | $ 638,680 | $ (1,319) | $ (159) | $ (389,596) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | |
Stock option exercises (in shares) | | 40,723 | | | | |
Stock option exercises | 183 | | 183 | | | |
Repurchase of early exercised options (in shares) | | (19,395) | | | | |
Vesting of early exercised stock options | 533 | | 533 | | | |
Vesting of restricted stock units (in shares) | | 125 | | | | |
Stock-based compensation | 7,577 | | 7,577 | | | |
Unrealized gain on available-for-sale securities | (82) | | | | (82) | |
Foreign currency translation adjustment | (33) | | | | (33) | |
Net loss | (26,555) | | | | | (26,555) |
Ending balance (in shares) at Apr. 30, 2018 | | 50,597,024 | | | | |
Ending balance at Apr. 30, 2018 | 229,280 | $ 51 | 646,973 | (1,319) | (274) | (416,151) |
Beginning balance (in shares) at Jan. 31, 2018 | | 50,575,571 | | | | |
Beginning balance at Jan. 31, 2018 | 247,657 | $ 51 | 638,680 | (1,319) | (159) | (389,596) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | |
Unrealized gain on available-for-sale securities | (43) | | | | | |
Foreign currency translation adjustment | (178) | | | | | |
Net loss | (76,824) | | | | | |
Ending balance (in shares) at Oct. 31, 2018 | | 53,496,249 | | | | |
Ending balance at Oct. 31, 2018 | 266,315 | $ 53 | 734,381 | (1,319) | (380) | (466,420) |
Beginning balance (in shares) at Apr. 30, 2018 | | 50,597,024 | | | | |
Beginning balance at Apr. 30, 2018 | 229,280 | $ 51 | 646,973 | (1,319) | (274) | (416,151) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | |
Stock option exercises (in shares) | | 1,150,864 | | | | |
Stock option exercises | 7,895 | $ 1 | 7,894 | | | |
Repurchase of early exercised options (in shares) | | (14,000) | | | | |
Vesting of early exercised stock options | 302 | | 302 | | | |
Vesting of restricted stock units (in shares) | | 75,478 | | | | |
Stock-based compensation | 9,009 | | 9,009 | | | |
Issuance of common stock under the Employee Stock Purchase Plan (in shares) | | 275,874 | | | | |
Issuance of common stock under the Employee Stock Purchase Plan | 5,626 | | 5,626 | | | |
Equity component of convertible senior notes | 81,683 | | 81,683 | | | |
Purchase of capped calls | (37,086) | | (37,086) | | | |
Unrealized gain on available-for-sale securities | 30 | | | | 30 | |
Foreign currency translation adjustment | (96) | | | | (96) | |
Net loss | (27,782) | | | | | (27,782) |
Ending balance (in shares) at Jul. 31, 2018 | | 52,085,240 | | | | |
Ending balance at Jul. 31, 2018 | 268,861 | $ 52 | 714,401 | (1,319) | (340) | (443,933) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | |
Stock option exercises (in shares) | | 1,348,725 | | | | |
Stock option exercises | 9,507 | $ 1 | 9,506 | | | |
Repurchase of early exercised options (in shares) | | (2,168) | | | | |
Vesting of early exercised stock options | 210 | | 210 | | | |
Vesting of restricted stock units (in shares) | | 63,209 | | | | |
Stock-based compensation | 10,264 | | 10,264 | | | |
Issuance of common stock under the Employee Stock Purchase Plan (in shares) | | 1,243 | | | | |
Issuance of common stock under the Employee Stock Purchase Plan | 0 | | 0 | | | |
Unrealized gain on available-for-sale securities | 9 | | | | 9 | |
Foreign currency translation adjustment | (49) | | | | (49) | |
Net loss | (22,487) | | | | | (22,487) |
Ending balance (in shares) at Oct. 31, 2018 | | 53,496,249 | | | | |
Ending balance at Oct. 31, 2018 | 266,315 | $ 53 | 734,381 | (1,319) | (380) | (466,420) |
Beginning balance (in shares) at Jan. 31, 2019 | | 54,321,810 | | | | |
Beginning balance at Jan. 31, 2019 | 264,566 | $ 54 | 754,612 | (1,319) | (174) | (488,607) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | |
Stock option exercises (in shares) | | 831,901 | | | | |
Stock option exercises | 6,438 | $ 1 | 6,437 | | | |
Repurchase of early exercised options (in shares) | | (3,981) | | | | |
Vesting of early exercised stock options | 127 | | 127 | | | |
Vesting of restricted stock units (in shares) | | 126,346 | | | | |
Stock-based compensation | 14,009 | | 14,009 | | | |
Unrealized gain on available-for-sale securities | 58 | | | | 58 | |
Foreign currency translation adjustment | 13 | | | | 13 | |
Net loss | (33,240) | | | | | (33,240) |
Ending balance (in shares) at Apr. 30, 2019 | | 55,276,076 | | | | |
Ending balance at Apr. 30, 2019 | 247,868 | $ 55 | 775,185 | (1,319) | (103) | (525,950) |
Beginning balance (in shares) at Jan. 31, 2019 | | 54,321,810 | | | | |
Beginning balance at Jan. 31, 2019 | $ 264,566 | $ 54 | 754,612 | (1,319) | (174) | (488,607) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | |
Stock option exercises (in shares) | 1,729,833 | | | | | |
Unrealized gain on available-for-sale securities | $ 298 | | | | | |
Foreign currency translation adjustment | 65 | | | | | |
Net loss | (112,959) | | | | | |
Ending balance (in shares) at Oct. 31, 2019 | | 56,678,662 | | | | |
Ending balance at Oct. 31, 2019 | 218,835 | $ 57 | 825,577 | (1,319) | 189 | (605,669) |
Beginning balance (in shares) at Apr. 30, 2019 | | 55,276,076 | | | | |
Beginning balance at Apr. 30, 2019 | 247,868 | $ 55 | 775,185 | (1,319) | (103) | (525,950) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | |
Stock option exercises (in shares) | | 665,543 | | | | |
Stock option exercises | 4,914 | $ 1 | 4,913 | | | |
Repurchase of early exercised options (in shares) | | (209) | | | | |
Vesting of early exercised stock options | 70 | | 70 | | | |
Vesting of restricted stock units (in shares) | | 206,587 | | | | |
Stock-based compensation | 17,662 | | 17,662 | | | |
Issuance of common stock under the Employee Stock Purchase Plan (in shares) | | 90,619 | | | | |
Issuance of common stock under the Employee Stock Purchase Plan | 6,394 | | 6,394 | | | |
Unrealized gain on available-for-sale securities | 21 | | | | 21 | |
Foreign currency translation adjustment | (250) | | | | (250) | |
Net loss | (37,336) | | | | | (37,336) |
Ending balance (in shares) at Jul. 31, 2019 | | 56,238,616 | | | | |
Ending balance at Jul. 31, 2019 | 239,343 | $ 56 | 804,224 | (1,319) | (332) | (563,286) |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | |
Stock option exercises (in shares) | | 232,389 | | | | |
Stock option exercises | 1,934 | $ 1 | 1,933 | | | |
Repurchase of early exercised options (in shares) | | (542) | | | | |
Vesting of early exercised stock options | 53 | | 53 | | | |
Vesting of restricted stock units (in shares) | | 208,199 | | | | |
Stock-based compensation | 19,367 | | 19,367 | | | |
Unrealized gain on available-for-sale securities | 219 | | | | 219 | |
Foreign currency translation adjustment | 302 | | | | 302 | |
Net loss | (42,383) | | | | | (42,383) |
Ending balance (in shares) at Oct. 31, 2019 | | 56,678,662 | | | | |
Ending balance at Oct. 31, 2019 | $ 218,835 | $ 57 | $ 825,577 | $ (1,319) | $ 189 | $ (605,669) |