Balance Sheet Components - Schedule of Property and Equipment, Net (Details) - USD ($) $ in Thousands |
Dec. 31, 2018 |
Dec. 31, 2017 |
|---|---|---|
| Property Plant And Equipment [Line Items] | ||
| Total property and equipment | $ 44,944 | $ 27,516 |
| Accumulated depreciation and amortization | (19,680) | (12,780) |
| Property and Equipment, net | 25,264 | 14,736 |
| Computer and Equipment | ||
| Property Plant And Equipment [Line Items] | ||
| Total property and equipment | 16,056 | 11,631 |
| Leasehold Improvements | ||
| Property Plant And Equipment [Line Items] | ||
| Total property and equipment | 18,396 | 8,437 |
| Website and Internal-Use Software | ||
| Property Plant And Equipment [Line Items] | ||
| Total property and equipment | 6,423 | 5,461 |
| Office Equipment and Furniture | ||
| Property Plant And Equipment [Line Items] | ||
| Total property and equipment | $ 4,069 | $ 1,987 |