CLOUDFLARE, INC., 10-Q filed on 8/10/2020
Quarterly Report
v3.20.2
Cover Page - shares
6 Months Ended
Jun. 30, 2020
Aug. 04, 2020
Document Information [Line Items]    
Document Type 10-Q  
Document Quarterly Report true  
Document Period End Date Jun. 30, 2020  
Document Transition Report false  
Entity File Number 001-39039  
Entity Registrant Name Cloudflare, Inc.  
Entity Incorporation, State or Country Code DE  
Entity Tax Identification Number 27-0805829  
Entity Address, Address Line One 101 Townsend Street  
Entity Address, City or Town San Francisco  
Entity Address, State or Province CA  
Entity Address, Postal Zip Code 94107  
City Area Code 888  
Local Phone Number 993-5273  
Title of 12(b) Security Class A Common Stock, $0.001 par value  
Trading Symbol NET  
Security Exchange Name NYSE  
Entity Current Reporting Status Yes  
Entity Interactive Data Current Yes  
Entity Filer Category Non-accelerated Filer  
Entity Small Business false  
Entity Emerging Growth Company true  
Entity Ex Transition Period false  
Entity Shell Company false  
Amendment Flag false  
Entity Central Index Key 0001477333  
Document Fiscal Period Focus Q2  
Document Fiscal Year Focus 2020  
Current Fiscal Year End Date --12-31  
Class A common stock    
Document Information [Line Items]    
Entity Common Stock, Shares Outstanding   192,731,407
Class B common stock    
Document Information [Line Items]    
Entity Common Stock, Shares Outstanding   112,994,701
v3.20.2
CONDENSED CONSOLIDATED BALANCE SHEETS - USD ($)
$ in Thousands
Jun. 30, 2020
Dec. 31, 2019
Current assets:    
Cash and cash equivalents $ 313,983 $ 138,976
Available-for-sale securities 755,108 497,972
Accounts receivable, net 43,646 33,867
Contract assets 2,224 2,063
Prepaid expenses and other current assets 17,163 16,994
Total current assets 1,132,124 689,872
Property and equipment, net 114,549 101,466
Goodwill 17,167 4,083
Acquired intangible assets, net 4,200 31
Operating lease right-of-use assets 46,150 0
Deferred contract acquisition costs, noncurrent 33,880 25,184
Restricted cash 8,847 6,660
Other noncurrent assets 7,138 3,528
Total assets 1,364,055 830,824
Current liabilities:    
Accounts payable 17,278 11,463
Accrued expenses and other current liabilities 32,076 28,314
Operating lease liabilities 17,239 0
Liability for early exercise of unvested stock options 10,735 13,263
Deferred revenue 43,419 30,843
Total current liabilities 120,747 83,883
Convertible senior notes, net 365,949 0
Build-to-suit lease financing obligation 0 10,506
Operating lease liabilities, noncurrent 30,869 0
Deferred revenue, noncurrent 1,599 804
Other noncurrent liabilities 9,273 9,803
Total liabilities 528,437 104,996
Commitments and contingencies (Note 8)
Stockholders’ Equity:    
Additional paid-in capital 1,194,125 1,027,179
Accumulated deficit (360,031) (301,706)
Accumulated other comprehensive income 1,224 61
Total stockholders’ equity 835,618 725,828
Total liabilities and stockholders’ equity 1,364,055 830,824
Class A common stock    
Stockholders’ Equity:    
Common stock 184 87
Class B common stock    
Stockholders’ Equity:    
Common stock $ 116 $ 207
v3.20.2
CONDENSED CONSOLIDATED BALANCE SHEETS (Parenthetical) - $ / shares
Jun. 30, 2020
Dec. 31, 2019
Class A common stock    
Stockholders’ Equity:    
Common stock, par value (in dollars per share) $ 0.001 $ 0.001
Common stock, shares authorized (in shares) 2,250,000,000 2,250,000,000
Common stock, shares issued (in shares) 184,900,249 87,071,783
Common stock, shares outstanding (in shares) 184,900,249 87,071,783
Class B common stock    
Stockholders’ Equity:    
Common stock, par value (in dollars per share) $ 0.001 $ 0.001
Common stock, shares authorized (in shares) 315,000,000 315,000,000
Common stock, shares issued (in shares) 120,523,936 213,101,364
Common stock, shares outstanding (in shares) 120,523,936 213,101,364
v3.20.2
CONDENSED CONSOLIDATED STATEMENTS OF OPERATIONS - USD ($)
shares in Thousands, $ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2020
Jun. 30, 2019
Jun. 30, 2020
Jun. 30, 2019
Income Statement [Abstract]        
Revenue $ 99,721 $ 67,424 $ 190,971 $ 129,151
Cost of revenue 24,164 14,832 44,985 29,192
Gross profit 75,557 52,592 145,986 99,959
Operating expenses:        
Sales and marketing 51,376 35,836 98,341 66,653
Research and development 28,131 18,868 61,485 36,517
General and administrative 20,754 17,659 46,935 33,707
Total operating expenses 100,261 72,363 206,761 136,877
Loss from operations (24,704) (19,771) (60,775) (36,918)
Non-operating income (expense):        
Interest income 1,857 830 4,426 1,743
Interest expense (5,007) (290) (5,074) (563)
Other income (expense), net (219) (86) 266 (379)
Total non-operating income (expense), net (3,369) 454 (382) 801
Loss before income taxes (28,073) (19,317) (61,157) (36,117)
Provision for (benefit from) income taxes (1,938) 389 (2,276) 703
Net loss $ (26,135) $ (19,706) $ (58,881) $ (36,820)
Net loss per share attributable to common stockholders, basic and diluted (in dollars per share) $ (0.09) $ (0.23) $ (0.20) $ (0.43)
Weighted-average shares used in computing net loss per share attributable to common stockholders, basic and diluted (in shares) 299,321 85,683 297,392 85,382
v3.20.2
CONDENSED CONSOLIDATED STATEMENTS OF COMPREHENSIVE LOSS - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2020
Jun. 30, 2019
Jun. 30, 2020
Jun. 30, 2019
Statement of Comprehensive Income [Abstract]        
Net loss $ (26,135) $ (19,706) $ (58,881) $ (36,820)
Other comprehensive income (loss):        
Change in unrealized gain (loss) on investments, net of tax (183) 51 1,163 123
Other comprehensive income (loss) (183) 51 1,163 123
Comprehensive loss $ (26,318) $ (19,655) $ (57,718) $ (36,697)
v3.20.2
CONDENSED CONSOLIDATED STATEMENTS OF REDEEMABLE CONVERTIBLE PREFERRED STOCK AND STOCKHOLDERS’ EQUITY (DEFICIT) - USD ($)
$ in Thousands
Total
Conversion of Class B Common Stock To Class A Common Stock
Common Stock
Additional paid-in capital
Accumulated deficit
Accumulated other comprehensive income (loss)
Redeemable convertible preferred stock
Class A common stock
Class A common stock
Common Stock
Class A common stock
Common Stock
Conversion of Class B Common Stock To Class A Common Stock
Class B common stock
Class B common stock
Common Stock
Class B common stock
Common Stock
Conversion of Class B Common Stock To Class A Common Stock
Beginning balance (in shares) at Dec. 31, 2018             165,658,000            
Beginning balance at Dec. 31, 2018             $ 331,521            
Ending balance (in shares) at Jun. 30, 2019             165,658,000            
Ending balance at Jun. 30, 2019             $ 331,521            
Beginning balance (in shares) at Dec. 31, 2018     91,542,000                    
Beginning balance at Dec. 31, 2018 $ (113,505)   $ 85 $ 82,345 $ (195,878) $ (57)              
Increase (Decrease) in Stockholders' Equity [Roll Forward]                          
Issuance of common stock in connection with acquisition (in shares)     7,000                    
Issuance of common stock in connection with acquisition 18     18                  
Issuance of common stock upon exercise of stock options (in shares)     581,000                    
Issuance of common stock upon exercise of stock options 1,067   $ 1 1,066                  
Repurchases of unvested common stock (in shares)     (40,000)                    
Issuance of common stock related to early exercised stock options (in shares)     596,000                    
Vesting of shares issued upon early exercise of stock options 1,438     1,438                  
Stock-based compensation 2,244     2,244                  
Net loss (36,820)   $ (36,820)   (36,820)                
Other comprehensive income (loss) 123                        
Ending balance (in shares) at Jun. 30, 2019     92,686,000                    
Ending balance at Jun. 30, 2019 (145,435)   $ 86 87,111 (232,698) 66              
Beginning balance (in shares) at Mar. 31, 2019             165,658,000            
Beginning balance at Mar. 31, 2019             $ 331,521            
Increase (Decrease) in Temporary Equity [Roll Forward]                          
Issuance of common stock upon exercise of stock options (in shares)             0            
Issuance of common stock in connection with acquisition             $ 0            
Ending balance (in shares) at Jun. 30, 2019             165,658,000            
Ending balance at Jun. 30, 2019             $ 331,521            
Beginning balance (in shares) at Mar. 31, 2019     92,293,000                    
Beginning balance at Mar. 31, 2019 (128,224)   $ 85 84,668 (212,992) 15              
Increase (Decrease) in Stockholders' Equity [Roll Forward]                          
Issuance of common stock upon exercise of stock options (in shares)     235,000                    
Issuance of common stock upon exercise of stock options 386   $ 1 385                  
Repurchases of unvested common stock (in shares)                 (31,000)        
Issuance of common stock related to early exercised stock options (in shares)     189,000                    
Vesting of shares issued upon early exercise of stock options 942     942                  
Stock-based compensation 1,116     1,116                  
Net loss (19,706)   $ (19,706)   (19,706)                
Other comprehensive income (loss) 51         51              
Ending balance (in shares) at Jun. 30, 2019     92,686,000                    
Ending balance at Jun. 30, 2019 (145,435)   $ 86 87,111 (232,698) 66              
Beginning balance (in shares) at Dec. 31, 2019             0            
Beginning balance at Dec. 31, 2019             $ 0            
Ending balance (in shares) at Jun. 30, 2020             0            
Ending balance at Jun. 30, 2020             $ 0            
Beginning balance (in shares) at Dec. 31, 2019               87,071,783 87,072,000   213,101,364 213,101,000  
Beginning balance at Dec. 31, 2019 $ 725,828     1,027,179 (301,706) 61     $ 87     $ 207  
Increase (Decrease) in Stockholders' Equity [Roll Forward]                          
Issuance of common stock in connection with acquisition (in shares) 948,000               107,000        
Issuance of common stock in connection with acquisition $ 1,821     1,821                  
Issuance of unvested restricted stock in connection with acquisition (in shares)                 841,000        
Issuance of common stock upon exercise of stock options (in shares) 2,618,000                     2,582,000  
Issuance of common stock upon exercise of stock options $ 4,335     4,333               $ 2  
Repurchases of unvested common stock (in shares)                 (37,000)        
Issuance of common stock related to early exercised stock options (in shares)                       36,000  
Vesting of shares issued upon early exercise of stock options 2,511     2,509               $ 2  
Issuance of common stock related to settlement of RSUs (in shares)                 82,000     1,645,000  
Issuance of common stock related to settlement of RSUs 1     (1)               $ 2  
Tax withholding on RSU settlement (in shares)                 (11,000)     (402,000)  
Tax withholding on RSU settlement (7,308)     (7,308)                  
Conversion of Class B to Class A common stock (in shares)                   96,438,000     96,438,000
Conversion of Class B to Class A common stock   $ 0               $ 97     $ (97)
Equity component of convertible senior notes, net of issuance costs 200,812     200,812                  
Purchases of capped calls related to convertible senior notes (67,333)     (67,333)                  
Common stock issued under employee stock purchase plan (in shares)                 421,000        
Common stock issued under employee stock purchase plan 5,447     5,447                  
Tax withholding on common stock issued under employee stock purchase plan (in shares)                 (13,000)        
Tax withholding on common stock issued under employee stock purchase plan (376)     (376)                  
Stock-based compensation 27,042     27,042                  
Net loss (58,881)       (58,881)       $ (26,404)     $ (32,477)  
Other comprehensive income (loss) 1,163         1,163              
Ending balance (in shares) at Jun. 30, 2020               184,900,249 184,900,000   120,523,936 120,524,000  
Ending balance at Jun. 30, 2020 835,618     1,194,125 (360,031) 1,224     $ 184     $ 116  
Beginning balance (in shares) at Mar. 31, 2020             0            
Beginning balance at Mar. 31, 2020             $ 0            
Ending balance (in shares) at Jun. 30, 2020             0            
Ending balance at Jun. 30, 2020             $ 0            
Beginning balance (in shares) at Mar. 31, 2020                 154,622,000     148,735,000  
Beginning balance at Mar. 31, 2020 706,352     1,038,544 (333,896) 1,407     $ 154     $ 143  
Increase (Decrease) in Stockholders' Equity [Roll Forward]                          
Issuance of common stock in connection with acquisition 717                        
Issuance of common stock upon exercise of stock options (in shares)                 0     1,079,000  
Issuance of common stock upon exercise of stock options 1,660     1,659         $ 0     $ 1  
Repurchases of unvested common stock (in shares)                   (8,000)      
Issuance of common stock related to early exercised stock options (in shares)                       21,000  
Vesting of shares issued upon early exercise of stock options 1,288     1,287               $ 1  
Issuance of common stock related to settlement of RSUs (in shares)                 50,000     522,000  
Issuance of common stock related to settlement of RSUs 1     0               $ 1  
Tax withholding on RSU settlement (in shares)                 0     (5,000)  
Tax withholding on RSU settlement (193)     (193)                  
Conversion of Class B to Class A common stock (in shares)                   29,828,000     29,828,000
Conversion of Class B to Class A common stock   $ 0               $ 30     $ (30)
Equity component of convertible senior notes, net of issuance costs 200,812     200,812                  
Purchases of capped calls related to convertible senior notes (67,333)     (67,333)                  
Common stock issued under employee stock purchase plan (in shares)                 421,000        
Common stock issued under employee stock purchase plan 5,447     5,447                  
Tax withholding on common stock issued under employee stock purchase plan (in shares)                 (13,000)        
Tax withholding on common stock issued under employee stock purchase plan (376)     (376)                  
Stock-based compensation 13,561     13,561                  
Net loss (26,135)       (26,135)       $ (14,773)     $ (11,362)  
Other comprehensive income (loss) (183)         (183)              
Ending balance (in shares) at Jun. 30, 2020               184,900,249 184,900,000   120,523,936 120,524,000  
Ending balance at Jun. 30, 2020 $ 835,618     $ 1,194,125 $ (360,031) $ 1,224     $ 184     $ 116  
v3.20.2
CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2020
Jun. 30, 2019
Cash Flows From Operating Activities    
Net loss $ (58,881) $ (36,820)
Adjustments to reconcile net loss to cash used in operating activities:    
Depreciation and amortization expense 22,113 13,160
Non-cash operating lease costs 9,332 0
Amortization of deferred contract acquisition costs 7,462 4,904
Stock-based compensation expense 25,346 2,101
Net accretion of discounts and amortization of premiums on available-for-sale securities (367) (852)
Amortization of debt discount and issuance costs 4,303 0
Deferred income taxes (2,621) 0
Provision for bad debt 2,493 451
Change in fair value of redeemable convertible preferred stock warrant liability 0 327
Other (95) 9
Changes in operating assets and liabilities, net of effect of acquisitions:    
Accounts receivable, net (12,272) (5,222)
Contract assets (161) (153)
Deferred contract acquisition costs (16,158) (8,446)
Prepaid expenses and other current assets (171) (314)
Other noncurrent assets (894) (1,373)
Accounts payable 4,333 4,887
Accrued expenses and other current liabilities 4,179 920
Operating lease liabilities (10,205) 0
Deferred revenue 13,371 10,727
Other noncurrent liabilities (1,396) 3,137
Net cash used in operating activities (10,289) (12,557)
Cash Flows From Investing Activities    
Purchases of property and equipment (30,605) (18,990)
Capitalized internal-use software (9,863) (7,471)
Cash paid for acquisitions, net of cash acquired (13,691) 0
Purchases of available-for-sale securities (579,437) (45,143)
Sales of available-for-sale securities 0 1,978
Maturities of available-for-sale securities 323,832 97,448
Other investing activities 223 25
Net cash provided by (used in) investing activities (309,541) 27,847
Cash Flows From Financing Activities    
Gross proceeds from issuance of convertible senior notes 575,000 0
Purchases of capped calls related to convertible senior notes (67,333) 0
Cash paid for issuance costs on convertible senior notes (12,520) 0
Proceeds from the exercise of stock options 4,335 1,067
Proceeds from the early exercise of stock options 80 2,174
Repurchases of unvested common stock (101) (88)
Payments on note payable (200) (182)
Proceeds from the issuance of common stock for employee stock purchase plan 5,447 0
Proceeds from build-to-suit lease financing obligation drawdown 0 47
Payments of deferred offering costs 0 (969)
Net cash provided by financing activities 497,024 2,049
Net increase (decrease) in cash, cash equivalents, and restricted cash 177,194 17,339
Cash, cash equivalents, and restricted cash, beginning of period 145,636 31,426
Cash, cash equivalents, and restricted cash, end of period 322,830 48,765
Supplemental Disclosure of Cash Flow Information:    
Cash paid for interest 34 289
Cash paid for income taxes, net of refunds 30 916
Cash paid for operating lease liabilities 9,944 0
Supplemental Disclosure of Non-cash Investing and Financing Activities:    
Stock-based compensation capitalized for software development 1,632 143
Accounts payable and accrued expenses related to property and equipment additions 4,651 2,229
Vesting of early exercised stock options 2,511 1,438
Deferred offering costs, accrued but not paid 0 1,958
Indemnity holdback consideration associated with business combinations 2,188 0
Issuance of common stock related to an acquisition 1,821 0
Operating lease right-of-use assets obtained in exchange for operating lease liabilities 4,607 0
Derecognition of build-to-suit lease 9,886 0
Restricted Stock Units (RSUs)    
Cash Flows From Financing Activities    
Payment of tax withholding obligation (7,308) 0
Shares issuable pursuant to the ESPP    
Cash Flows From Financing Activities    
Payment of tax withholding obligation $ (376) $ 0
v3.20.2
Organization and Basis of Presentation
6 Months Ended
Jun. 30, 2020
Organization, Consolidation and Presentation of Financial Statements [Abstract]  
Organization and Basis of Presentation Organization and Basis of Presentation
Organization and Description of Business
Cloudflare, Inc. (the Company, Cloudflare, we, us, or our) has built a global cloud platform that delivers a broad range of network services to businesses of all sizes and geographies, making them more secure, enhancing the performance of their business-critical applications, and eliminating the cost and complexity of managing individual network hardware. Cloudflare provides businesses with a scalable, easy-to-use, unified control plane to deliver security, performance, and reliability across their on-premise, hybrid, cloud, and software-as-a-service (SaaS) applications. The Company was incorporated in Delaware in July 2009. The Company is headquartered in San Francisco, California.
Basis of Presentation and Principles of Consolidation
The accompanying interim condensed consolidated financial statements and accompanying notes have been prepared in conformity with generally accepted accounting principles in the United States (U.S. GAAP) and applicable regulations of the Securities and Exchange Commission (the SEC) regarding interim financial reporting, and include the accounts of the Company and its wholly-owned subsidiaries. All intercompany balances and transactions have been eliminated in consolidation. The Company’s fiscal year ends on December 31.
Certain information and note disclosures normally included in the financial statements prepared in accordance with U.S. GAAP have been condensed or omitted pursuant to the applicable required disclosures and regulations of the SEC. Therefore, these unaudited condensed consolidated financial statements should be read in conjunction with the audited consolidated financial statements and the related notes thereto included in the Company's Annual Report on Form 10-K for the fiscal year ended December 31, 2019.
Initial Public Offering
In September 2019, the Company completed an Initial Public Offering (IPO) in which it issued and sold 40,250,000 shares of Class A common stock, which included 5,250,000 shares sold pursuant to the exercise by the underwriters of an option to purchase additional shares, at the public offering price of $15.00 per share. The Company received net proceeds of $565.0 million from sales of its shares in the IPO, after deducting underwriting discounts and commissions and offering costs. Upon completion of the IPO, 31,381,152 shares of redeemable convertible preferred stock were automatically converted into an equal number of shares of Class A common stock, 134,276,690 shares of redeemable convertible preferred stock were automatically converted into an equal number of shares of Class B common stock, outstanding warrants to purchase shares of redeemable convertible preferred stock were automatically converted into outstanding warrants to purchase shares of Class B common stock, and 15,198,587 shares of Class B common stock held by former employees were automatically converted into an equal number of shares of Class A common stock.
Unaudited Interim Condensed Consolidated Financial Information
The accompanying interim condensed consolidated balance sheet as of June 30, 2020, the condensed consolidated statements of operations and of comprehensive loss for the three and six months ended June 30, 2020 and 2019, the condensed consolidated statements of cash flows for the six months ended June 30, 2020 and 2019, the condensed consolidated statements of redeemable convertible preferred stock and stockholders’ equity (deficit) for the three and six months ended June 30, 2020 and 2019, and the related footnote disclosures are unaudited. These unaudited interim condensed consolidated financial statements have been prepared in accordance with U.S. GAAP. In management’s opinion, the unaudited interim condensed consolidated financial statements include all adjustments necessary to state fairly the Company’s financial position as of June 30, 2020, its results of operations for the three and six months ended June 30, 2020 and 2019, and its cash flows for the six months ended June 30, 2020 and 2019. The results for the three and six months ended June 30, 2020 are not necessarily indicative of the results expected for the full year ending December 31, 2020 or any future period. The unaudited condensed consolidated financial statements should be read in conjunction with the audited consolidated
financial statements and the related notes thereto included in the Company's Annual Report on Form 10-K for the fiscal year ended December 31, 2019.
Use of Estimates
The preparation of condensed consolidated financial statements in conformity with U.S. GAAP requires management to make estimates and assumptions that affect the amounts reported and disclosed in the condensed consolidated financial statements and accompanying notes to the condensed consolidated financial statements. Such estimates include, but are not limited to, allowance for doubtful accounts, deferred contract acquisitions costs, the period of benefit generated from the Company’s deferred contract acquisition costs, the capitalization and estimated useful life of internal-use software, the assessment of recoverability of intangible assets and their estimated useful lives, useful lives of property and equipment, liability and equity allocation of convertible senior notes, the determination of the incremental borrowing rate used for operating lease liabilities, the valuation and recognition of stock-based compensation expense, uncertain tax positions, and the recognition and measurement of current and deferred income tax assets and liabilities. Management bases these estimates and assumptions on historical experience and on various other assumptions that management believes to be reasonable. Due to the COVID-19 pandemic, there is ongoing uncertainty and significant disruption in the global economy and financial markets. The Company is not aware of any specific event or circumstance that would require an update to its estimates or assumptions or a revision of the carrying value of its assets or liabilities as of August 10, 2020, the date of issuance of this Quarterly Report on Form 10-Q. These estimates and assumptions may change in the future, however, as new events occur and additional information is obtained. Actual results could differ materially from these estimates.
v3.20.2
Summary of Significant Accounting Policies
6 Months Ended
Jun. 30, 2020
Accounting Policies [Abstract]  
Summary of Significant Accounting Policies Summary of Significant Accounting Policies
Significant Accounting Policies
The Company's significant accounting policies are discussed in the "Notes to Consolidated Financial Statements, Note 2. Summary of Significant Accounting Policies" in the Company's Annual Report on Form 10-K for the fiscal year ended December 31, 2019. There have been no significant changes to these policies that have had a material impact on the Company's condensed consolidated financial statements and related notes, except as noted below.
Operating Leases
The Company enters into operating lease arrangements for real estate assets related to office space and for co-location assets related to space and equipment located in co-location facilities. The Company determines if an arrangement contains a lease at its inception by assessing whether there is an identified asset and whether the arrangement conveys the right to control the use of the identified asset in exchange for consideration. Operating leases are included in operating lease right-of-use assets, operating lease liabilities, and operating lease liabilities, noncurrent in the Company's condensed consolidated balance sheets. Right-of-use assets represent the Company's right to use an underlying asset for the lease term and lease liabilities represent the Company's obligation to make payments arising from the lease. The Company's operating lease arrangements contain both lease and non-lease components. Operating lease right-of-use assets and lease liabilities are recognized at the lease commencement date based on the present value of lease payments over the lease term. Lease payments consist of the fixed payments under the arrangement, less any lease incentives such as tenant improvement allowances. Variable lease costs, such as lease payments that depend on an index or a rate, are expensed as incurred and not included within the calculation of right-of-use assets and lease liabilities. At inception of an arrangement, the Company allocates the consideration to the lease and non-lease components and recognizes a right-of-use asset and corresponding lease liability for each lease component. As the implicit rate of the Company's leases is not determinable, the Company uses an incremental borrowing rate (IBR) based on the information available at the lease commencement date in determining the present value of lease payments. The lease expense is recognized on a straight-line basis over the lease term.
The Company generally uses the base, non-cancelable lease term when recognizing the right-of-use assets and lease liabilities, unless it is reasonably certain that a renewal or termination option will be exercised. Leases with a term of twelve months or less are not recognized on the consolidated balance sheets. The Company recognizes lease expense for these leases on a straight-line basis over the term of the lease.
Business Combinations
The Company includes the results of operations of the businesses that the Company acquires from the date of acquisition. The fair value of the assets acquired and liabilities assumed is based on their estimated fair values as of the respective date of acquisition. The excess purchase price over the fair value of the net assets acquired and liabilities assumed is recorded as goodwill. Determining the fair value of assets acquired and liabilities assumed requires significant judgment and estimates including the selection of valuation methodologies, future expected cash flows, discount rates, and useful lives. The Company’s estimates of fair value are based on assumptions believed to be reasonable, but which are inherently uncertain and, as a result, actual results may differ from estimates. During the measurement period, not to exceed one year from the date of acquisition, the Company may record adjustments to the assets acquired and liabilities assumed with a corresponding offset to goodwill. At the conclusion of the measurement period, or final determination of the values of assets acquired or liabilities assumed, whichever comes first, any subsequent adjustments are reflected in the condensed consolidated statements of operations.
When the Company issues payments or grants of equity to selling stockholders in connection with an acquisition, the Company evaluates whether the payments or awards are compensatory. This evaluation includes whether cash payments or stock award vesting is contingent on the continued employment of the selling stockholder beyond the acquisition date. If continued employment is required for the cash to be paid or stock awards to vest, the award is treated as compensation for post-acquisition services and is recognized as compensation expense.
Transaction costs associated with business combinations are expensed as incurred and are included in general and administrative expense in the Company’s condensed consolidated statements of operations.
Convertible Senior Notes
The Company accounts for its 0.75% Convertible Senior Notes due May 2025 (the Notes) as separate liability and equity components. The carrying amount of the liability component is calculated by measuring the fair value of a similar debt instrument that does not have an associated convertible feature. The carrying amount of the equity component, representing the conversion option, is calculated by deducting the fair value of the liability component from the total principal of the convertible notes. The excess of the principal amount of the liability component over its book value (debt discount) is amortized to interest expense over the term of the Notes. In accounting for the issuance costs related to the Notes, the allocation of issuance costs incurred between the liability and equity components was based on their relative values.
Recent Accounting Pronouncements
Recently Adopted Accounting Pronouncements
In February 2016, the Financial Accounting Standards Board (FASB) issued Accounting Standards Update (ASU) No. 2016-02, Leases (Topic 842), and since that date, has issued several ASUs to further clarify certain aspects of ASU 2016-02 and provide entities with practical expedients that may be elected upon adoption. The Company adopted the new standard beginning January 1, 2020 using the modified retrospective approach, electing the optional transition approach of not adjusting the comparative period financial statements for the impact of adoption. The Company elected the package of practical expedients permitted under the transition guidance, which allows the Company to carryforward its historical lease classification, its assessment on whether a contract is or contains a lease, and its initial direct costs for any leases that existed prior to adoption of the new standard. In addition, the Company elected not to recognize lease liabilities and related right-of-use assets for leases that, at the lease commencement date, have a lease term of 12 months or less. Adoption of the new standard on January 1, 2020 resulted in the recognition of $50.0 million of operating lease right-of-use assets and $52.8 million of total operating lease liabilities on the Company's condensed consolidated balance sheets. As part of the adoption, the Company also derecognized deferred rent of $2.8 million, primarily consisting of the noncurrent portion, net build-to-suit assets of $9.9 million, the build-to-suit lease financing obligation of $10.5 million, and recorded a cumulative-effect adjustment of $0.6 million to accumulated deficit as of January 1, 2020. Refer to Note 6 to these condensed consolidated financial statements.
In June 2016, the FASB issued ASU 2016-13, Financial Instruments-Credit Losses (Topic 326), Measurement of Credit Losses on Financial Instruments. This ASU changes the methodology for measuring credit losses and requires the establishment of an allowance for estimated credit losses on financial assets, including trade and other
receivables, at each reporting date. The Company adopted ASU 2016-13 effective January 1, 2020, noting no material impact on the Company’s condensed consolidated financial statements.
In August 2018, the FASB issued ASU No. 2018-15, Intangibles—Goodwill and Other—Internal-Use Software (ASC 350-40): Customer’s Accounting for Implementation Costs Incurred in a Cloud Computing Arrangement. This guidance provides that implementation costs be evaluated for capitalization using the same criteria as that used for internal-use software development costs, with amortization expense being recorded in the same income statement expense line as the hosted service costs and over the expected term of the hosting arrangement. For public business entities, it is effective for fiscal years beginning after December 15, 2019, and interim periods within those fiscal years. For all other entities, it is effective for fiscal years beginning after December 15, 2020, and interim periods beginning after December 15, 2021. Early adoption of the amendments in this update is permitted, including adoption in any interim period, for all entities. The Company adopted ASU 2018-15 effective January 1, 2020, noting no material impact on the Company’s condensed consolidated financial statements.
In November 2019, the FASB issued ASU 2019-10, Financial Instruments—Credit Losses (Topic 326), Derivatives and Hedging (Topic 815), and Leases (Topic 842). This ASU revises, and staggers, the effective dates for various major updates that have been issued since 2014 to alleviate the burden on both larger public companies as well as private companies, smaller public companies, not-for-profit organizations, and employee benefit plans. The Company adopted ASU 2019-10 effective January 1, 2020, noting no material impact on the Company’s condensed consolidated financial statements.
In December 2019, the FASB issued ASU 2019-12, Simplifying the Accounting for Income Taxes (ASC Topic 740). This ASU simplifies accounting for income taxes by removing certain exceptions to the general principles and amending existing guidance to improve consistent application. The amendments in this update are effective for fiscal years, and interim periods within those fiscal years, beginning after December 15, 2020, with early adoption permitted. The Company adopted ASU 2019-12 effective January 1, 2020, noting no material impact on the Company’s condensed consolidated financial statements.
Recently Issued Accounting Pronouncements
There have been no recent accounting pronouncements since the filing of the Company's Annual Report on Form 10-K for the year ended December 31, 2019, that may have a material impact on the Company's condensed consolidated financial statements.
v3.20.2
Revenue
6 Months Ended
Jun. 30, 2020
Revenue from Contract with Customer [Abstract]  
Revenue Revenue
        Revenue Recognition
In accordance with ASC 606, revenue is recognized when a customer obtains control of promised services. The amount of revenue recognized reflects the consideration that the Company expects to be entitled to receive in exchange for these services. To achieve this standard, the Company applies the following five steps:
1. Identify the contract with a customer
The Company considers the terms and conditions of the contracts and its customary business practices in identifying its contracts under ASC 606. The Company determines it has a contract with a customer when the contract is approved, the Company can identify each party’s rights regarding the services to be transferred, the Company can identify the payment terms, the Company has determined that collectibility is probable, and the contract has commercial substance. The Company applies judgment in determining that collectibility is probable, which is based on a variety of factors, including the customer’s historical payment experience or, in the case of a new customer, credit and financial information relevant to the customer.
2. Identify the performance obligations in the contract
Performance obligations promised in a contract are identified based on the services that will be transferred to the customer that are both capable of being distinct, whereby the customer can benefit from the service either on its own or together with other resources that are readily available to the Company, and are distinct in the context of the contract, whereby the transfer of the services is separately identifiable from other promises in the contract. The Company’s performance obligation primarily consists of subscription and support services, as they are provided over the same service period.
3. Determine the transaction price
The transaction price is determined based on the consideration to which the Company expects to be entitled in exchange for transferring services to the customer. Usage-based variable consideration is recognized in the period it is incurred. None of the Company’s contracts contain a significant financing component.
4. Allocate the transaction price to performance obligations in the contract
The subscription and support services in the Company’s contracts are considered a single performance obligation, and thus the entire transaction price is allocated to the single performance obligation.
5. Recognize revenue when or as the Company satisfies a performance obligation
Revenue is recognized at the time the related performance obligation is satisfied by transferring the service to a customer. Revenue is recognized when control of the services is transferred to the Company’s customers, in an amount that reflects the consideration that the Company expects to be entitled to receive in exchange for those services.
The Company generates sales directly through its sales team and through its channel partners. Revenue from sales to channel partners are recorded once all revenue recognition criteria above are met. Channel partners generally receive an order from an end-customer prior to placing an order with the Company. Payment from channel partners is not contingent on the partner’s collection from end-customers. The Company has determined that it is acting as an agent in these arrangements and records this revenue on a net basis.
Subscription and Support Revenue
The Company generates revenue primarily from sales to its customers of subscriptions to access its platform, together with related support services. Arrangements with customers generally do not provide the customer with the right to take possession of the Company’s software operating its global cloud platform at any time. Instead, customers are granted continuous access to the Company’s global cloud platform over the contractual period. Access to the Company’s platform and products is considered a monthly series comprising one performance obligation. A time-elapsed output method is used to measure progress because the Company transfers control evenly over the contractual period. Accordingly, the fixed consideration related to subscription and support revenue is generally recognized on a straight-line basis over the contract term beginning on the date that the Company’s service is made available to the customer. Usage-based consideration is primarily related to fees charged for the Company’s customer’s use of excess bandwidth when accessing the Company’s platform in a given period and is recognized as revenue in the period in which the usage occurs.
The typical subscription and support term for the Company’s contracted customers, which consist of customers that enter into contracts for the Company's Enterprise subscription plan (and which the Company previously referred to as enterprise customers), is one year and subscription and support term lengths range from one to three years. Most of the Company’s contracts with contracted customers are non-cancelable over the contractual term. Customers typically have the right to terminate their contracts for cause if the Company fails to perform in accordance with the contractual terms. For the Company’s pay-as-you-go customers, which consist of customers that sign up for the Company's Pro or Business subscription plans through the Company's website (and which the Company previously referred to as self-serve customers), subscription and support terms are typically monthly.
Variable Consideration
If the Company’s services do not meet certain service level commitments, its customers are entitled to receive service credits, and in certain cases, refunds, each representing a form of variable consideration. Revenue from sales is recorded at the net sales price, which is the transaction price, and includes estimates of these forms of variable consideration to the extent that a significant reversal of cumulative revenue will not occur in a future period. The Company has historically not experienced any incidents that had a material impact on its consolidated financial statements. Accordingly, any estimated refunds related to these agreements in the condensed consolidated financial statements are not material during the periods presented. Usage-based consideration is primarily related to fees charged for the Company’s customer’s use of excess bandwidth when accessing the Company’s platform in a given period and is recognized as revenue in the period in which the usage occurs.
Disaggregation of Revenue
Subscription and support revenue is recognized over time and accounted for substantially all of the Company’s revenue for the three and six months ended June 30, 2020 and 2019.
The following table summarizes the revenue by region based on the billing address of customers who have contracted to use the Company’s global cloud platform:
Three Months Ended June 30,Six Months Ended June 30,
2020201920202019
(in thousands)
AmountPercentage
of Revenue
AmountPercentage
of Revenue
AmountPercentage
of Revenue
AmountPercentage
of Revenue
United States$48,478  49 %$33,227  49 %$92,693  49 %$63,966  50 %
Europe, Middle East, and Africa
25,912  26 %15,997  24 %49,018  26 %30,623  24 %
Asia Pacific18,589  19 %13,610  20 %36,193  19 %25,789  20 %
Other6,742  %4,590  %13,067  %8,773  %
Total$99,721  100 %$67,424  100 %$190,971  100 %$129,151  100 %
The following table summarizes the revenue from contracts by type of customer:
Three Months Ended June 30,Six Months Ended June 30,
2020201920202019
(in thousands)
AmountPercentage
of Revenue
AmountPercentage
of Revenue
AmountPercentage
of Revenue
AmountPercentage
of Revenue
Channel partners
$10,153  10 %$5,663  %$19,312  10 %$11,859  %
Direct customers
89,568  90 %61,761  92 %171,659  90 %117,292  91 %
Total$99,721  100 %$67,424  100 %$190,971  100 %$129,151  100 %
Contract Balances
Contract liabilities consist of deferred revenue and include payments received in advance of performance under the contract. Such amounts are recognized as revenue over the contractual period. For the six months ended June 30, 2020 and 2019, the Company recognized revenue of $26.8 million and $13.1 million, respectively, that was included in the corresponding contract liability balance at the beginning of the periods presented.
The Company receives payments from customers based upon contractual billing schedules; accounts receivable are recorded when the right to consideration becomes unconditional. Standard payment terms are due upon receipt. Contract assets include amounts related to the Company’s contractual right to consideration for both completed and partially completed performance obligations that have not been invoiced.
Costs to Obtain and Fulfill a Contract
The Company capitalizes sales commission and associated payroll taxes paid to internal sales personnel that are incremental to the acquisition of channel partner and direct customer contracts. These costs are recorded as deferred contract acquisition costs on the condensed consolidated balance sheets. The Company determines whether costs should be deferred based on its sales compensation plans, if the commissions are in fact incremental and would not have occurred absent the customer contract.
Sales commissions for renewal of a contract are not considered commensurate with the commissions paid for the acquisition of the initial contract. Commissions paid upon the initial acquisition of a contract are amortized over an estimated period of benefit of three years while commissions paid for renewal contracts are amortized over the contractual term of the renewals. Amortization of deferred contract acquisition costs is recognized on a straight-line basis commensurate with the pattern of revenue recognition and included in sales and marketing expense in the condensed consolidated statements of operations. The Company determines the period of benefit for commissions
paid for the acquisition of the initial contract by taking into consideration the expected subscription term and expected renewals of its customer contracts, the duration of its relationships with its customers, customer retention data, its technology development lifecycle, and other factors. The Company periodically reviews the carrying amount of deferred contract acquisition costs to determine whether events or changes in circumstances have occurred that could impact the period of benefit of these deferred costs. The Company did not recognize any impairment losses of deferred contract acquisition costs during the periods presented.
The following table summarizes the activity of the deferred contract acquisition costs:
Three Months Ended June 30,Six Months Ended June 30,
2020201920202019
(in thousands)
Beginning balance$28,171  $17,846  $25,184  $15,940  
Capitalization of contract acquisition costs
9,672  4,221  16,158  8,446  
Amortization of deferred contract acquisition costs
(3,963) (2,585) (7,462) (4,904) 
Ending balance$33,880  $19,482  $33,880  $19,482  
Remaining Performance Obligations
As of June 30, 2020, the aggregate amount of the transaction price allocated to remaining performance obligations was $274.0 million. As of June 30, 2020, the Company expected to recognize 82% of its remaining performance obligations as revenue over the next 12 months and 18% of its remaining performance obligations as revenue over the next three years.
v3.20.2
Fair Value Measurements
6 Months Ended
Jun. 30, 2020
Fair Value Disclosures [Abstract]  
Fair Value Measurements Fair Value Measurements
Fair value is defined as the exchange price that would be received from sale of an asset or paid to transfer a liability in the principal or most advantageous market for the asset or liability in an orderly transaction between market participants on the measurement date.
Assets and liabilities measured at fair value are classified into the following categories:
Level I: Observable inputs are unadjusted quoted prices in active markets for identical assets or liabilities;
Level II: Observable inputs are quoted prices for similar assets and liabilities in active markets or inputs other than quoted prices that are observable for the assets or liabilities, either directly or indirectly through market corroboration, for substantially the full term of the financial instruments; and
Level III: Unobservable inputs that are supported by little or no market activity and that are significant to the fair value of the assets or liabilities. These inputs are based on the Company’s own assumptions used to measure assets and liabilities at fair value and require significant management judgment or estimation.
The Company's cash equivalents are comprised of highly liquid money market funds and commercial paper. The Company classifies money market funds within Level I of the fair value hierarchy because they are valued based on quoted market prices in active markets. The Company classifies its investments, which are comprised of U.S. treasury securities, U.S. government agency securities, commercial paper, and corporate bonds, within Level II of the fair value hierarchy because the fair value of these securities is priced by using inputs based on non-binding market consensus prices that are primarily corroborated by observable market data or quoted market prices for similar instruments. The Company recognizes transfers between levels within the fair value hierarchy, if any, at the end of each period. There were no transfers between levels during the periods presented.
The following table summarizes the Company’s cash and available-for-sale securities’ amortized cost, unrealized gains (losses), and fair value by significant investment category reported as cash and cash equivalents, restricted cash, or available-for-sale securities as of June 30, 2020 and December 31, 2019.
(in thousands)    Reported as:
June 30, 2020Amortized
Cost
Unrealized
Gain
Unrealized
(Loss)
Fair ValueCash &
Cash
Equivalents
Available-for-sale securitiesLong-
term
Restricted
Cash
Cash$17,036  $—  $—  $17,036  $14,849  $—  $2,187  
Level I:
Money market funds
251,805  —  —  251,805  245,145  —  6,660  
Level II:
Corporate bonds
137,047  404  (13) 137,438  —  137,438  —  
U.S. treasury securities
495,473  905  (16) 496,362  —  496,362  —  
U.S. government agency securities
50,866  26  (6) 50,886  —  50,886  —  
Commercial paper
124,410   —  124,411  53,989  70,422  —  
Subtotal
807,796  1,336  (35) 809,097  53,989  755,108  —  
Total assets measured at fair value on a recurring basis
$1,076,637  $1,336  $(35) $1,077,938  $313,983  $755,108  $8,847  

(in thousands)Reported as:
December 31, 2019Amortized
Cost
Unrealized
Gain
Unrealized
(Loss)
Fair
Value
Cash &
Cash
Equivalents
Available-for-sale securitiesLong-term
Restricted
Cash
Cash$24,631  $—  $—  $24,631  $24,631  $—  $—  
Level I:
Money market funds
32,856  —  —  32,856  26,196  —  6,660  
Level II:
Corporate bonds
84,054  22  (30) 84,046  —  84,046  —  
U.S. treasury securities
311,083  151  (23) 311,211  —  311,211  —  
U.S. government agency securities
95,380  17  —  95,397  22,549  72,848  —  
Commercial paper
95,467  —  —  95,467  65,600  29,867  —  
Subtotal
585,984  190  (53) 586,121  88,149  497,972  —  
Total assets measured at fair value on a recurring basis
$643,471  $190  $(53) $643,608  $138,976  $497,972  $6,660  
The aggregate fair value of the Company’s money market funds approximated amortized cost and, as such, there were no unrealized gains or losses on money market funds as of June 30, 2020 and December 31, 2019. Realized gains and losses, net of tax, were not material for any of the periods presented.
The amortized cost of available-for-sale investments with maturities less than one year was $677.2 million and $450.2 million as of June 30, 2020 and December 31, 2019, respectively. The amortized cost of available-for-sale investments with maturities greater than one year was $76.6 million and $47.7 million as of June 30, 2020 and December 31, 2019, respectively.
As of June 30, 2020, net unrealized gains on investments were $1.2 million net of tax and were included in accumulated other comprehensive income on the condensed consolidated balance sheets. As of December 31, 2019, net unrealized gains on investments were $0.1 million net of tax and were included in accumulated other comprehensive income on the condensed consolidated balance sheets. The unrealized gains and losses on available-for-sale investments are related to U.S. treasury securities, U.S. government agency securities, commercial paper, and corporate bonds. The Company determined any unrealized losses to be temporary. Factors considered in determining whether a loss is temporary include the financial condition and near-term prospects of the investee, the extent of the loss related to the credit of the issuer, the expected cash flows from the security, the Company’s intent to sell the security, and whether or not the Company will be required to sell the security before the
recovery of its amortized cost. As of June 30, 2020, the Company's investment portfolio consisted of investment grade securities with an average credit rating of AA+.
The Company carries the Notes issued in May 2020 at face value less the unamortized discount and issuance costs on its condensed consolidated balance sheets and presents that fair value for disclosure purposes only. As of June 30, 2020, the fair value of the Notes was $677.3 million. The fair value of the Notes, which are classified as Level II financial instruments, was determined based on the quoted bid prices of the Notes in an over-the-counter market on the last trading day of the reporting period. For further details on the Notes, refer to Note 7 to these condensed consolidated financial statements.
The Company classifies financial instruments in Level III of the fair value hierarchy when there is reliance on at least one significant unobservable input to the valuation model. In addition to these unobservable inputs, the valuation models for Level III financial instruments typically also rely on a number of inputs that are readily observable, either directly or indirectly. The Company’s assessment of the significance of a particular input to the fair value measurement in its entirety requires management to make judgments and consider factors specific to the asset or liability. Prior to the IPO, the Company's only Level III financial instruments were its redeemable convertible preferred stock warrants. Upon the completion of the IPO, the warrant to purchase shares of Series B redeemable convertible preferred stock was converted into a warrant to purchase shares of Class B common stock. As a result, the warrant liability was remeasured and reclassified to additional paid-in capital within stockholders' equity (deficit). For further details, refer to Note 9 to these condensed consolidated financial statements. There were no material financial instruments classified as Level III of the fair value hierarchy as of June 30, 2020 and December 31, 2019.
v3.20.2
Balance Sheet Components
6 Months Ended
Jun. 30, 2020
Organization, Consolidation and Presentation of Financial Statements [Abstract]  
Balance Sheet Components Balance Sheet Components
Accounts Receivable, Net
As of June 30, 2020 and December 31, 2019, the Company’s allowance for doubtful accounts was $1.6 million and $0.5 million, respectively. Bad debt expense for the three months ended June 30, 2020 and 2019 was $0.3 million and $0.2 million, respectively and $2.5 million and $0.5 million for the six months ended June 30, 2020 and 2019, respectively. For the three months ended June 30, 2020 and 2019, write-off of uncollectible accounts receivable was $0.9 million and $0.1 million, respectively, and $1.4 million and $0.1 million for the six months ended June 30, 2020 and 2019, respectively.
Prepaid Expenses and Other Current Assets
Prepaid expenses and other current assets consisted of the following:
 June 30, 2020December 31, 2019
 (in thousands)
Prepaid expenses$10,163  $10,913  
Deposits3,342  2,773  
Other3,658  3,308  
Total prepaid expenses and other current assets$17,163  $16,994  
Property and Equipment, Net
Property and equipment, net consisted of the following:
June 30, 2020December 31, 2019
(in thousands)
Property and equipment:
Servers—network infrastructure$102,183  $84,979  
Buildings—  13,035  
Construction in progress15,706  8,692  
Capitalized internal-use software42,666  31,171  
Office and computer equipment17,886  13,528  
Office furniture6,478  6,124  
Software1,331  1,025  
Leasehold improvements11,628  9,870  
Asset retirement obligation429  231  
Gross property and equipment198,307  168,655  
Less accumulated depreciation and amortization(83,758) (67,189) 
Total property and equipment, net$114,549  $101,466  
In connection with the adoption of ASC 842, the Company derecognized the building asset of $13.0 million as of January 1, 2020, which was initially recorded as a result of build-to-suit lease accounting and reclassified a portion of the balance, $1.6 million, to leasehold improvements. This amount reflects the lessee-owned assets of the construction project and is being depreciated over the remaining lease term. For further details on the adoption of ASC 842, refer to Note 2 to these condensed consolidated financial statements.
Depreciation and amortization expense on property and equipment for the three months ended June 30, 2020 and 2019 was $10.8 million and $7.0 million, respectively, and $20.7 million and $13.1 million for the six months ended June 30, 2020 and 2019, respectively. This includes amortization expense for capitalized internal-use software which totaled $2.8 million and $1.5 million for the three months ended June 30, 2020 and 2019, respectively, and $5.3 million and $2.8 million for the six months ended June 30, 2020 and 2019, respectively.
Goodwill
As of June 30, 2020 and December 31, 2019, the Company's goodwill was $17.2 million and $4.1 million, respectively. During the six months ended June 30, 2020, the Company recorded $13.1 million of goodwill in connection with the acquisition of S2 Systems Corporation (S2). For further detail on the acquisition, refer to Note 14 to these condensed consolidated financial statements. No goodwill impairments were recorded during the six months ended June 30, 2020 and 2019.
Acquired Intangible Assets, Net
Acquired intangible assets, net consisted of the following:
June 30, 2020
Gross Carrying
Amount
Accumulated
Amortization
Net Book
Value
(in thousands)
Developed technology$5,600  $1,400  $4,200  
Total acquired intangible assets, net$5,600  $1,400  $4,200  
December 31, 2019
Gross Carrying
Amount
Accumulated
Amortization
Net Book
Value
(in thousands)
Developed technology$250  $219  $31  
Total acquired intangible assets, net$250  $219  $31  
During the six months ended June 30, 2020, the Company recorded $5.6 million of developed technology in connection with the acquisition of S2. For further details on the acquisition, refer to Note 14 to these condensed consolidated financial statements.
Amortization of acquired intangible assets for the three months ended June 30, 2020 and 2019 was $0.7 million and zero, respectively, and $1.4 million and $0.1 million for the six months ended June 30, 2020 and 2019, respectively.
As of June 30, 2020, the estimated future amortization expense of acquired intangible assets was as follows:
Estimated
Amortization
(in thousands)
Year ending December 31,
2020 (remaining six months)$1,400  
20212,800  
Total$4,200  
Accrued Expenses and Other Current Liabilities
Accrued expenses and other current liabilities consisted of the following:
June 30, 2020December 31, 2019
(in thousands)
Accrued compensation and benefits$20,242  $14,970  
Accrued expenses3,904  5,331  
Customer refunds and credits1,670  3,328  
Accrued co-location and bandwidth2,831  2,696  
Other3,429  1,989  
Total accrued expenses and other current liabilities$32,076  $28,314  
Other Noncurrent Liabilities
Other noncurrent liabilities consisted of the following:
June 30, 2020December 31, 2019
(in thousands)
Accrued taxes$5,325  $4,862  
Deferred rent—  2,342  
Other3,948  2,599  
Total other noncurrent liabilities$9,273  $9,803  
In connection with the adoption of ASC 842, the Company derecognized the deferred rent as of January 1, 2020. For further details on the adoption of ASC 842, refer to Note 2 to these condensed consolidated financial statements.
v3.20.2
Leases
6 Months Ended
Jun. 30, 2020
Leases [Abstract]  
Leases Leases
The Company's lease portfolio consists of real estate and co-location agreements in the U.S. and internationally. The real estate leases include leases for office space and have remaining lease terms of up to 4.5 years. Certain of these leases contain options that allow the Company to extend or terminate the lease agreement. The Company's co-location leases have remaining lease terms of up to 4.6 years. All of the Company's leases are classified as operating leases.
The Company also subleases one of its leased office spaces. The sublease has a remaining lease term of 0.9 years. Sublease income, which is recorded as a reduction of rent expense was $0.7 million and $0.3 million for the three months ended June 30, 2020 and 2019, respectively, and $1.4 million and $0.3 million for the six months ended June 30, 2020 and 2019, respectively.
The components of lease cost related to the Company's operating leases included in the condensed consolidated statements of operations were as follows:
Three Months Ended
June 30,
Six Months Ended
June 30,
2020
(in thousands)
Operating lease cost$4,789  $9,332  
Sublease income(710) (1,417) 
Total lease cost$4,079  $7,915  
Variable lease cost and short-term lease cost for the three and six months ended June 30, 2020 were not material.
As of June 30, 2020, the Company had $20.2 million of total undiscounted future payments under operating leases that have not yet commenced, which were not included on the condensed consolidated balance sheets. These operating leases will commence between July 2020 and October 2024 and have an average lease term of 3.3 years.
As of June 30, 2020, the weighted-average remaining term of the Company’s operating leases was 3.1 years and the weighted-average discount rate used to measure the present value of the operating lease liabilities was 3.3%.

Maturities of the operating lease liabilities as of June 30, 2020 are as follows:
June 30, 2020
(in thousands)
2020 (remaining six months)$8,985  
202117,742  
202213,131  
20236,944  
20243,662  
Thereafter 
Total lease payments$50,466  
Less: Imputed interest$(2,358) 
Total operating lease liabilities$48,108  
Prior to the Company's adoption of ASC 842, future minimum operating lease payments as of December 31, 2019 were as follows:
December 31, 2019
(in thousands)
2020$18,618  
202116,942  
202212,423  
20236,410  
20244,474  
Thereafter10,304  
Total lease payments$69,171  
The amounts above include the build-to-suit lease.
Prior to the Company's adoption of ASC 842, the Company recognized rent expense on a straight-line basis over the lease period. The difference between the rent paid and the straight-line rent was recorded as deferred rent, which was included in accrued expenses and other current liabilities and other noncurrent liabilities on the condensed consolidated balance sheets. Rent expense was $2.7 million and $5.3 million for the three and six months ended June 30, 2019, respectively.
Leases Leases
The Company's lease portfolio consists of real estate and co-location agreements in the U.S. and internationally. The real estate leases include leases for office space and have remaining lease terms of up to 4.5 years. Certain of these leases contain options that allow the Company to extend or terminate the lease agreement. The Company's co-location leases have remaining lease terms of up to 4.6 years. All of the Company's leases are classified as operating leases.
The Company also subleases one of its leased office spaces. The sublease has a remaining lease term of 0.9 years. Sublease income, which is recorded as a reduction of rent expense was $0.7 million and $0.3 million for the three months ended June 30, 2020 and 2019, respectively, and $1.4 million and $0.3 million for the six months ended June 30, 2020 and 2019, respectively.
The components of lease cost related to the Company's operating leases included in the condensed consolidated statements of operations were as follows:
Three Months Ended
June 30,
Six Months Ended
June 30,
2020
(in thousands)
Operating lease cost$4,789  $9,332  
Sublease income(710) (1,417) 
Total lease cost$4,079  $7,915  
Variable lease cost and short-term lease cost for the three and six months ended June 30, 2020 were not material.
As of June 30, 2020, the Company had $20.2 million of total undiscounted future payments under operating leases that have not yet commenced, which were not included on the condensed consolidated balance sheets. These operating leases will commence between July 2020 and October 2024 and have an average lease term of 3.3 years.
As of June 30, 2020, the weighted-average remaining term of the Company’s operating leases was 3.1 years and the weighted-average discount rate used to measure the present value of the operating lease liabilities was 3.3%.

Maturities of the operating lease liabilities as of June 30, 2020 are as follows:
June 30, 2020
(in thousands)
2020 (remaining six months)$8,985  
202117,742  
202213,131  
20236,944  
20243,662  
Thereafter 
Total lease payments$50,466  
Less: Imputed interest$(2,358) 
Total operating lease liabilities$48,108  
Prior to the Company's adoption of ASC 842, future minimum operating lease payments as of December 31, 2019 were as follows:
December 31, 2019
(in thousands)
2020$18,618  
202116,942  
202212,423  
20236,410  
20244,474  
Thereafter10,304  
Total lease payments$69,171  
The amounts above include the build-to-suit lease.
Prior to the Company's adoption of ASC 842, the Company recognized rent expense on a straight-line basis over the lease period. The difference between the rent paid and the straight-line rent was recorded as deferred rent, which was included in accrued expenses and other current liabilities and other noncurrent liabilities on the condensed consolidated balance sheets. Rent expense was $2.7 million and $5.3 million for the three and six months ended June 30, 2019, respectively.
v3.20.2
Debt
6 Months Ended
Jun. 30, 2020
Debt Disclosure [Abstract]  
Debt Debt
Convertible Senior Notes
In May 2020, the Company issued $575.0 million aggregate principal amount of the Notes in a private offering to qualified institutional buyers pursuant to Rule 144A promulgated under the Securities Act, including the initial purchasers' exercise in full of their option to purchase an additional $75.0 million aggregate principal amount of the Notes. The total net proceeds from the issuance of the Notes, after deducting initial purchaser discounts and debt issuance costs, were $562.5 million.
The Notes are senior unsecured obligations of the Company and will mature on May 15, 2025, unless earlier redeemed, repurchased, or converted, and are governed by the terms of the Indenture dated May 15, 2020 (the Indenture). Interest is payable semi-annually in arrears on May 15 and November 15 of each year, beginning on November 15, 2020, at a rate of 0.75% per year.
The Notes are convertible at an initial conversion rate of 26.7187 shares of the Company's Class A common stock per $1,000 principal amount of the Notes, which is equivalent to an initial conversion price of approximately $37.43 per share, subject to adjustment upon the occurrence of specified events. The Notes may be converted at any time on or after February 15, 2025 until the close of business on the second scheduled trading day immediately preceding the maturity date. Holders of the Notes may convert all or any portion of their Notes at their option at any time prior to the close of business on the business day immediately preceding February 15, 2025 only under the following circumstances:
during any calendar quarter commencing after the calendar quarter ending on September 30, 2020 (and only during such calendar quarter), if the last reported sale price of the Company's Class A common stock for at least 20 trading days (whether or not consecutive) during a period of 30 consecutive trading days ending on, and including, the last trading day of the immediately preceding calendar quarter is greater than or equal to 130% of the conversion price on each applicable trading day;
during the five business day period after any five consecutive trading day period in which the trading price per $1,000 principal amount of the Notes for each trading day of the measurement period was less than 98% of the product of the last reported sale price of the Company's Class A common stock and the conversion rate on each such trading day;
if the Company calls such Notes for redemption, at any time prior to the close of business on the second scheduled trading day immediately preceding the redemption date; or
upon the occurrence of specified corporate events.
In addition, if the Notes are converted prior to the maturity date following certain specified corporate events or because the Company issues a notice of redemption, the Company will increase the conversion rate for such Notes converted in connection with such a corporate event or during the related redemption period, as the case may be, in certain circumstances.
Upon conversion, the Company will pay or deliver, as the case may be, cash, shares of the Company's Class A common stock, or a combination of cash and shares of the Company's Class A common stock, at the Company's election. It is the Company’s current intent to settle the principal amount of Notes with cash.
The Company may not redeem the Notes prior to May 20, 2023. The Company may redeem for cash all or any portion of the Notes, at its option, on or after May 20, 2023, if the last reported sale price of the Company’s Class A common stock has been at least 130% of the conversion price then in effect for at least 20 trading days (whether or not consecutive) during any 30 consecutive trading day period (including the last trading day of such period) ending on, and including, the trading day preceding the date on which the Company provides notice of redemption at a redemption price equal to 100% of the principal amount of the Notes to be redeemed, plus any accrued and unpaid interest to, but excluding, the redemption date. No sinking fund is provided for the Notes.
If the Company undergoes a fundamental change (as defined in the Indenture), holders of the Notes may require the Company to repurchase for cash all or any portion of their notes at a fundamental change repurchase price equal to 100% of the principal amount of the Notes to be repurchased, plus accrued and unpaid interest to, but excluding, the fundamental change repurchase date.
In accounting for the issuance of the Notes, the Company separated the Notes into liability and equity components. The carrying amount of the liability component was calculated by using an effective interest rate of 10.0%, which was determined by measuring the fair value of a similar debt instrument that does not have an associated convertible feature. The carrying amount of the equity component representing the conversion option and recorded in additional paid-in capital was $205.3 million and was determined by deducting the fair value of the liability component from the par value of the Notes. The equity component is not remeasured as long as it continues to meet the conditions for equity classification. The excess of the principal amount of the liability component over its carrying amount represents a debt discount that is amortized to interest expense using the effective interest rate method over the contractual term of the Notes.
In accounting for the issuance costs related to the Notes, the Company allocated the total amount incurred to the liability and equity components based on the proportion of the proceeds allocated to the debt and equity components. Issuance costs attributable to the liability component were $8.0 million (presented as a reduction to the carrying amount of debt) and are being amortized to interest expense over the contractual term of the Notes. The issuance costs attributable to the equity component were $4.5 million and are netted against the equity component in additional paid-in capital.
The net carrying amount of the liability component of the Notes was as follows:

June 30, 2020
(in thousands)
Principal$575,000  
Unamortized debt discount(201,193) 
Unamortized debt issuance costs(7,858) 
Carrying amount of the liability component, net$365,949  

The net carrying amount of the equity component of the Notes was as follows:
June 30, 2020
(in thousands)
Proceeds allocated to the conversion option (debt discount)$205,290  
Less: allocated issuance costs(4,478) 
Carrying amount of the equity component, net$200,812  
As of June 30, 2020, the if-converted value of the Notes did not exceed the outstanding principal amount, and the remaining life of the Notes was approximately 59 months.
The following table sets forth total interest expense recognized related to the Notes:
Three Months Ended June 30,Six Months Ended June 30,
2020201920202019
(in thousands)
Coupon interest expense$551  $—  $551  $—  
Amortization of debt discount$4,097  $—  $4,097  $—  
Amortization of debt issuance costs$206  $—  $206  $—  
Total$4,854  $—  $4,854  $—  

Capped Call Transactions
In connection with the offering of the Notes, the Company entered into privately-negotiated capped call transactions with certain financial institution counterparties (the Capped Calls). The Capped Calls each have an initial strike price of approximately $37.43 per share of the Company's Class A common stock, subject to certain adjustments, which corresponds to the initial conversion price of the Notes. The Capped Calls each have an initial cap price of approximately $57.58 per share, subject to certain adjustments. The Capped Calls initially cover, subject to anti-dilution adjustments, approximately 15.4 million shares of the Company's Class A common stock. The Capped Calls are intended to generally offset potential dilution to the Company's Class A common stock upon conversion of the Notes and/or offset the potential cash payments that the Company could be required to make in excess of the principal amount upon any conversion, subject to the cap price. The Capped Calls are subject to either adjustment or termination upon the occurrence of certain specified events affecting the Company, including a merger event, a tender offer, and a nationalization, insolvency, or delisting involving the Company. The Capped Calls expire in incremental components on each trading date between March 18, 2025 and May 13, 2025.
The Capped Calls are recorded in stockholders' equity and are not accounted for as derivatives. The premium paid for the purchase of the Capped Calls of $67.3 million was recorded as a reduction to additional paid-in capital on the condensed consolidated balance sheets.
v3.20.2
Commitments and Contingencies
6 Months Ended
Jun. 30, 2020
Commitments and Contingencies Disclosure [Abstract]  
Commitments and Contingencies Commitments and Contingencies
Bandwidth & Co-location Commitments
The Company enters into long-term non-cancelable agreements with providers in various countries to purchase capacity, such as bandwidth and co-location space, for the Company’s global cloud platform. Bandwidth and co-location costs for paying customers are recorded as cost of revenue in the condensed consolidated statements of operations and as sales and marketing expense in the condensed consolidated statements of operations for free customers. Such costs totaled $12.5 million and $8.8 million for the three months ended June 30, 2020 and 2019, respectively and $23.1 million and $17.1 million for the six months ended June 30, 2020 and 2019, respectively. Refer to the table below for long-term bandwidth and other co-location related commitments under non-cancelable contracts with various networks and Internet service providers as of June 30, 2020. For the lease components of co-location agreements, refer to Note 6 to these condensed consolidated financial statements.
Purchase Commitments
Open purchase commitments are for the purchase of services under non-cancelable contracts. They are not recorded as liabilities on the condensed consolidated balance sheet as of June 30, 2020 as the Company has not yet received the related services. Refer to the table below for purchase commitments under non-cancelable contracts with various vendors as of June 30, 2020.
Payments Due by Period as of June 30, 2020
Total2020 (remaining six months)2021202220232024Thereafter
(in thousands)
Non-cancelable:
Open purchase agreements(1)
$16,242  $2,695  $3,798  $2,689  $1,291  $741  $5,028  
Bandwidth and other co-location related commitments(2)
31,689  8,673  11,718  5,229  3,383  1,385  1,301  
Other commitments(3)
2,188  —  2,188  —  —  —  —  
Total$50,119  $11,368  $17,704  $7,918  $4,674  $2,126  $6,329  
(1)Open purchase commitments are for the purchase of services under non-cancelable contracts. They were not recorded as liabilities on the condensed consolidated balance sheet as of June 30, 2020 as the Company had not yet received the related services.
(2)Long-term commitments for bandwidth usage and other co-location related commitments with various networks and Internet service providers. The costs for services not yet received were not recorded as liabilities on the condensed consolidated balance sheet as of June 30, 2020.
(3)Indemnity holdback consideration associated with the S2 acquisition. See Note 14.
Legal Matters
From time to time the Company is a party to various legal proceedings that arise in the ordinary course of business. In addition, third parties may from time to time assert claims against the Company in the form of letters and other communications. Management currently believes that there is no pending or threatened legal proceeding to which the Company is a party that is likely to have a material adverse effect on the Company’s condensed consolidated financial statements. However, the results of legal proceedings are inherently unpredictable and if an unfavorable ruling were to occur in any of the legal proceedings there exists the possibility of a material adverse effect on the Company’s financial position, results of operations, and cash flows. The Company accrues for legal proceedings that it considers probable and for which the loss can be reasonably estimated. The Company also discloses material contingencies when it believes a loss is not probable but reasonably possible. Legal costs incurred and expected to be incurred related to litigation matters are expensed as incurred.
The Company’s platform and associated products are subject to various restrictions under U.S. export control and sanctions laws and regulations, including the U.S. Department of Commerce’s Export Administration Regulations (EAR) and various economic and trade sanctions regulations administered by the U.S. Department of the Treasury’s Office of Foreign Assets Controls (OFAC). The U.S. export control laws and U.S. economic sanctions laws include restrictions or prohibitions on the sale or supply of certain products and services to U.S. embargoed or sanctioned countries, governments, persons and entities and also require authorization for the export of certain encryption items. In addition, various countries regulate the import of certain encryption technology, including through import permitting and licensing requirements and have enacted or could enact laws that could limit the Company’s ability to distribute its platform.
Although the Company takes precautions to prevent its platform and associated products from being accessed or used in violation of such laws, the Company may have inadvertently allowed its platform and associated products to be accessed or used by some customers in apparent violation of U.S. economic sanctions laws, including by users in embargoed or sanctioned countries, and the Company may have exported or allowed the download of certain software prior to making required filings with the U.S. Department of Commerce’s Bureau of Industry and Security. As a result, the Company has submitted to OFAC and to the Bureau of Industry and Security a voluntary self-disclosure concerning potential violations, and the Company has submitted a voluntary self-disclosure to the Census Bureau regarding potential violations of the Foreign Trade Regulations related to some incorrect electronic export information statements to the U.S. government for certain hardware exports, which were authorized. The voluntary self-disclosure to the Census Bureau was completed with no penalties in November 2019, and the voluntary self-disclosure to the Bureau of Industry and Security was completed with no penalties in June 2020. The voluntary self-disclosure to OFAC remains under review. If the Company is found to be in violation of U.S. economic sanctions or export control laws, it could result in substantial fines and penalties for the Company and for the individuals working for the Company. The Company may also be adversely affected through other penalties, reputational harm, loss of access to certain markets or otherwise. No loss has been recognized in the condensed
consolidated financial statements for this loss contingency as it is not probable a loss has been incurred and the range of a possible loss is not yet estimable.
Guarantees and Indemnifications
If the Company's services do not meet certain service level commitments, its contracted customers and certain of its pay-as-you-go customers are entitled to receive service credits, and in certain cases, refunds, each representing a form of variable consideration. To date, the Company has not incurred any material costs as a result of such commitments.
The Company’s arrangements generally include certain provisions for indemnifying customers against liabilities if its products or services infringe a third-party’s intellectual property rights. It is not possible to determine the maximum potential amount under these indemnification obligations due to the limited history of prior indemnification claims and the unique facts and circumstances involved in each particular agreement. To date, the Company has not incurred any material costs as a result of such obligations and has not accrued any liabilities related to such obligations in the condensed consolidated financial statements.
The Company has also agreed to indemnify its directors, executive officers, and certain other employees for costs associated with any fees, expenses, judgments, fines, and settlement amounts incurred by them in any action or proceeding to which any of them are, or are threatened to be, made a party by reason of their service as a director or officer. The Company maintains director and officer insurance coverage that would generally enable it to recover a portion of any future amounts paid. The Company also may be subject to indemnification obligations by law with respect to the actions of its employees under certain circumstances and in certain jurisdictions.
v3.20.2
Preferred Stock
6 Months Ended
Jun. 30, 2020
Temporary Equity Disclosure [Abstract]  
Preferred Stock Preferred Stock
Preferred Stock
In connection with the IPO, the Company's amended and restated certificate of incorporation became effective, which authorized the issuance of 225,000,000 shares of preferred stock with a par value of $0.001 per share with rights and preferences, including voting rights, designated from time to time by the Company's Board of Directors.
Redeemable Convertible Preferred Stock Warrants
In connection with the terms of a loan and security agreement entered into by the Company in April 2011, the Company issued a warrant to purchase 59,140 shares of Series B redeemable convertible preferred stock upon execution of the agreement, an additional warrant to purchase 94,510 shares of Series B redeemable convertible preferred stock in connection with the Company’s drawdown of $1.6 million under the facility during October 2011, and a warrant to purchase 23,760 shares of Series B redeemable convertible preferred stock in connection with the final drawdown of $0.4 million in January 2012. The warrants had an exercise price of $0.34 per share. The warrants were considered a liability and carried at fair value with any changes in fair value recognized in other income (expense), net in the condensed consolidated statements of operations. Upon completion of the IPO, the warrants to purchase Series B redeemable convertible preferred stock were automatically converted to warrants to purchase an equal number of shares of Class B common stock. As a result, the warrant liability was remeasured and reclassified to additional paid-in capital within stockholders' equity (deficit). In the year ended December 31, 2019, the warrants were exercised and such shares were settled via the net settlement method, resulting in the issuance of 174,347 shares of the Company's Class B common stock.
During the three and six months ended June 30, 2019, the Company recorded a loss of $0.2 million and $0.3 million, respectively, related to the change in fair value of the redeemable convertible preferred stock warrants.
v3.20.2
Common Stock
6 Months Ended
Jun. 30, 2020
Equity [Abstract]  
Common Stock Common StockThe Company’s amended and restated certificate of incorporation authorizes the issuance of Class A common stock and Class B common stock. The holder of each share of Class A common stock is entitled to one vote per share, while the holder of each share of Class B common stock is entitled to 10 votes per share. As of June 30, 2020 and December 31, 2019, the Company was authorized to issue 2,250,000,000 shares of Class A common stock and 315,000,000 shares of Class B common stock, each with a par value of $0.001 per share. There were 184,900,249 and 87,071,783 shares of Class A common stock issued and outstanding as of June 30, 2020 and December 31,
2019, respectively. The number of shares of Class B common stock issued and outstanding was 120,523,936 and 213,101,364, as of June 30, 2020 and December 31, 2019, respectively.
Holders of the Company’s Class A common stock and Class B common stock are entitled to dividends when, as and if, declared by the Company’s Board of Directors, subject to the rights of the holders of all classes of stock outstanding having priority rights to dividends. Any dividends paid to the holders of the Class A common stock and Class B common stock will be paid on a pro rata basis. As of June 30, 2020 and December 31, 2019, the Company had not declared any dividends. The rights of the holders of Class A and Class B common stock are identical, except with respect to voting and conversion. Shares of the Company's Class B common stock are convertible into an equivalent number of shares of the Company's Class A common stock and generally convert into shares of the Company's Class A common stock upon cessation of employment or transfer, except for certain transfers described in the Company's amended and restated certificate of incorporation. Class A common stock and Class B common stock are referred to, collectively, as common stock throughout the notes to these condensed consolidated financial statements, unless otherwise indicated.
Common Stock Reserved for Future Issuance
Shares of common stock reserved for future issuance, on an as-if converted basis, are as follows:
June 30, 2020December 31, 2019
(in thousands)
Convertible senior notes19,972  —  
Stock options issued and outstanding20,085  21,191  
Remaining shares available for issuance under the 2019 Plan26,289  29,048  
Outstanding and unsettled restricted stock units (RSUs)7,158  7,175  
Shares available for issuance under the ESPP5,449  5,870  
Total shares of common stock reserved78,953  63,284  
v3.20.2
Stock-based Compensation
6 Months Ended
Jun. 30, 2020
Share-based Payment Arrangement [Abstract]  
Stock-based Compensation Stock-based Compensation
Equity Incentive Plans
In 2010, the Company's Board of Directors adopted and stockholders approved the 2010 Equity Incentive Plan (2010 Plan). The 2010 Plan is a broad-based retention program and is intended to attract and retain talented employees, directors, and non-employee consultants. The 2010 Plan provides for the granting of stock options, restricted stock, RSUs, and stock appreciation rights to employees, directors, and consultants. Incentive stock options may be granted only to employees. All other awards under the 2010 Plan, including non-qualified stock options, may be granted to employees, directors, and consultants. Except for qualifying assumptions and substitutions of options, the exercise price of an incentive stock option and non-qualified stock option shall not be less than 100% of the fair market value of such shares on the date of grant. Prior to the Company's IPO, stock-based awards forfeited, canceled, or repurchased generally were returned to the pool of shares of common stock available for issuance under the 2010 Plan. In connection with the IPO, the 2010 Plan was terminated effective immediately prior to the effectiveness of the 2019 Equity Incentive Plan (2019 Plan) and the Company ceased granting any additional awards under the 2010 Plan. All outstanding awards under the 2010 Plan at the time of the termination of the 2010 Plan remain subject to the terms of the 2010 Plan, and any shares underlying stock options that expire or terminate or are forfeited or repurchased by the Company under the 2010 Plan will be automatically transferred to the 2019 Plan.
In 2019, the Company's Board of Directors adopted and stockholders approved the 2019 Plan, which became effective one business day prior to the effective date of the Company's registration statement on Form S-1 for the IPO. The 2019 Plan provides for the granting of stock options, restricted stock, RSUs, stock appreciation rights, performance shares, performance stock units, and performance awards for the Company's Class A common stock to the Company's employees, directors, and consultants. Except as otherwise indicated below, the maximum number of shares of Class A common stock that may be issued under the 2019 Plan will not exceed 66,661,953 shares of the Company's Class A common stock, which is the sum of (1) 29,335,000 new shares, plus (2) an additional number of shares of Class A common stock not to exceed 37,326,953, consisting of the total number of
shares of Class A or Class B common stock subject to outstanding awards granted under the 2010 Plan that, on or after the 2019 Plan became effective, are canceled, expire, or otherwise terminate prior to exercise or settlement; are repurchased by the Company because of the failure to vest; or are forfeited, tendered to, or withheld by the Company (or not issued) to satisfy a tax withholding obligation or the payment of an exercise price, if any, as such shares become available from time to time. Stock-based awards under the 2019 Plan that expire or are forfeited, canceled, or repurchased generally are returned to the pool of shares of Class A common stock available for issuance under the 2019 Plan. In addition, the number of shares of the Company's Class A common stock reserved for issuance under the 2019 Plan will automatically increase on January 1 of each calendar year, starting on January 1, 2021 through January 1, 2029, in an amount equal to the least of (i) 29,335,000 shares, (ii) 5% of the total number of shares of Class A and Class B common stock outstanding on December 31 of the fiscal year before the date of each automatic increase, or (iii) a lesser number of shares determined by the compensation committee of the Company's Board of Directors prior to the applicable January 1. As of June 30, 2020, 1,700,000 stock options to purchase shares of Class A common stock and 3,099,658 shares of Class A common stock underlying RSUs have been granted under the 2019 Plan, and the number of shares of Class A common stock available for issuance under the 2019 Plan was 26,289,059.
Stock Options
Under the 2010 Plan and 2019 Plan, at exercise, stock option awards entitle the holder to receive one share of Class B or Class A common stock, in the case of the 2010 Plan, or one share of Class A common stock, in the case of the 2019 Plan. Stock options granted under the 2010 Plan and the 2019 Plan generally vest over a four-year period subject to remaining continuously employed and expire no more than 10 years from the date of grant.
The following table summarizes the stock options activity under the 2010 Plan and 2019 Plan for the six months ended June 30, 2020:
Stock Options Outstanding
(in thousands, except year and per share data)
Shares Subject to Options OutstandingWeighted- Average Exercise Price per OptionWeighted- Average Remaining Contractual Terms (in years)Aggregate Intrinsic Value
Balances as of December 31, 201921,191  $2.30  7.4$312,720  
Options granted 1,700  $17.93  
Options exercised (2,618) $1.69  $54,791  
Options canceled/forfeited/expired (188) $2.56  
Balances as of June 30, 202020,085  $3.70  7.4$647,698  
Vested and expected to vest as of June 30, 202020,085  $3.70  7.4$647,698  
Exercisable as of June 30, 202018,386  $2.39  7.2$617,064  
The weighted-average assumptions used to determine the fair value of stock options granted during the periods presented were as follows:
Six months ended June 30,
20202019
Expected term (in years)6.06.2
Expected volatility40.3 %40.3 %
Risk-free interest rate0.7 %2.3 %
Dividend yield—  —  
The weighted-average grant date fair value of options granted during the six months ended June 30, 2020 and 2019 was $9.32 and $4.10 per share, respectively.
The aggregate intrinsic value is the difference between the exercise price of the option and the estimated fair value of the underlying common stock. Options exercisable include 13,089,561 and 15,477,903 options that were unvested as of June 30, 2020 and December 31, 2019, respectively.
The total grant date fair value for vested options in the six months ended June 30, 2020 and 2019 was $3.7 million and $2.2 million, respectively.
As of June 30, 2020 and December 31, 2019, there was $26.3 million and $15.8 million, respectively, of unrecognized stock-based compensation expense related to unvested stock options that is expected to be recognized over a weighted-average period of 3.0 years and 2.7 years, respectively.
Early Exercises of Stock Options
The 2010 Plan allows for the early exercise of stock options for certain individuals as determined by the Company’s Board of Directors. Shares of common stock issued upon early exercises of unvested options are not deemed, for accounting purposes, to be issued until those shares vest according to their respective vesting schedules and accordingly, the consideration received for early exercises is initially recorded as a liability and reclassified to common stock and additional paid-in capital as the underlying awards vest. Stock options that are early exercised are subject to a repurchase option that allows the Company to repurchase any unvested shares within six months of an individual’s termination for any reason, including death and disability (or in the case of shares issued upon exercise of an option after termination, within six months of the date of exercise). As of June 30, 2020 and December 31, 2019, the Company had $10.7 million and $13.3 million, respectively, recorded in liability for early exercise of unvested stock options, and the related number of unvested shares subject to repurchase was 4,825,368 and 5,945,083, respectively.
Restricted Stock and Restricted Stock Units
RSUs granted under the 2010 Plan generally vest upon the satisfaction of both a service-based vesting condition and a performance vesting condition, as defined below, occurring before these RSUs expire. RSUs granted under the 2019 Plan generally vest upon the satisfaction of a service-based vesting condition. The service-based vesting condition for employees under both the 2010 Plan and the 2019 Plan is typically satisfied over a four-year period. The performance vesting condition under the 2010 Plan was deemed satisfied upon the effective date of the Company's registration statement on Form S-1 filed with the SEC in connection with the IPO.
In connection with the acquisition of S2, the Company issued 948,000 shares of Class A common stock to former S2 shareholders, some of which have joined the Company as employees. Of these issued shares, 841,000 shares are restricted stock that is subject to vesting, with 77.8% of this restricted stock vesting in two years from the acquisition date and the remainder of this restricted stock vesting in three years from the acquisition date, in each case subject to remaining continuously employed. The total grant date fair value for vested shares in the six months ended June 30, 2020 and 2019, was $1.8 million and zero, respectively. The total stock-based compensation expense for shares of unvested restricted stock for the six months ended June 30, 2020 and 2019 was $2.8 million and zero, respectively. As of June 30, 2020 and 2019, the total unrecognized stock-based compensation expense related to unvested restricted stock was $11.6 million and zero, respectively. For further details on the S2 acquisition, refer to Note 14 to these condensed consolidated financial statements.
Restricted stock and RSU activity for the six months ended June 30, 2020 was as follows:

Restricted Stock and RSUsWeighted-Average
Grant
Date Fair Value
(in thousands, except per share data)
Unvested and outstanding as of December 31, 20196,508  $11.08  
Granted - RSUs1,987  $20.61  
Granted - Restricted stock841  $17.06  
Vested - RSUs(1,068) $10.17  
Forfeited (278) $11.35  
Unvested as of June 30, 20207,990  $13.04  
Vested and not yet released $9.07  
Outstanding as of June 30, 20207,999  $13.04  
The total grant date fair value for vested RSUs for the six months ended June 30, 2020 and 2019 was $10.9 million and zero, respectively. The total stock-based compensation expense for RSUs for the three months ended June 30, 2020 and 2019 was $8.7 million and zero, respectively, and for the six months ended June 30, 2020 and 2019 was $17.5 million and zero, respectively. As of June 30, 2020 and December 31, 2019, the total unrecognized stock-based compensation expense related to RSUs was $73.4 million and $53.1 million, respectively, that is expected to be recognized over a weighted-average period of 3.0 years and 2.5 years, respectively.
2019 Employee Stock Purchase Plan
In September 2019, the Company's Board of Directors adopted and stockholders approved the 2019 Employee Stock Purchase Plan (ESPP), which became effective one business day prior to the effective date of the Company's registration statement on Form S-1 filed with the SEC in connection with the IPO. A total of 5,870,000 shares of Class A common stock were initially reserved for sale under the ESPP. The number of shares of Class A common stock reserved for issuance includes an annual increase on the first day of each fiscal year, beginning on January 1, 2021, by the least of (1) 5,870,000 shares of Class A common stock, (2) 1% of the total number of shares of Class A and Class B common stock outstanding on December 31 of the fiscal year before the date of each automatic increase; or (3) such lesser amount as the compensation committee of the Company's Board of Directors may determine prior to the applicable January 1.
Generally, all regular employees, including executive officers, employed by the Company or by any of its designated subsidiaries, except for those holding 5% or more of the total combined voting power or value of all classes of common stock, may participate in the ESPP and may contribute, normally through payroll deductions, up to 10% of their eligible compensation for the purchase of Class A common stock under the ESPP. Unless otherwise determined by the compensation committee of the Board of Directors, Class A common stock will be purchased for the accounts of employees participating in the ESPP at a price per share that is the lesser of (1) 85% of the fair market value of a share of the Company's Class A common stock on the first date of an offering period, or (2) 85% of the fair market value of a share of the Company's Class A common stock on the date of purchase.
The initial offering period began on September 13, 2019 and ended on May 15, 2020, with a purchase date of May 15, 2020. In addition, a second offering period began on November 15, 2019 and also ended on May 15, 2020, with a purchase date of May 15, 2020. The subsequent offering period began on May 15, 2020 and will end on November 13, 2020. The ESPP generally provides for six-month offering periods beginning on the first day of trading on or after November 15 and May 15 of each year and terminating on the last trading day on or before May 15 and November 15, approximately six months later, with identical purchase periods. Current employees cannot sell the shares of Class A common stock purchased under the ESPP until the day after the one-year anniversary of the purchase date of such shares, except for the withholding or sale of shares by the Company to meet any applicable tax withholding obligations. No employee may purchase (i) during each purchase period more than 1,500 shares of Class A common stock and (ii) shares under the ESPP at a rate in excess of $25,000 worth of the Company's Class A common stock based on the fair market value per share of the Company's Class A common stock at the beginning of an offering for each calendar year such purchase right is outstanding.
As of June 30, 2020, 421,300 shares of Class A common stock have been purchased under the ESPP. As of June 30, 2020 and December 31, 2019, the total unrecognized stock-based compensation expense related to the ESPP was $1.7 million and $1.0 million, respectively, that is each expected to be recognized over a weighted average period of 0.4 years.
The weighted-average assumptions used to determine the fair value of the ESPP during the periods presented were as follows:
Six months ended June 30,
20202019
Expected term (in years)0.6N/A
Risk-free interest rate1.2 %N/A
Expected volatility45.8 %N/A
Dividend yield—  N/A
Stock-based Compensation Expense
The following table sets forth the total stock-based compensation expense included in the Company’s condensed consolidated statements of operations:

Three Months Ended June 30,Six Months Ended June 30,
2020201920202019
(in thousands)
Cost of revenue$280  $34  $547  $66  
Sales and marketing3,608  275  6,771  554  
Research and development5,374  406  11,464  823  
General and administrative3,187  329  6,564  658  
Total stock-based compensation expense
$12,449  $1,044  $25,346  $2,101  
v3.20.2
Net Loss per Share Attributable to Common Stockholders
6 Months Ended
Jun. 30, 2020
Earnings Per Share [Abstract]  
Net Loss per Share Attributable to Common Stockholders Net Loss per Share Attributable to Common Stockholders
The following table sets forth the computation of basic and diluted net loss per share attributable to common stockholders:
Three Months Ended June 30,Six Months Ended June 30,
2020201920202019
Class AClass BCommonClass AClass BCommon
(in thousands, except per share data)
Net loss attributable to common stockholders
$(14,773) $(11,362) $(19,706) $(26,404) $(32,477) $(36,820) 
Weighted-average shares used in computing net loss per share attributable to common stockholders, basic and diluted
169,194  130,127  85,683  133,359  164,033  85,382  
Net loss per share attributable to common stockholders, basic and diluted
$(0.09) $(0.09) $(0.23) $(0.20) $(0.20) $(0.43) 
Since the Company was in a loss position for all periods presented, basic net loss per share is the same as diluted net loss per share as the inclusion of all potential common shares outstanding would have been antidilutive. The potential shares of common stock that were excluded from the computation of diluted net loss per share attributable to common stockholders for the periods presented because including them would have been antidilutive are as follows:
June 30,
20202019
(in thousands)
Convertible senior notes15,363  —  
Redeemable convertible preferred stock—  165,658  
Redeemable convertible preferred stock warrants—  177  
Shares subject to repurchase4,825  6,685  
Unexercised stock options20,085  23,558  
Unvested restricted stock and RSUs7,990  4,149  
Shares issuable pursuant to the ESPP228  —  
Total
48,491  200,227  
v3.20.2
Income Taxes
6 Months Ended
Jun. 30, 2020
Income Tax Disclosure [Abstract]  
Income Taxes Income Taxes
The computation of the provision for (benefit from) income taxes for interim periods is determined by applying the estimated annual effective tax rate to year-to-date earnings from recurring operations and adjusting for discrete tax items recorded in the period. The Company's ability to estimate the geographic mix of earnings is impacted by the relatively high-growth nature of the business, fluctuations of business operations by country, and implementation of tax planning strategies.
The Company recorded an income tax benefit of $1.9 million and an income tax provision of $0.4 million for the three months ended June 30, 2020 and 2019, respectively, and an income tax benefit of $2.3 million and an income tax provision of $0.7 million for the six months ended June 30, 2020 and 2019, respectively. The income tax benefit in the three and six months ended June 30, 2020 was primarily driven by the partial release of the U.S. valuation allowance in connection with the acquisition of S2 and excess tax benefits from stock-based compensation deductions in the United Kingdom, offset by withholding taxes in the U.S. and income tax expense from profitable foreign jurisdictions.
In determining the need for a valuation allowance, the Company weighs both positive and negative evidence in the various jurisdictions in which it operates to determine whether it is more likely than not that its deferred tax assets are realizable. Accordingly, a full valuation allowance has been established in the U.S. and no deferred tax assets and related tax benefits have been recognized in the condensed consolidated financial statements. There is however, no valuation allowance on the foreign jurisdictions, as the foreign entities have cumulative income and expected future income.
On March 27, 2020, the President of the United States signed into law the Coronavirus Aid, Relief, and Economic Security Act (the CARES Act). The CARES Act provides for a number of tax relief provisions applicable to businesses including relaxed limitations on use of net operating losses and interest deductibility. The Company does not expect there to be a material tax impact as a result of the CARES Act, but will continue to assess the tax implications of the CARES Act and its continuing developments and interpretations.
v3.20.2
Business Combinations
6 Months Ended
Jun. 30, 2020
Business Combinations [Abstract]  
Business Combinations Business Combinations
In January 2020, the Company acquired all of the outstanding shares of S2, a company based in Kirkland, Washington that has developed browser isolation technology, for a total purchase consideration of $17.7 million. The Company expects to incorporate S2's technology into the Company's Cloudflare Gateway product. The total purchase consideration included (i) acquisition-date cash payments of $13.7 million, net of $0.1 million of cash acquired, (ii) $1.8 million in shares of the Company’s Class A common stock, and (iii) a cash holdback of $2.2 million, which the Company is retaining for up to 18 months and will be payable to the previous owners of S2, subject to offset by the Company for any of the previous owners’ indemnification obligations in connection with the acquisition. Concurrent with the closing of the acquisition, the Company made a cash payment of $6.9 million to repay S2’s debt, which was part of the acquisition-date cash payments included in the purchase consideration.
In connection with the acquisition, the Company entered into compensation arrangements for stock-based and cash awards with a value totaling $20.3 million, of which $5.7 million was recognized as compensation expense on the acquisition date and $1.4 million and $2.8 million were recorded as additional compensation expense during the three and six months ended June 30, 2020, respectively. The remaining compensation amount of $11.8 million is being recognized over a future weighted-average period of 2.7 years subject to the recipients’ continued service with the Company.
The transaction-related costs for the acquisition were not material and are included in general and administrative expenses in the condensed consolidated statements of operations for the three and six months ended June 30, 2020.
The fair values of assets acquired and liabilities assumed on the acquisition date are summarized as follows (in thousands):
Prepaid expenses and other current assets$ 
Developed technology5,600  
Goodwill13,084  
Total assets acquired18,690  
Accrued expenses and other current liabilities(208) 
Other noncurrent liabilities(782) 
Total purchase price$17,700  
A note payable of $0.2 million, included in accrued expenses and other current liabilities in the table above, assumed on the acquisition date, was paid off during the six months ended June 30, 2020.
The acquired assets and assumed liabilities were recorded at their estimated fair values. The estimated useful life for the acquired developed technology is two years. The excess of the purchase price over the fair value of the net assets acquired was allocated to goodwill, none of which is expected to be deductible for tax purposes. Goodwill is primarily attributable to the assembled workforce as well as the anticipated synergies from the integration of S2's technology with the Company's technology. A purchase accounting adjustment of $0.8 million to revise purchase consideration and goodwill was made during the six months ended June 30, 2020.
This acquisition did not have a material impact on the Company’s condensed consolidated financial statements; therefore, historical and pro forma disclosures have not been presented.
v3.20.2
Segment and Geographic Information
6 Months Ended
Jun. 30, 2020
Segment Reporting [Abstract]  
Segment and Geographic Information Segment and Geographic Information
The Company’s chief operating decision maker (CODM) is its CEO, COO, and CFO. Collectively, the CODM reviews financial information presented on a consolidated basis for purposes of allocating resources and evaluating financial performance. The Company has no segment managers who are held accountable by the CODM for operations, operating results, and planning for levels or components below the consolidated unit level. Accordingly, the Company has determined it has a single operating segment.
Refer to Note 3 to these condensed consolidated financial statements for revenue by geography.
The Company’s property and equipment, net, by geographic area were as follows:
 June 30, 2020December 31, 2019
 
 (in thousands)
United States$70,930  $59,688  
Rest of the world43,619  41,778  
Total property and equipment, net$114,549  $101,466  
No single country other than the United States accounted for more than 10% of total property and equipment, net as of June 30, 2020 and December 31, 2019.
v3.20.2
Summary of Significant Accounting Policies (Policies)
6 Months Ended
Jun. 30, 2020
Accounting Policies [Abstract]  
Basis of Presentation
Basis of Presentation and Principles of Consolidation
The accompanying interim condensed consolidated financial statements and accompanying notes have been prepared in conformity with generally accepted accounting principles in the United States (U.S. GAAP) and applicable regulations of the Securities and Exchange Commission (the SEC) regarding interim financial reporting, and include the accounts of the Company and its wholly-owned subsidiaries. All intercompany balances and transactions have been eliminated in consolidation. The Company’s fiscal year ends on December 31.
Certain information and note disclosures normally included in the financial statements prepared in accordance with U.S. GAAP have been condensed or omitted pursuant to the applicable required disclosures and regulations of the SEC. Therefore, these unaudited condensed consolidated financial statements should be read in conjunction with the audited consolidated financial statements and the related notes thereto included in the Company's Annual Report on Form 10-K for the fiscal year ended December 31, 2019.
Principles of Consolidation All intercompany balances and transactions have been eliminated in consolidation.
Fiscal Period The Company’s fiscal year ends on December 31.
Use of Estimates
Use of Estimates
The preparation of condensed consolidated financial statements in conformity with U.S. GAAP requires management to make estimates and assumptions that affect the amounts reported and disclosed in the condensed consolidated financial statements and accompanying notes to the condensed consolidated financial statements. Such estimates include, but are not limited to, allowance for doubtful accounts, deferred contract acquisitions costs, the period of benefit generated from the Company’s deferred contract acquisition costs, the capitalization and estimated useful life of internal-use software, the assessment of recoverability of intangible assets and their estimated useful lives, useful lives of property and equipment, liability and equity allocation of convertible senior notes, the determination of the incremental borrowing rate used for operating lease liabilities, the valuation and recognition of stock-based compensation expense, uncertain tax positions, and the recognition and measurement of current and deferred income tax assets and liabilities. Management bases these estimates and assumptions on historical experience and on various other assumptions that management believes to be reasonable. Due to the COVID-19 pandemic, there is ongoing uncertainty and significant disruption in the global economy and financial markets. The Company is not aware of any specific event or circumstance that would require an update to its estimates or assumptions or a revision of the carrying value of its assets or liabilities as of August 10, 2020, the date of issuance of this Quarterly Report on Form 10-Q. These estimates and assumptions may change in the future, however, as new events occur and additional information is obtained. Actual results could differ materially from these estimates.
Operating Leases
Operating Leases
The Company enters into operating lease arrangements for real estate assets related to office space and for co-location assets related to space and equipment located in co-location facilities. The Company determines if an arrangement contains a lease at its inception by assessing whether there is an identified asset and whether the arrangement conveys the right to control the use of the identified asset in exchange for consideration. Operating leases are included in operating lease right-of-use assets, operating lease liabilities, and operating lease liabilities, noncurrent in the Company's condensed consolidated balance sheets. Right-of-use assets represent the Company's right to use an underlying asset for the lease term and lease liabilities represent the Company's obligation to make payments arising from the lease. The Company's operating lease arrangements contain both lease and non-lease components. Operating lease right-of-use assets and lease liabilities are recognized at the lease commencement date based on the present value of lease payments over the lease term. Lease payments consist of the fixed payments under the arrangement, less any lease incentives such as tenant improvement allowances. Variable lease costs, such as lease payments that depend on an index or a rate, are expensed as incurred and not included within the calculation of right-of-use assets and lease liabilities. At inception of an arrangement, the Company allocates the consideration to the lease and non-lease components and recognizes a right-of-use asset and corresponding lease liability for each lease component. As the implicit rate of the Company's leases is not determinable, the Company uses an incremental borrowing rate (IBR) based on the information available at the lease commencement date in determining the present value of lease payments. The lease expense is recognized on a straight-line basis over the lease term.
The Company generally uses the base, non-cancelable lease term when recognizing the right-of-use assets and lease liabilities, unless it is reasonably certain that a renewal or termination option will be exercised. Leases with a term of twelve months or less are not recognized on the consolidated balance sheets. The Company recognizes lease expense for these leases on a straight-line basis over the term of the lease.
Business Combinations
Business Combinations
The Company includes the results of operations of the businesses that the Company acquires from the date of acquisition. The fair value of the assets acquired and liabilities assumed is based on their estimated fair values as of the respective date of acquisition. The excess purchase price over the fair value of the net assets acquired and liabilities assumed is recorded as goodwill. Determining the fair value of assets acquired and liabilities assumed requires significant judgment and estimates including the selection of valuation methodologies, future expected cash flows, discount rates, and useful lives. The Company’s estimates of fair value are based on assumptions believed to be reasonable, but which are inherently uncertain and, as a result, actual results may differ from estimates. During the measurement period, not to exceed one year from the date of acquisition, the Company may record adjustments to the assets acquired and liabilities assumed with a corresponding offset to goodwill. At the conclusion of the measurement period, or final determination of the values of assets acquired or liabilities assumed, whichever comes first, any subsequent adjustments are reflected in the condensed consolidated statements of operations.
When the Company issues payments or grants of equity to selling stockholders in connection with an acquisition, the Company evaluates whether the payments or awards are compensatory. This evaluation includes whether cash payments or stock award vesting is contingent on the continued employment of the selling stockholder beyond the acquisition date. If continued employment is required for the cash to be paid or stock awards to vest, the award is treated as compensation for post-acquisition services and is recognized as compensation expense.
Transaction costs associated with business combinations are expensed as incurred and are included in general and administrative expense in the Company’s condensed consolidated statements of operations.
Convertible Senior Notes
Convertible Senior Notes
The Company accounts for its 0.75% Convertible Senior Notes due May 2025 (the Notes) as separate liability and equity components. The carrying amount of the liability component is calculated by measuring the fair value of a similar debt instrument that does not have an associated convertible feature. The carrying amount of the equity component, representing the conversion option, is calculated by deducting the fair value of the liability component from the total principal of the convertible notes. The excess of the principal amount of the liability component over its book value (debt discount) is amortized to interest expense over the term of the Notes. In accounting for the issuance costs related to the Notes, the allocation of issuance costs incurred between the liability and equity components was based on their relative values.
Recent Accounting Pronouncements
Recent Accounting Pronouncements
Recently Adopted Accounting Pronouncements
In February 2016, the Financial Accounting Standards Board (FASB) issued Accounting Standards Update (ASU) No. 2016-02, Leases (Topic 842), and since that date, has issued several ASUs to further clarify certain aspects of ASU 2016-02 and provide entities with practical expedients that may be elected upon adoption. The Company adopted the new standard beginning January 1, 2020 using the modified retrospective approach, electing the optional transition approach of not adjusting the comparative period financial statements for the impact of adoption. The Company elected the package of practical expedients permitted under the transition guidance, which allows the Company to carryforward its historical lease classification, its assessment on whether a contract is or contains a lease, and its initial direct costs for any leases that existed prior to adoption of the new standard. In addition, the Company elected not to recognize lease liabilities and related right-of-use assets for leases that, at the lease commencement date, have a lease term of 12 months or less. Adoption of the new standard on January 1, 2020 resulted in the recognition of $50.0 million of operating lease right-of-use assets and $52.8 million of total operating lease liabilities on the Company's condensed consolidated balance sheets. As part of the adoption, the Company also derecognized deferred rent of $2.8 million, primarily consisting of the noncurrent portion, net build-to-suit assets of $9.9 million, the build-to-suit lease financing obligation of $10.5 million, and recorded a cumulative-effect adjustment of $0.6 million to accumulated deficit as of January 1, 2020. Refer to Note 6 to these condensed consolidated financial statements.
In June 2016, the FASB issued ASU 2016-13, Financial Instruments-Credit Losses (Topic 326), Measurement of Credit Losses on Financial Instruments. This ASU changes the methodology for measuring credit losses and requires the establishment of an allowance for estimated credit losses on financial assets, including trade and other
receivables, at each reporting date. The Company adopted ASU 2016-13 effective January 1, 2020, noting no material impact on the Company’s condensed consolidated financial statements.
In August 2018, the FASB issued ASU No. 2018-15, Intangibles—Goodwill and Other—Internal-Use Software (ASC 350-40): Customer’s Accounting for Implementation Costs Incurred in a Cloud Computing Arrangement. This guidance provides that implementation costs be evaluated for capitalization using the same criteria as that used for internal-use software development costs, with amortization expense being recorded in the same income statement expense line as the hosted service costs and over the expected term of the hosting arrangement. For public business entities, it is effective for fiscal years beginning after December 15, 2019, and interim periods within those fiscal years. For all other entities, it is effective for fiscal years beginning after December 15, 2020, and interim periods beginning after December 15, 2021. Early adoption of the amendments in this update is permitted, including adoption in any interim period, for all entities. The Company adopted ASU 2018-15 effective January 1, 2020, noting no material impact on the Company’s condensed consolidated financial statements.
In November 2019, the FASB issued ASU 2019-10, Financial Instruments—Credit Losses (Topic 326), Derivatives and Hedging (Topic 815), and Leases (Topic 842). This ASU revises, and staggers, the effective dates for various major updates that have been issued since 2014 to alleviate the burden on both larger public companies as well as private companies, smaller public companies, not-for-profit organizations, and employee benefit plans. The Company adopted ASU 2019-10 effective January 1, 2020, noting no material impact on the Company’s condensed consolidated financial statements.
In December 2019, the FASB issued ASU 2019-12, Simplifying the Accounting for Income Taxes (ASC Topic 740). This ASU simplifies accounting for income taxes by removing certain exceptions to the general principles and amending existing guidance to improve consistent application. The amendments in this update are effective for fiscal years, and interim periods within those fiscal years, beginning after December 15, 2020, with early adoption permitted. The Company adopted ASU 2019-12 effective January 1, 2020, noting no material impact on the Company’s condensed consolidated financial statements.
Recently Issued Accounting Pronouncements
There have been no recent accounting pronouncements since the filing of the Company's Annual Report on Form 10-K for the year ended December 31, 2019, that may have a material impact on the Company's condensed consolidated financial statements.
Revenue
In accordance with ASC 606, revenue is recognized when a customer obtains control of promised services. The amount of revenue recognized reflects the consideration that the Company expects to be entitled to receive in exchange for these services. To achieve this standard, the Company applies the following five steps:
1. Identify the contract with a customer
The Company considers the terms and conditions of the contracts and its customary business practices in identifying its contracts under ASC 606. The Company determines it has a contract with a customer when the contract is approved, the Company can identify each party’s rights regarding the services to be transferred, the Company can identify the payment terms, the Company has determined that collectibility is probable, and the contract has commercial substance. The Company applies judgment in determining that collectibility is probable, which is based on a variety of factors, including the customer’s historical payment experience or, in the case of a new customer, credit and financial information relevant to the customer.
2. Identify the performance obligations in the contract
Performance obligations promised in a contract are identified based on the services that will be transferred to the customer that are both capable of being distinct, whereby the customer can benefit from the service either on its own or together with other resources that are readily available to the Company, and are distinct in the context of the contract, whereby the transfer of the services is separately identifiable from other promises in the contract. The Company’s performance obligation primarily consists of subscription and support services, as they are provided over the same service period.
3. Determine the transaction price
The transaction price is determined based on the consideration to which the Company expects to be entitled in exchange for transferring services to the customer. Usage-based variable consideration is recognized in the period it is incurred. None of the Company’s contracts contain a significant financing component.
4. Allocate the transaction price to performance obligations in the contract
The subscription and support services in the Company’s contracts are considered a single performance obligation, and thus the entire transaction price is allocated to the single performance obligation.
5. Recognize revenue when or as the Company satisfies a performance obligation
Revenue is recognized at the time the related performance obligation is satisfied by transferring the service to a customer. Revenue is recognized when control of the services is transferred to the Company’s customers, in an amount that reflects the consideration that the Company expects to be entitled to receive in exchange for those services.
The Company generates sales directly through its sales team and through its channel partners. Revenue from sales to channel partners are recorded once all revenue recognition criteria above are met. Channel partners generally receive an order from an end-customer prior to placing an order with the Company. Payment from channel partners is not contingent on the partner’s collection from end-customers. The Company has determined that it is acting as an agent in these arrangements and records this revenue on a net basis.
Subscription and Support Revenue
The Company generates revenue primarily from sales to its customers of subscriptions to access its platform, together with related support services. Arrangements with customers generally do not provide the customer with the right to take possession of the Company’s software operating its global cloud platform at any time. Instead, customers are granted continuous access to the Company’s global cloud platform over the contractual period. Access to the Company’s platform and products is considered a monthly series comprising one performance obligation. A time-elapsed output method is used to measure progress because the Company transfers control evenly over the contractual period. Accordingly, the fixed consideration related to subscription and support revenue is generally recognized on a straight-line basis over the contract term beginning on the date that the Company’s service is made available to the customer. Usage-based consideration is primarily related to fees charged for the Company’s customer’s use of excess bandwidth when accessing the Company’s platform in a given period and is recognized as revenue in the period in which the usage occurs.
The typical subscription and support term for the Company’s contracted customers, which consist of customers that enter into contracts for the Company's Enterprise subscription plan (and which the Company previously referred to as enterprise customers), is one year and subscription and support term lengths range from one to three years. Most of the Company’s contracts with contracted customers are non-cancelable over the contractual term. Customers typically have the right to terminate their contracts for cause if the Company fails to perform in accordance with the contractual terms. For the Company’s pay-as-you-go customers, which consist of customers that sign up for the Company's Pro or Business subscription plans through the Company's website (and which the Company previously referred to as self-serve customers), subscription and support terms are typically monthly.
Variable Consideration
If the Company’s services do not meet certain service level commitments, its customers are entitled to receive service credits, and in certain cases, refunds, each representing a form of variable consideration. Revenue from sales is recorded at the net sales price, which is the transaction price, and includes estimates of these forms of variable consideration to the extent that a significant reversal of cumulative revenue will not occur in a future period. The Company has historically not experienced any incidents that had a material impact on its consolidated financial statements. Accordingly, any estimated refunds related to these agreements in the condensed consolidated financial statements are not material during the periods presented. Usage-based consideration is primarily related to fees charged for the Company’s customer’s use of excess bandwidth when accessing the Company’s platform in a given period and is recognized as revenue in the period in which the usage occurs.
v3.20.2
Revenue (Tables)
6 Months Ended
Jun. 30, 2020
Revenue from Contract with Customer [Abstract]  
Schedule of Disaggregation of Revenue
The following table summarizes the revenue by region based on the billing address of customers who have contracted to use the Company’s global cloud platform:
Three Months Ended June 30,Six Months Ended June 30,
2020201920202019
(in thousands)
AmountPercentage
of Revenue
AmountPercentage
of Revenue
AmountPercentage
of Revenue
AmountPercentage
of Revenue
United States$48,478  49 %$33,227  49 %$92,693  49 %$63,966  50 %
Europe, Middle East, and Africa
25,912  26 %15,997  24 %49,018  26 %30,623  24 %
Asia Pacific18,589  19 %13,610  20 %36,193  19 %25,789  20 %
Other6,742  %4,590  %13,067  %8,773  %
Total$99,721  100 %$67,424  100 %$190,971  100 %$129,151  100 %
The following table summarizes the revenue from contracts by type of customer:
Three Months Ended June 30,Six Months Ended June 30,
2020201920202019
(in thousands)
AmountPercentage
of Revenue
AmountPercentage
of Revenue
AmountPercentage
of Revenue
AmountPercentage
of Revenue
Channel partners
$10,153  10 %$5,663  %$19,312  10 %$11,859  %
Direct customers
89,568  90 %61,761  92 %171,659  90 %117,292  91 %
Total$99,721  100 %$67,424  100 %$190,971  100 %$129,151  100 %
Summary of Deferred Contract Acquisition Costs
The following table summarizes the activity of the deferred contract acquisition costs:
Three Months Ended June 30,Six Months Ended June 30,
2020201920202019
(in thousands)
Beginning balance$28,171  $17,846  $25,184  $15,940  
Capitalization of contract acquisition costs
9,672  4,221  16,158  8,446  
Amortization of deferred contract acquisition costs
(3,963) (2,585) (7,462) (4,904) 
Ending balance$33,880  $19,482  $33,880  $19,482  
v3.20.2
Fair Value Measurements (Tables)
6 Months Ended
Jun. 30, 2020
Fair Value Disclosures [Abstract]  
Schedule of Fair Value by Significant Investment Category The following table summarizes the Company’s cash and available-for-sale securities’ amortized cost, unrealized gains (losses), and fair value by significant investment category reported as cash and cash equivalents, restricted cash, or available-for-sale securities as of June 30, 2020 and December 31, 2019.
(in thousands)    Reported as:
June 30, 2020Amortized
Cost
Unrealized
Gain
Unrealized
(Loss)
Fair ValueCash &
Cash
Equivalents
Available-for-sale securitiesLong-
term
Restricted
Cash
Cash$17,036  $—  $—  $17,036  $14,849  $—  $2,187  
Level I:
Money market funds
251,805  —  —  251,805  245,145  —  6,660  
Level II:
Corporate bonds
137,047  404  (13) 137,438  —  137,438  —  
U.S. treasury securities
495,473  905  (16) 496,362  —  496,362  —  
U.S. government agency securities
50,866  26  (6) 50,886  —  50,886  —  
Commercial paper
124,410   —  124,411  53,989  70,422  —  
Subtotal
807,796  1,336  (35) 809,097  53,989  755,108  —  
Total assets measured at fair value on a recurring basis
$1,076,637  $1,336  $(35) $1,077,938  $313,983  $755,108  $8,847  

(in thousands)Reported as:
December 31, 2019Amortized
Cost
Unrealized
Gain
Unrealized
(Loss)
Fair
Value
Cash &
Cash
Equivalents
Available-for-sale securitiesLong-term
Restricted
Cash
Cash$24,631  $—  $—  $24,631  $24,631  $—  $—  
Level I:
Money market funds
32,856  —  —  32,856  26,196  —  6,660  
Level II:
Corporate bonds
84,054  22  (30) 84,046  —  84,046  —  
U.S. treasury securities
311,083  151  (23) 311,211  —  311,211  —  
U.S. government agency securities
95,380  17  —  95,397  22,549  72,848  —  
Commercial paper
95,467  —  —  95,467  65,600  29,867  —  
Subtotal
585,984  190  (53) 586,121  88,149  497,972  —  
Total assets measured at fair value on a recurring basis
$643,471  $190  $(53) $643,608  $138,976  $497,972  $6,660  
v3.20.2
Balance Sheet Components (Tables)
6 Months Ended
Jun. 30, 2020
Organization, Consolidation and Presentation of Financial Statements [Abstract]  
Schedule of Prepaid Expenses and Other Current Assets
Prepaid expenses and other current assets consisted of the following:
 June 30, 2020December 31, 2019
 (in thousands)
Prepaid expenses$10,163  $10,913  
Deposits3,342  2,773  
Other3,658  3,308  
Total prepaid expenses and other current assets$17,163  $16,994  
Schedule of Property and Equipment, Net
Property and equipment, net consisted of the following:
June 30, 2020December 31, 2019
(in thousands)
Property and equipment:
Servers—network infrastructure$102,183  $84,979  
Buildings—  13,035  
Construction in progress15,706  8,692  
Capitalized internal-use software42,666  31,171  
Office and computer equipment17,886  13,528  
Office furniture6,478  6,124  
Software1,331  1,025  
Leasehold improvements11,628  9,870  
Asset retirement obligation429  231  
Gross property and equipment198,307  168,655  
Less accumulated depreciation and amortization(83,758) (67,189) 
Total property and equipment, net$114,549  $101,466  
Schedule of Acquired Intangible Assets, Net
Acquired intangible assets, net consisted of the following:
June 30, 2020
Gross Carrying
Amount
Accumulated
Amortization
Net Book
Value
(in thousands)
Developed technology$5,600  $1,400  $4,200  
Total acquired intangible assets, net$5,600  $1,400  $4,200  
December 31, 2019
Gross Carrying
Amount
Accumulated
Amortization
Net Book
Value
(in thousands)
Developed technology$250  $219  $31  
Total acquired intangible assets, net$250  $219  $31  
Schedule of Estimated Future Amortization Expense of Acquired Intangible Assets
As of June 30, 2020, the estimated future amortization expense of acquired intangible assets was as follows:
Estimated
Amortization
(in thousands)
Year ending December 31,
2020 (remaining six months)$1,400  
20212,800  
Total$4,200  
Schedule of Accrued Expenses
Accrued expenses and other current liabilities consisted of the following:
June 30, 2020December 31, 2019
(in thousands)
Accrued compensation and benefits$20,242  $14,970  
Accrued expenses3,904  5,331  
Customer refunds and credits1,670  3,328  
Accrued co-location and bandwidth2,831  2,696  
Other3,429  1,989  
Total accrued expenses and other current liabilities$32,076  $28,314  
Schedule of Other Current Liabilities
Accrued expenses and other current liabilities consisted of the following:
June 30, 2020December 31, 2019
(in thousands)
Accrued compensation and benefits$20,242  $14,970  
Accrued expenses3,904  5,331  
Customer refunds and credits1,670  3,328  
Accrued co-location and bandwidth2,831  2,696  
Other3,429  1,989  
Total accrued expenses and other current liabilities$32,076  $28,314  
Schedule of Other Noncurrent Liabilities
Other noncurrent liabilities consisted of the following:
June 30, 2020December 31, 2019
(in thousands)
Accrued taxes$5,325  $4,862  
Deferred rent—  2,342  
Other3,948  2,599  
Total other noncurrent liabilities$9,273  $9,803  
v3.20.2
Leases (Tables)
6 Months Ended
Jun. 30, 2020
Leases [Abstract]  
Components of Lease Costs
The components of lease cost related to the Company's operating leases included in the condensed consolidated statements of operations were as follows:
Three Months Ended
June 30,
Six Months Ended
June 30,
2020
(in thousands)
Operating lease cost$4,789  $9,332  
Sublease income(710) (1,417) 
Total lease cost$4,079  $7,915  
Schedule of Lease Liability Maturities
Maturities of the operating lease liabilities as of June 30, 2020 are as follows:
June 30, 2020
(in thousands)
2020 (remaining six months)$8,985  
202117,742  
202213,131  
20236,944  
20243,662  
Thereafter 
Total lease payments$50,466  
Less: Imputed interest$(2,358) 
Total operating lease liabilities$48,108  
Schedule of Future Minimum Lease Payments under Prior Guidance Prior to the Company's adoption of ASC 842, future minimum operating lease payments as of December 31, 2019 were as follows:
December 31, 2019
(in thousands)
2020$18,618  
202116,942  
202212,423  
20236,410  
20244,474  
Thereafter10,304  
Total lease payments$69,171  
v3.20.2
Debt (Tables)
6 Months Ended
Jun. 30, 2020
Debt Disclosure [Abstract]  
Schedule of Convertible Debt
The net carrying amount of the liability component of the Notes was as follows:

June 30, 2020
(in thousands)
Principal$575,000  
Unamortized debt discount(201,193) 
Unamortized debt issuance costs(7,858) 
Carrying amount of the liability component, net$365,949  

The net carrying amount of the equity component of the Notes was as follows:
June 30, 2020
(in thousands)
Proceeds allocated to the conversion option (debt discount)$205,290  
Less: allocated issuance costs(4,478) 
Carrying amount of the equity component, net$200,812  
Schedule of Interest Expense
The following table sets forth total interest expense recognized related to the Notes:
Three Months Ended June 30,Six Months Ended June 30,
2020201920202019
(in thousands)
Coupon interest expense$551  $—  $551  $—  
Amortization of debt discount$4,097  $—  $4,097  $—  
Amortization of debt issuance costs$206  $—  $206  $—  
Total$4,854  $—  $4,854  $—  
v3.20.2
Commitment and Contingencies (Tables)
6 Months Ended
Jun. 30, 2020
Commitments and Contingencies Disclosure [Abstract]  
Schedule of Purchase Commitments Refer to the table below for purchase commitments under non-cancelable contracts with various vendors as of June 30, 2020.
Payments Due by Period as of June 30, 2020
Total2020 (remaining six months)2021202220232024Thereafter
(in thousands)
Non-cancelable:
Open purchase agreements(1)
$16,242  $2,695  $3,798  $2,689  $1,291  $741  $5,028  
Bandwidth and other co-location related commitments(2)
31,689  8,673  11,718  5,229  3,383  1,385  1,301  
Other commitments(3)
2,188  —  2,188  —  —  —  —  
Total$50,119  $11,368  $17,704  $7,918  $4,674  $2,126  $6,329  
(1)Open purchase commitments are for the purchase of services under non-cancelable contracts. They were not recorded as liabilities on the condensed consolidated balance sheet as of June 30, 2020 as the Company had not yet received the related services.
(2)Long-term commitments for bandwidth usage and other co-location related commitments with various networks and Internet service providers. The costs for services not yet received were not recorded as liabilities on the condensed consolidated balance sheet as of June 30, 2020.
(3)Indemnity holdback consideration associated with the S2 acquisition. See Note 14.
v3.20.2
Common Stock (Tables)
6 Months Ended
Jun. 30, 2020
Equity [Abstract]  
Schedule of Common Stock Reserved for Future Issuance
Shares of common stock reserved for future issuance, on an as-if converted basis, are as follows:
June 30, 2020December 31, 2019
(in thousands)
Convertible senior notes19,972  —  
Stock options issued and outstanding20,085  21,191  
Remaining shares available for issuance under the 2019 Plan26,289  29,048  
Outstanding and unsettled restricted stock units (RSUs)7,158  7,175  
Shares available for issuance under the ESPP5,449  5,870  
Total shares of common stock reserved78,953  63,284  
v3.20.2
Stock-based Compensation (Tables)
6 Months Ended
Jun. 30, 2020
Share-based Payment Arrangement [Abstract]  
Schedule of Stock-based Awards
The following table summarizes the stock options activity under the 2010 Plan and 2019 Plan for the six months ended June 30, 2020:
Stock Options Outstanding
(in thousands, except year and per share data)
Shares Subject to Options OutstandingWeighted- Average Exercise Price per OptionWeighted- Average Remaining Contractual Terms (in years)Aggregate Intrinsic Value
Balances as of December 31, 201921,191  $2.30  7.4$312,720  
Options granted 1,700  $17.93  
Options exercised (2,618) $1.69  $54,791  
Options canceled/forfeited/expired (188) $2.56  
Balances as of June 30, 202020,085  $3.70  7.4$647,698  
Vested and expected to vest as of June 30, 202020,085  $3.70  7.4$647,698  
Exercisable as of June 30, 202018,386  $2.39  7.2$617,064  
Schedule of Assumptions Used to Determine the Fair Value of Stock Options Granted
The weighted-average assumptions used to determine the fair value of stock options granted during the periods presented were as follows:
Six months ended June 30,
20202019
Expected term (in years)6.06.2
Expected volatility40.3 %40.3 %
Risk-free interest rate0.7 %2.3 %
Dividend yield—  —  
Schedule of Restricted Stock Units Activity
Restricted stock and RSU activity for the six months ended June 30, 2020 was as follows:

Restricted Stock and RSUsWeighted-Average
Grant
Date Fair Value
(in thousands, except per share data)
Unvested and outstanding as of December 31, 20196,508  $11.08  
Granted - RSUs1,987  $20.61  
Granted - Restricted stock841  $17.06  
Vested - RSUs(1,068) $10.17  
Forfeited (278) $11.35  
Unvested as of June 30, 20207,990  $13.04  
Vested and not yet released $9.07  
Outstanding as of June 30, 20207,999  $13.04  
Schedule of Fair Value Assumptions for Employee Stock Purchase Plan
The weighted-average assumptions used to determine the fair value of the ESPP during the periods presented were as follows:
Six months ended June 30,
20202019
Expected term (in years)0.6N/A
Risk-free interest rate1.2 %N/A
Expected volatility45.8 %N/A
Dividend yield—  N/A
Schedule of Stock-based Compensation Expense
The following table sets forth the total stock-based compensation expense included in the Company’s condensed consolidated statements of operations:

Three Months Ended June 30,Six Months Ended June 30,
2020201920202019
(in thousands)
Cost of revenue$280  $34  $547  $66  
Sales and marketing3,608  275  6,771  554  
Research and development5,374  406  11,464  823  
General and administrative3,187  329  6,564  658  
Total stock-based compensation expense
$12,449  $1,044  $25,346  $2,101  
v3.20.2
Net Loss per Share Attributable to Common Stockholders (Tables)
6 Months Ended
Jun. 30, 2020
Earnings Per Share [Abstract]  
Schedule of Computation of Basic and Diluted Net Loss per Share Attributable to Common Stockholders
The following table sets forth the computation of basic and diluted net loss per share attributable to common stockholders:
Three Months Ended June 30,Six Months Ended June 30,
2020201920202019
Class AClass BCommonClass AClass BCommon
(in thousands, except per share data)
Net loss attributable to common stockholders
$(14,773) $(11,362) $(19,706) $(26,404) $(32,477) $(36,820) 
Weighted-average shares used in computing net loss per share attributable to common stockholders, basic and diluted
169,194  130,127  85,683  133,359  164,033  85,382  
Net loss per share attributable to common stockholders, basic and diluted
$(0.09) $(0.09) $(0.23) $(0.20) $(0.20) $(0.43) 
Schedule of Potential Shares of Common Stock Excluded from Computation of Basic and Diluted Net Loss per Share Attributable to Common Stockholders The potential shares of common stock that were excluded from the computation of diluted net loss per share attributable to common stockholders for the periods presented because including them would have been antidilutive are as follows:
June 30,
20202019
(in thousands)
Convertible senior notes15,363  —  
Redeemable convertible preferred stock—  165,658  
Redeemable convertible preferred stock warrants—  177  
Shares subject to repurchase4,825  6,685  
Unexercised stock options20,085  23,558  
Unvested restricted stock and RSUs7,990  4,149  
Shares issuable pursuant to the ESPP228  —  
Total
48,491  200,227  
v3.20.2
Business Combinations (Tables)
6 Months Ended
Jun. 30, 2020
Business Combinations [Abstract]  
Schedule of Assets Acquired and Liabilities Assumed The fair values of assets acquired and liabilities assumed on the acquisition date are summarized as follows (in thousands):
Prepaid expenses and other current assets$ 
Developed technology5,600  
Goodwill13,084  
Total assets acquired18,690  
Accrued expenses and other current liabilities(208) 
Other noncurrent liabilities(782) 
Total purchase price$17,700  
v3.20.2
Segment and Geographic Information (Tables)
6 Months Ended
Jun. 30, 2020
Segment Reporting [Abstract]  
Schedule of Property and Equipment, Net by Geographic Area
The Company’s property and equipment, net, by geographic area were as follows:
 June 30, 2020December 31, 2019
 
 (in thousands)
United States$70,930  $59,688  
Rest of the world43,619  41,778  
Total property and equipment, net$114,549  $101,466  
v3.20.2
Organization and Basis of Presentation (Details)
$ / shares in Units, $ in Millions
1 Months Ended
Sep. 30, 2019
USD ($)
$ / shares
shares
Class A common stock  
Class of Stock [Line Items]  
Conversion of redeemable convertible preferred stock to common stock upon initial public offering (in shares) 31,381,152
Series D, Redeemable Convertible Preferred Stock  
Class of Stock [Line Items]  
Conversion of redeemable convertible preferred stock to common stock upon initial public offering (in shares) (31,381,152)
Series A, Series B, And Series C, Redeemable Convertible Preferred Stock  
Class of Stock [Line Items]  
Conversion of redeemable convertible preferred stock to common stock upon initial public offering (in shares) (134,276,690)
Class B common stock  
Class of Stock [Line Items]  
Conversion of redeemable convertible preferred stock to common stock upon initial public offering (in shares) 134,276,690
Initial Public Offering | Class A common stock  
Class of Stock [Line Items]  
Shares issued in initial public offering (in shares) 40,250,000
Aggregate proceeds received from initial public offering, net of underwriters' discounts and commissions | $ $ 565.0
Underwriters' Option | Class A common stock  
Class of Stock [Line Items]  
Shares issued in initial public offering (in shares) 5,250,000
Price per share in initial public offering (in dollars per share) | $ / shares $ 15.00
Former Employees | Class A common stock | Conversion of Class B Common Stock To Class A Common Stock  
Class of Stock [Line Items]  
Conversion of redeemable convertible preferred stock to common stock upon initial public offering (in shares) 15,198,587
Former Employees | Class B common stock | Conversion of Class B Common Stock To Class A Common Stock  
Class of Stock [Line Items]  
Conversion of redeemable convertible preferred stock to common stock upon initial public offering (in shares) 15,198,587
v3.20.2
Summary of Significant Accounting Policies (Details) - USD ($)
$ in Thousands
6 Months Ended
Jan. 01, 2020
Jun. 30, 2020
Jun. 30, 2019
May 31, 2020
Dec. 31, 2019
New Accounting Pronouncements or Change in Accounting Principle [Line Items]          
Operating lease right-of-use assets $ 50,000 $ 46,150     $ 0
Operating lease liability 52,800 48,108      
Derecognition of deferred rent 2,800        
Derecognition of build-to-suit lease 9,900 $ 9,886 $ 0    
Derecognition of lease financing obligation 10,500        
Cumulative effect adjustment from adoption of ASC 842 556        
Convertible Senior Notes          
New Accounting Pronouncements or Change in Accounting Principle [Line Items]          
Interest rate   0.75%   0.75%  
Accumulated deficit          
New Accounting Pronouncements or Change in Accounting Principle [Line Items]          
Cumulative effect adjustment from adoption of ASC 842 $ 556        
v3.20.2
Revenue - Additional Information (Details) - USD ($)
$ in Millions
6 Months Ended
Jun. 30, 2020
Jun. 30, 2019
Disaggregation of Revenue [Line Items]    
Subscription and support term length 1 year  
Revenue recognized $ 26.8 $ 13.1
Amortization period 3 years  
Minimum    
Disaggregation of Revenue [Line Items]    
Subscription and support term length 1 year  
Maximum    
Disaggregation of Revenue [Line Items]    
Subscription and support term length 3 years  
v3.20.2
Revenue - Disaggregation of Revenue (Details) - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2020
Jun. 30, 2019
Jun. 30, 2020
Jun. 30, 2019
Disaggregation of Revenue [Line Items]        
Revenue $ 99,721 $ 67,424 $ 190,971 $ 129,151
Geographic Concentration Risk | Revenue        
Disaggregation of Revenue [Line Items]        
Percentage of Revenue 100.00% 100.00% 100.00% 100.00%
Sales Channel Concentration Risk | Revenue        
Disaggregation of Revenue [Line Items]        
Percentage of Revenue 100.00% 100.00% 100.00% 100.00%
Channel partners        
Disaggregation of Revenue [Line Items]        
Revenue $ 10,153 $ 5,663 $ 19,312 $ 11,859
Channel partners | Sales Channel Concentration Risk | Revenue        
Disaggregation of Revenue [Line Items]        
Percentage of Revenue 10.00% 8.00% 10.00% 9.00%
Direct customers        
Disaggregation of Revenue [Line Items]        
Revenue $ 89,568 $ 61,761 $ 171,659 $ 117,292
Direct customers | Sales Channel Concentration Risk | Revenue        
Disaggregation of Revenue [Line Items]        
Percentage of Revenue 90.00% 92.00% 90.00% 91.00%
United States        
Disaggregation of Revenue [Line Items]        
Revenue $ 48,478 $ 33,227 $ 92,693 $ 63,966
United States | Geographic Concentration Risk | Revenue        
Disaggregation of Revenue [Line Items]        
Percentage of Revenue 49.00% 49.00% 49.00% 50.00%
Europe, Middle East, and Africa        
Disaggregation of Revenue [Line Items]        
Revenue $ 25,912 $ 15,997 $ 49,018 $ 30,623
Europe, Middle East, and Africa | Geographic Concentration Risk | Revenue        
Disaggregation of Revenue [Line Items]        
Percentage of Revenue 26.00% 24.00% 26.00% 24.00%
Asia Pacific        
Disaggregation of Revenue [Line Items]        
Revenue $ 18,589 $ 13,610 $ 36,193 $ 25,789
Asia Pacific | Geographic Concentration Risk | Revenue        
Disaggregation of Revenue [Line Items]        
Percentage of Revenue 19.00% 20.00% 19.00% 20.00%
Other        
Disaggregation of Revenue [Line Items]        
Revenue $ 6,742 $ 4,590 $ 13,067 $ 8,773
Other | Geographic Concentration Risk | Revenue        
Disaggregation of Revenue [Line Items]        
Percentage of Revenue 6.00% 7.00% 6.00% 6.00%
v3.20.2
Revenue - Deferred Contract Acquisition Costs (Details) - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2020
Jun. 30, 2019
Jun. 30, 2020
Jun. 30, 2019
Capitalized Contract Cost [Roll Forward]        
Beginning balance $ 28,171 $ 17,846 $ 25,184 $ 15,940
Capitalization of contract acquisition costs 9,672 4,221 16,158 8,446
Amortization of deferred contract acquisition costs (3,963) (2,585) (7,462) (4,904)
Ending balance $ 33,880 $ 19,482 $ 33,880 $ 19,482
v3.20.2
Revenue - Remaining Performance Obligations (Details)
$ in Millions
Jun. 30, 2020
USD ($)
Revenue from Contract with Customer [Abstract]  
Remaining performance obligation, amount $ 274.0
Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction, Start Date [Axis]: 2020-07-01  
Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction [Line Items]  
Remaining performance obligation, percent 82.00%
Remaining performance obligation, expected timing of satisfaction 12 months
Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction, Start Date [Axis]: 2021-07-01  
Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction [Line Items]  
Remaining performance obligation, percent 18.00%
Remaining performance obligation, expected timing of satisfaction 3 years
v3.20.2
Fair Value Measurements - Schedule of Cash and Available-for-sale Debt Securities' Amortized Cost, Unrealized Gains (Losses) and Fair Value by Significant Investment Category (Details) - USD ($)
Jun. 30, 2020
Dec. 31, 2019
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Amortized Cost $ 313,983,000 $ 138,976,000
Amortized Cost 1,076,637,000 643,471,000
Unrealized Gain 1,336,000 190,000
Unrealized (Loss) (35,000) (53,000)
Fair Value 1,077,938,000 643,608,000
Cash    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Amortized Cost 17,036,000 24,631,000
Unrealized Gain 0 0
Unrealized (Loss) 0 0
Fair Value 17,036,000 24,631,000
Money market funds    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Unrealized Gain 0 0
Unrealized (Loss) 0 0
Level I | Money market funds    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Amortized Cost 251,805,000 32,856,000
Unrealized Gain 0 0
Unrealized (Loss) 0 0
Fair Value 251,805,000 32,856,000
Level II    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Amortized Cost 807,796,000 585,984,000
Unrealized Gain 1,336,000 190,000
Unrealized (Loss) (35,000) (53,000)
Fair Value 809,097,000 586,121,000
Level II | Corporate bonds    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Amortized Cost 137,047,000 84,054,000
Unrealized Gain 404,000 22,000
Unrealized (Loss) (13,000) (30,000)
Fair Value 137,438,000 84,046,000
Level II | U.S. treasury securities    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Amortized Cost 495,473,000 311,083,000
Unrealized Gain 905,000 151,000
Unrealized (Loss) (16,000) (23,000)
Fair Value 496,362,000 311,211,000
Level II | U.S. government agency securities    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Amortized Cost 50,866,000 95,380,000
Unrealized Gain 26,000 17,000
Unrealized (Loss) (6,000) 0
Fair Value 50,886,000 95,397,000
Level II | Commercial paper    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Amortized Cost 124,410,000 95,467,000
Unrealized Gain 1,000 0
Unrealized (Loss) 0 0
Fair Value 124,411,000 95,467,000
Cash & Cash Equivalents | Fair Value, Recurring    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Fair Value 313,983,000 138,976,000
Cash & Cash Equivalents | Fair Value, Recurring | Cash    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Fair Value 14,849,000 24,631,000
Cash & Cash Equivalents | Fair Value, Recurring | Level I | Money market funds    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Fair Value 245,145,000 26,196,000
Cash & Cash Equivalents | Fair Value, Recurring | Level II    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Fair Value 53,989,000 88,149,000
Cash & Cash Equivalents | Fair Value, Recurring | Level II | Corporate bonds    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Fair Value 0 0
Cash & Cash Equivalents | Fair Value, Recurring | Level II | U.S. treasury securities    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Fair Value 0 0
Cash & Cash Equivalents | Fair Value, Recurring | Level II | U.S. government agency securities    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Fair Value 0 22,549,000
Cash & Cash Equivalents | Fair Value, Recurring | Level II | Commercial paper    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Fair Value 53,989,000 65,600,000
Available-for-sale securities | Fair Value, Recurring    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Fair Value 755,108,000 497,972,000
Available-for-sale securities | Fair Value, Recurring | Cash    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Fair Value 0 0
Available-for-sale securities | Fair Value, Recurring | Level I | Money market funds    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Fair Value 0 0
Available-for-sale securities | Fair Value, Recurring | Level II    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Fair Value 755,108,000 497,972,000
Available-for-sale securities | Fair Value, Recurring | Level II | Corporate bonds    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Fair Value 137,438,000 84,046,000
Available-for-sale securities | Fair Value, Recurring | Level II | U.S. treasury securities    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Fair Value 496,362,000 311,211,000
Available-for-sale securities | Fair Value, Recurring | Level II | U.S. government agency securities    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Fair Value 50,886,000 72,848,000
Available-for-sale securities | Fair Value, Recurring | Level II | Commercial paper    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Fair Value 70,422,000 29,867,000
Long-term Restricted Cash | Fair Value, Recurring    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Fair Value 8,847,000 6,660,000
Long-term Restricted Cash | Fair Value, Recurring | Cash    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Fair Value 2,187,000 0
Long-term Restricted Cash | Fair Value, Recurring | Level I | Money market funds    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Fair Value 6,660,000 6,660,000
Long-term Restricted Cash | Fair Value, Recurring | Level II    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Fair Value 0 0
Long-term Restricted Cash | Fair Value, Recurring | Level II | Corporate bonds    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Fair Value 0 0
Long-term Restricted Cash | Fair Value, Recurring | Level II | U.S. treasury securities    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Fair Value 0 0
Long-term Restricted Cash | Fair Value, Recurring | Level II | U.S. government agency securities    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Fair Value 0 0
Long-term Restricted Cash | Fair Value, Recurring | Level II | Commercial paper    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Fair Value $ 0 $ 0
v3.20.2
Fair Value Measurements - Narrative (Details) - USD ($)
Jun. 30, 2020
Dec. 31, 2019
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Amortized cost of available-for-sale investments with maturities less than one year $ 677,200,000 $ 450,200,000
Amortized cost of available-for-sale investments with maturities greater than one year 76,600,000 47,700,000
Net unrealized gains on investments, net of tax 1,200,000 100,000
Convertible Senior Notes    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Debt instrument, fair value 677,300,000  
Money market funds    
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]    
Unrealized gain 0 0
Unrealized loss $ 0 $ 0
v3.20.2
Balance Sheet Components - Accounts Receivable, Net (Details) - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2020
Jun. 30, 2019
Jun. 30, 2020
Jun. 30, 2019
Dec. 31, 2019
Organization, Consolidation and Presentation of Financial Statements [Abstract]          
Allowance for doubtful accounts $ 1,600   $ 1,600   $ 500
Bad debt expense 300 $ 200 2,493 $ 451  
Write-off of uncollectible accounts receivable $ (900) $ (100) $ (1,400) $ (100)  
v3.20.2
Balance Sheet Components - Prepaid Expenses and Other Current Assets (Details) - USD ($)
$ in Thousands
Jun. 30, 2020
Dec. 31, 2019
Organization, Consolidation and Presentation of Financial Statements [Abstract]    
Prepaid expenses $ 10,163 $ 10,913
Deposits 3,342 2,773
Other 3,658 3,308
Total prepaid expenses and other current assets $ 17,163 $ 16,994
v3.20.2
Balance Sheet Components - Property and Equipment, Net (Details) - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jan. 01, 2020
Jun. 30, 2020
Jun. 30, 2019
Jun. 30, 2020
Jun. 30, 2019
Dec. 31, 2019
Property, Plant and Equipment [Line Items]            
Gross property and equipment   $ 198,307   $ 198,307   $ 168,655
Less accumulated depreciation and amortization   (83,758)   (83,758)   (67,189)
Total property and equipment, net   114,549   114,549   101,466
Depreciation and amortization expense   10,800 $ 7,000 20,700 $ 13,100  
Servers—network infrastructure            
Property, Plant and Equipment [Line Items]            
Gross property and equipment   102,183   102,183   84,979
Buildings            
Property, Plant and Equipment [Line Items]            
Gross property and equipment   0   0   13,035
Buildings | ASC 842            
Property, Plant and Equipment [Line Items]            
Change in property and equipment for adoption of new ASU $ (13,000)          
Construction in progress            
Property, Plant and Equipment [Line Items]            
Gross property and equipment   15,706   15,706   8,692
Capitalized internal-use software            
Property, Plant and Equipment [Line Items]            
Gross property and equipment   42,666   42,666   31,171
Depreciation and amortization expense       5,300 $ 2,800  
Office and computer equipment            
Property, Plant and Equipment [Line Items]            
Gross property and equipment   17,886   17,886   13,528
Office furniture            
Property, Plant and Equipment [Line Items]            
Gross property and equipment   6,478   6,478   6,124
Software            
Property, Plant and Equipment [Line Items]            
Gross property and equipment   1,331   1,331   1,025
Depreciation and amortization expense   2,800 $ 1,500      
Leasehold improvements            
Property, Plant and Equipment [Line Items]            
Gross property and equipment   11,628   11,628   9,870
Leasehold improvements | ASC 842            
Property, Plant and Equipment [Line Items]            
Change in property and equipment for adoption of new ASU $ 1,600          
Asset retirement obligation            
Property, Plant and Equipment [Line Items]            
Gross property and equipment   $ 429   $ 429   $ 231
v3.20.2
Balance Sheet Components - Goodwill (Details) - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2020
Jan. 31, 2020
Dec. 31, 2019
Indefinite-lived Intangible Assets [Line Items]      
Goodwill $ 17,167   $ 4,083
S2 Systems Corporation      
Indefinite-lived Intangible Assets [Line Items]      
Goodwill   $ 13,084  
Goodwill acquired during period $ 13,100    
v3.20.2
Balance Sheet Components - Acquired Intangible Assets, Net (Details) - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2020
Jun. 30, 2019
Jun. 30, 2020
Jun. 30, 2019
Dec. 31, 2019
Finite-Lived Intangible Assets [Line Items]          
Gross Carrying Amount $ 5,600   $ 5,600   $ 250
Accumulated Amortization 1,400   1,400   219
Net Book Value 4,200   4,200   31
Acquired in-process research and development in process     5,600    
Amortization of acquired intangible assets 700 $ 0 1,400 $ 100  
Developed technology          
Finite-Lived Intangible Assets [Line Items]          
Gross Carrying Amount 5,600   5,600   250
Accumulated Amortization 1,400   1,400   219
Net Book Value $ 4,200   $ 4,200   $ 31
v3.20.2
Balance Sheet Components - Estimated Future Amortization Expense of Acquired Intangible Assets, Net (Details) - USD ($)
$ in Thousands
Jun. 30, 2020
Dec. 31, 2019
Organization, Consolidation and Presentation of Financial Statements [Abstract]    
2020 (remaining six months) $ 1,400  
2021 2,800  
Net Book Value $ 4,200 $ 31
v3.20.2
Balance Sheet Components - Accrued Expenses and Other Current Liabilities (Details) - USD ($)
$ in Thousands
Jun. 30, 2020
Dec. 31, 2019
Organization, Consolidation and Presentation of Financial Statements [Abstract]    
Accrued compensation and benefits $ 20,242 $ 14,970
Accrued expenses 3,904 5,331
Customer refunds and credits 1,670 3,328
Accrued co-location and bandwidth 2,831 2,696
Other 3,429 1,989
Total accrued expenses and other current liabilities $ 32,076 $ 28,314
v3.20.2
Balance Sheet Components - Other Noncurrent Liabilities (Details) - USD ($)
$ in Thousands
Jun. 30, 2020
Dec. 31, 2019
Organization, Consolidation and Presentation of Financial Statements [Abstract]    
Accrued taxes $ 5,325 $ 4,862
Deferred rent 0 2,342
Other 3,948 2,599
Total other noncurrent liabilities $ 9,273 $ 9,803
v3.20.2
Leases - Narrative (Details) - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2020
Jun. 30, 2019
Jun. 30, 2020
Jun. 30, 2019
Lessee, Lease, Description [Line Items]        
Sublease, remaining lease term     10 months 24 days  
Sublease income $ 710 $ 300 $ 1,417 $ 300
Lease not yet commenced, undiscounted amount $ 20,200   $ 20,200  
Weighted average remaining lease term 3 years 1 month 6 days   3 years 1 month 6 days  
Operating lease, weighted average discount rate, percent 3.30%   3.30%  
Rent expense   $ 2,700   $ 5,300
Maximum        
Lessee, Lease, Description [Line Items]        
Operating lease, remaining lease term     4 years 6 months  
Lease not yet commenced, term of contract 3 years 3 months 18 days   3 years 3 months 18 days  
Co-location Asset Lease | Maximum        
Lessee, Lease, Description [Line Items]        
Operating lease, remaining lease term     4 years 7 months 6 days  
v3.20.2
Leases - Schedule of Lease Costs (Details) - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2020
Jun. 30, 2019
Jun. 30, 2020
Jun. 30, 2019
Leases [Abstract]        
Operating lease cost $ 4,789   $ 9,332 $ 0
Sublease income (710) $ (300) (1,417) $ (300)
Total lease cost $ 4,079   $ 7,915  
v3.20.2
Leases - Lease Liability Maturities (Details) - USD ($)
$ in Thousands
Jun. 30, 2020
Jan. 01, 2020
Leases [Abstract]    
2020 (remaining six months) $ 8,985  
2021 17,742  
2022 13,131  
2023 6,944  
2024 3,662  
Thereafter 2  
Total lease payments 50,466  
Less: Imputed interest (2,358)  
Total operating lease liabilities $ 48,108 $ 52,800
v3.20.2
Leases - Future Minimum Payments Due Under Prior Guidance (Details)
$ in Thousands
Dec. 31, 2019
USD ($)
Leases [Abstract]  
2020 $ 18,618
2021 16,942
2022 12,423
2023 6,410
2024 4,474
Thereafter 10,304
Total lease payments $ 69,171
v3.20.2
Debt - Narrative (Details)
$ / shares in Units, shares in Millions
1 Months Ended 3 Months Ended 6 Months Ended
May 31, 2020
USD ($)
$ / shares
Jun. 30, 2020
USD ($)
$ / shares
shares
Jun. 30, 2020
USD ($)
day
$ / shares
shares
Jun. 30, 2019
USD ($)
Debt Instrument [Line Items]        
Gross proceeds from issuance of convertible senior notes $ 562,500,000   $ 575,000,000 $ 0
Convertible debt, conversion ratio     0.0267187  
Conversion price (in dollars per share) | $ / shares   $ 37.43 $ 37.43  
Convertible debt, equity component $ 205,300,000 $ 200,812,000 $ 200,812,000  
Issuance cost, equity component   $ 4,478,000 4,478,000  
Issuance cost, equity component     $ 0 $ 969,000
Remaining life     59 months  
Shares covered by capped calls (in shares) | shares   15.4 15.4  
Purchases of capped calls related to convertible senior notes   $ 67,333,000 $ 67,333,000  
Class A common stock        
Debt Instrument [Line Items]        
Capped call, initial strike price (in dollars per share) | $ / shares $ 37.43      
Capped call, initial cap price (in dollars per share) | $ / shares $ 57.58      
Convertible Senior Notes        
Debt Instrument [Line Items]        
Debt principal amount $ 575,000,000.0      
Face amount, additional principal issuable $ 75,000,000.0      
Interest rate 0.75% 0.75% 0.75%  
Issuance cost, liability component $ 8,000,000.0      
Issuance cost, equity component $ 4,500,000      
Measurement Input, Effective Interest Rate | Convertible Senior Notes        
Debt Instrument [Line Items]        
Measurement input   0.100 0.100  
Scenario One, Prior to February 14, 2025        
Debt Instrument [Line Items]        
Conversion requirement, threshold trading days | day     20  
Conversion requirement, threshold consecutive trading days | day     30  
Conversion requirement, threshold percentage of stock price trigger     130.00%  
Scenario Two, Prior to February 14, 2025        
Debt Instrument [Line Items]        
Conversion requirement, threshold consecutive trading days | day     5  
Conversion requirement, threshold percentage of stock price trigger     98.00%  
Conversion requirement, threshold business days following consecutive trading days | day     5  
Scenario Three, Subsequent to May 20, 2023        
Debt Instrument [Line Items]        
Conversion requirement, threshold trading days | day     20  
Conversion requirement, threshold consecutive trading days | day     30  
Scenario Three, Subsequent to May 20, 2023 | Convertible Senior Notes        
Debt Instrument [Line Items]        
Conversion requirement, threshold percentage of stock price trigger     130.00%  
Redemption price, percentage     100.00%  
Scenario Four, Fundamental Change | Convertible Senior Notes        
Debt Instrument [Line Items]        
Redemption price, percentage     100.00%  
v3.20.2
Debt - Liability Component (Details) - Convertible Senior Notes
$ in Thousands
Jun. 30, 2020
USD ($)
Debt Instrument [Line Items]  
Principal $ 575,000
Unamortized debt discount (201,193)
Unamortized debt issuance costs (7,858)
Carrying amount of the liability component, net $ 365,949
v3.20.2
Debt - Equity Component (Details) - USD ($)
$ in Thousands
Jun. 30, 2020
May 31, 2020
Debt Disclosure [Abstract]    
Proceeds allocated to the conversion option (debt discount) $ 205,290  
Less: allocated issuance costs (4,478)  
Carrying amount of the equity component, net $ 200,812 $ 205,300
v3.20.2
Debt - Schedule of Interest Components (Details) - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2020
Jun. 30, 2019
Jun. 30, 2020
Jun. 30, 2019
Debt Disclosure [Abstract]        
Coupon interest expense $ 551 $ 0 $ 551 $ 0
Amortization of debt discount 4,097 0 4,097 0
Amortization of debt issuance costs 206 0 206 0
Total $ 4,854 $ 0 $ 4,854 $ 0
v3.20.2
Commitment and Contingencies - Narrative (Details) - USD ($)
$ in Millions
3 Months Ended 6 Months Ended
Jun. 30, 2020
Jun. 30, 2019
Jun. 30, 2020
Jun. 30, 2019
Commitments and Contingencies Disclosure [Abstract]        
Cost and expenses related to bandwidth and other co-location commitments $ 12.5 $ 8.8 $ 23.1 $ 17.1
v3.20.2
Commitment and Contingencies - Schedule of Purchase Commitments (Details)
$ in Thousands
Jun. 30, 2020
USD ($)
Open Purchase Agreements  
Total payments due, open purchase agreements $ 16,242
2020 (remaining six months) 2,695
2021 3,798
2022 2,689
2023 1,291
2024 741
Thereafter 5,028
Bandwidth and Co-Location Commitments  
Total payments due, bandwidth and co-location commitments 31,689
2020 (remaining six months) 8,673
2021 11,718
2022 5,229
2023 3,383
2024 1,385
Thereafter 1,301
Other Commitments  
Total payments due, other commitments 2,188
2020 (remaining six months) 0
2021 2,188
2022 0
2023 0
2024 0
Thereafter 0
Total Purchase Commitments  
Total payments due, purchase commitments 50,119
2020 (remaining six months) 11,368
2021 17,704
2022 7,918
2023 4,674
2024 2,126
Thereafter $ 6,329
v3.20.2
Preferred Stock (Details) - USD ($)
$ / shares in Units, $ in Thousands
1 Months Ended 3 Months Ended 6 Months Ended 12 Months Ended
Jan. 31, 2012
Oct. 31, 2011
Jun. 30, 2019
Jun. 30, 2020
Jun. 30, 2019
Dec. 31, 2019
Sep. 30, 2019
Apr. 30, 2011
Class of Stock [Line Items]                
Preferred stock, shares authorized (in shares)             225,000,000  
Preferred stock, par value (in dollars per share)             $ 0.001  
Change in fair value of redeemable convertible preferred stock warrant liability     $ 200 $ 0 $ 327      
Warrant To Purchase Series B Redeemable Preferred Stock                
Class of Stock [Line Items]                
Number of shares subject to purchase from warrant (in shares) 23,760 94,510           59,140
Proceeds from drawdown $ 400 $ 1,600            
Exercise price of warrants (in dollars per share)               $ 0.34
Class B common stock                
Class of Stock [Line Items]                
Number of shares issued from exercise of warrants (in shares)           174,347    
v3.20.2
Common Stock - Narrative (Details)
Jun. 30, 2020
vote
$ / shares
shares
Dec. 31, 2019
$ / shares
shares
Class A common stock    
Class of Stock [Line Items]    
Common stock, number of votes per share | vote 1  
Common stock, shares authorized (in shares) 2,250,000,000 2,250,000,000
Common stock, par value (in dollars per share) | $ / shares $ 0.001 $ 0.001
Common stock, shares issued (in shares) 184,900,249 87,071,783
Common stock, shares outstanding (in shares) 184,900,249 87,071,783
Class B common stock    
Class of Stock [Line Items]    
Common stock, number of votes per share | vote 10  
Common stock, shares authorized (in shares) 315,000,000 315,000,000
Common stock, par value (in dollars per share) | $ / shares $ 0.001 $ 0.001
Common stock, shares issued (in shares) 120,523,936 213,101,364
Common stock, shares outstanding (in shares) 120,523,936 213,101,364
v3.20.2
Common Stock - Schedule of Common Stock Reserved for Future Issuance (Details) - shares
shares in Thousands
Jun. 30, 2020
Dec. 31, 2019
Class of Stock [Line Items]    
Shares of common stock reserved (in shares) 78,953 63,284
2019 Plan    
Class of Stock [Line Items]    
Shares of common stock reserved (in shares) 26,289 29,048
Options    
Class of Stock [Line Items]    
Shares of common stock reserved (in shares) 20,085 21,191
Outstanding and unsettled restricted stock units (RSUs)    
Class of Stock [Line Items]    
Shares of common stock reserved (in shares) 7,158 7,175
Shares available for issuance under the ESPP    
Class of Stock [Line Items]    
Shares of common stock reserved (in shares) 5,449 5,870
Convertible Senior Notes    
Class of Stock [Line Items]    
Shares of common stock reserved (in shares) 19,972 0
v3.20.2
Stock-based Compensation - Narrative (Details) - USD ($)
3 Months Ended 6 Months Ended 12 Months Ended
Sep. 13, 2019
Jun. 30, 2020
Jun. 30, 2019
Jun. 30, 2020
Jun. 30, 2019
Dec. 31, 2019
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]            
Total grant date fair value for vested options       $ 3,700,000 $ 2,200,000  
Issuance of common stock in connection with acquisition (in shares)       948,000    
Stock-based compensation expense   $ 12,449,000 $ 1,044,000 $ 25,346,000 $ 2,101,000  
Shares of common stock reserved (in shares)   78,953,000   78,953,000   63,284,000
Class A common stock | 2019 Equity Incentive Plan            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]            
Number of shares authorized for issuance (in shares)   66,661,953   66,661,953    
Number of new shares authorized for issuance (in shares)   29,335,000   29,335,000    
Number of additional shares authorized for issuance (in shares)   37,326,953   37,326,953    
Number of shares available for issuance (in shares)   26,289,059   26,289,059    
Class A and Class B Common Stock | 2019 Equity Incentive Plan            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]            
Potential increase in number of shares authorized, as a percentage of total common stock outstanding       5.00%    
Options            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]            
Weighted-average grant date fair value for options granted (in dollars per share)       $ 9.32 $ 4.10  
Unvested options exercisable (in shares)   13,089,561   13,089,561   15,477,903
Options unrecognized stock-based compensation expense   $ 26,300,000   $ 26,300,000   $ 15,800,000
Weighted-average remaining vesting period       3 years   2 years 8 months 12 days
Liability for early exercise of stock options   $ 10,700,000   $ 10,700,000   $ 13,300,000
Number of unvested shares expected to be repurchased (in shares)       4,825,368   5,945,083
Shares of common stock reserved (in shares)   20,085,000   20,085,000   21,191,000
Options | 2010 Equity Incentive Plan            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]            
Vesting period       4 years    
Expiration period       10 years    
Options | Common Stock | 2010 Equity Incentive Plan            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]            
Exercise price of common stock, percentage of fair market value       100.00%    
Options | Class A common stock | 2019 Equity Incentive Plan            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]            
Cumulative shares granted (in shares)   1,700,000   1,700,000    
Restricted Stock Units (RSUs)            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]            
Granted (in shares)       1,987,000    
Vesting period       4 years    
Weighted-average remaining vesting period       3 years   2 years 6 months
Stock-based compensation expense   $ 8,700,000 0 $ 17,500,000 $ 0  
Unrecognized stock-based compensation expense   $ 73,400,000   73,400,000   $ 53,100,000
Total grant date fair value for vested shares       $ 10,900,000 0  
Shares of common stock reserved (in shares)   7,158,000   7,158,000   7,175,000
Restricted Stock Units (RSUs) | Class A common stock | 2019 Equity Incentive Plan            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]            
Cumulative shares granted (in shares)   3,099,658   3,099,658    
Restricted Stock            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]            
Granted (in shares)       841,000    
Issuance of unvested restricted stock in connection with acquisition (in shares)       841,000    
Restricted stock issued in connection with acquisition, aggregate grant date fair value       $ 1,800,000 0  
Stock-based compensation expense       2,800,000 0  
Unrecognized stock-based compensation expense   $ 11,600,000 $ 0 $ 11,600,000 $ 0  
Restricted Stock | Tranche One            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]            
Vesting period       2 years    
Vesting percentage       77.80%    
Restricted Stock | Tranche Two            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]            
Vesting period       3 years    
Shares available for issuance under the ESPP            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]            
Shares of common stock reserved (in shares)   5,449,000   5,449,000   5,870,000
Shares available for issuance under the ESPP | 2019 Employee Stock Purchase Plan            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]            
Weighted-average remaining vesting period       4 months 24 days   4 months 24 days
Unrecognized stock-based compensation expense   $ 1,700,000   $ 1,700,000   $ 1,000,000.0
Maximum ownership percentage threshold for participation 5.00%          
Maximum contribution percentage per employee 10.00%          
Shares available for issuance under the ESPP | Class A common stock | 2019 Employee Stock Purchase Plan            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]            
Number of additional shares allowable under the plan (in shares) 5,870,000          
Purchase price of common stock, percentage of fair value 85.00%          
Offering period 6 months          
Purchase period 6 months          
Maximum number of shares available for repurchase for each employee (in shares) 1,500          
Maximum value of shares available for repurchase for each employee $ 25,000          
Number of shares repurchased (in shares)       421,300    
Shares available for issuance under the ESPP | Class A and Class B Common Stock | 2019 Employee Stock Purchase Plan            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]            
Potential increase in number of share authorized, as a percentage of total common stock outstanding 1.00%          
v3.20.2
Stock-based Compensation - Schedule of Stock-based Awards (Details)
$ / shares in Units, shares in Thousands, $ in Thousands
6 Months Ended 12 Months Ended
Jun. 30, 2020
USD ($)
$ / shares
shares
Dec. 31, 2019
USD ($)
$ / shares
shares
Shares Subject to Options Outstanding    
Stock options outstanding, beginning balance (in shares) | shares 21,191  
Stock options granted (in shares) | shares 1,700  
Stock options exercised (in shares) | shares (2,618)  
Stock options cancelled, forfeited, expired (in shares) | shares (188)  
Stock options outstanding, ending balance (in shares) | shares 20,085 21,191
Stock options vested and expected to vest (in shares) | shares 20,085  
Stock options exercisable (in shares) | shares 18,386  
Weighted- Average Exercise Price per Option    
Stock options outstanding, weighted-average exercise price, beginning balance (in dollars per share) | $ / shares $ 2.30  
Stock options granted, weighted-average exercise price (in dollars per share) | $ / shares 17.93  
Stock options exercised, weighted-average exercise price (in dollars per share) | $ / shares 1.69  
Stock options cancelled, forfeited, expired, weighted-averaged exercise price (in dollars per share) | $ / shares 2.56  
Stock options outstanding, weighted-average exercise price, ending balance (in dollars per share) | $ / shares 3.70 $ 2.30
Stock options vested and expected to vest, weighted-average exercise price (in dollars per share) | $ / shares 3.70  
Stock options exercisable, weighted-average exercise price (in dollars per share) | $ / shares $ 2.39  
Share-based Compensation Arrangement by Share-based Payment Award, Options, Additional Disclosures [Abstract]    
Stock options outstanding, weighted-average remaining contractual term 7 years 4 months 24 days 7 years 4 months 24 days
Stock options vested and expected to vest, weighted-average remaining contractual term 7 years 4 months 24 days  
Stock options exercisable, weighted-average remaining contractual term 7 years 2 months 12 days  
Share-Based Payment Award, Options, Aggregate Intrinsic Value [Abstract]    
Stock options outstanding, aggregate intrinsic value | $ $ 647,698 $ 312,720
Stock options exercised, aggregate intrinsic value | $ 54,791  
Stock options vested and expected to vest, aggregate intrinsic value | $ 647,698  
Stock options exercisable, aggregate intrinsic value | $ $ 617,064  
v3.20.2
Stock-based Compensation - Schedule of Assumptions Used to Determine the Fair Value of Stock Options Granted (Details) - Options
6 Months Ended
Jun. 30, 2020
Jun. 30, 2019
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]    
Expected term (in years) 6 years 6 years 2 months 12 days
Expected volatility 40.30% 40.30%
Risk-free interest rate 0.70% 2.30%
Dividend yield 0.00% 0.00%
v3.20.2
Stock-based Compensation - Schedule of Restricted Stock Units Activity (Details)
shares in Thousands
6 Months Ended
Jun. 30, 2020
$ / shares
shares
Restricted Stock and Restricted Stock Units  
Restricted Stock and RSUs  
Unvested and outstanding, beginning balance (in shares) | shares 6,508
Forfeited (in shares) | shares (278)
Unvested, ending balance (in shares) | shares 7,990
Vested and not yet released (in shares) | shares 9
Outstanding at end of period (in shares) | shares 7,999
Weighted-Average Grant Date Fair Value  
Unvested, weighted average grant date fair value, beginning balance (in dollars per share) | $ / shares $ 11.08
Forfeited (in dollars per share) | $ / shares 11.35
Unvested, weighted average grant date fair value, ending balance (in dollars per share) | $ / shares 13.04
Vested and not yet released, weighted-average grant date fair value (in dollars per share) | $ / shares 9.07
Outstanding at end of period, weighted-average grant date fair value (in dollars per share) | $ / shares $ 13.04
Restricted Stock Units (RSUs)  
Restricted Stock and RSUs  
Granted (in shares) | shares 1,987
Vested (in shares) | shares (1,068)
Weighted-Average Grant Date Fair Value  
Granted (in dollars per share) | $ / shares $ 20.61
Vested (in dollars per share) | $ / shares $ 10.17
Restricted Stock  
Restricted Stock and RSUs  
Granted (in shares) | shares 841
Weighted-Average Grant Date Fair Value  
Granted (in dollars per share) | $ / shares $ 17.06
v3.20.2
Stock-based Compensation - Schedule of Fair Value Assumptions for Employee Stock Purchase Plan (Details) - Shares available for issuance under the ESPP
6 Months Ended
Jun. 30, 2020
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]  
Expected term (in years) 7 months 6 days
Risk-free interest rate 1.20%
Expected volatility 45.80%
Dividend yield 0.00%
v3.20.2
Stock-based Compensation - Schedule of Stock-based Compensation Expense (Details) - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2020
Jun. 30, 2019
Jun. 30, 2020
Jun. 30, 2019
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]        
Total stock-based compensation expense $ 12,449 $ 1,044 $ 25,346 $ 2,101
Cost of revenue        
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]        
Total stock-based compensation expense 280 34 547 66
Sales and marketing        
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]        
Total stock-based compensation expense 3,608 275 6,771 554
Research and development        
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]        
Total stock-based compensation expense 5,374 406 11,464 823
General and administrative        
Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]        
Total stock-based compensation expense $ 3,187 $ 329 $ 6,564 $ 658
v3.20.2
Net Loss per Share Attributable to Common Stockholders - Schedule of Computation of Basic and Diluted Earnings per Share Attributable to Common Stockholders (Details) - USD ($)
$ / shares in Units, shares in Thousands, $ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2020
Jun. 30, 2019
Jun. 30, 2020
Jun. 30, 2019
Earnings Per Share, Basic, by Common Class, Including Two Class Method [Line Items]        
Net loss attributable to common stockholders $ (26,135) $ (19,706) $ (58,881) $ (36,820)
Weighted-average shares used in computing net loss per share attributable to common stockholders, basic and diluted (in shares) 299,321 85,683 297,392 85,382
Net loss per share attributable to common stockholders, basic and diluted (in dollars per share) $ (0.09) $ (0.23) $ (0.20) $ (0.43)
Common Stock        
Earnings Per Share, Basic, by Common Class, Including Two Class Method [Line Items]        
Net loss attributable to common stockholders   $ (19,706)   $ (36,820)
Weighted-average shares used in computing net loss per share attributable to common stockholders, basic and diluted (in shares)   85,683   85,382
Net loss per share attributable to common stockholders, basic and diluted (in dollars per share)   $ (0.23)   $ (0.43)
Class A common stock | Common Stock        
Earnings Per Share, Basic, by Common Class, Including Two Class Method [Line Items]        
Net loss attributable to common stockholders $ (14,773)   $ (26,404)  
Weighted-average shares used in computing net loss per share attributable to common stockholders, basic and diluted (in shares) 169,194   133,359  
Net loss per share attributable to common stockholders, basic and diluted (in dollars per share) $ (0.09)   $ (0.20)  
Class B common stock | Common Stock        
Earnings Per Share, Basic, by Common Class, Including Two Class Method [Line Items]        
Net loss attributable to common stockholders $ (11,362)   $ (32,477)  
Weighted-average shares used in computing net loss per share attributable to common stockholders, basic and diluted (in shares) 130,127   164,033  
Net loss per share attributable to common stockholders, basic and diluted (in dollars per share) $ (0.09)   $ (0.20)  
v3.20.2
Net Loss per Share Attributable to Common Stockholders - Schedule of Potential Shares of Common Stock Excluded from Computation of Basic and Diluted Net Loss per Share Attributable to Common Stockholders (Details) - shares
shares in Thousands
6 Months Ended
Jun. 30, 2020
Jun. 30, 2019
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Potential shares of common stock excluded from computation of diluted net loss per share attributable to common stockholders (in shares) 48,491 200,227
Convertible senior notes    
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Potential shares of common stock excluded from computation of diluted net loss per share attributable to common stockholders (in shares) 15,363 0
Redeemable convertible preferred stock    
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Potential shares of common stock excluded from computation of diluted net loss per share attributable to common stockholders (in shares) 0 165,658
Redeemable convertible preferred stock warrants    
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Potential shares of common stock excluded from computation of diluted net loss per share attributable to common stockholders (in shares) 0 177
Shares subject to repurchase    
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Potential shares of common stock excluded from computation of diluted net loss per share attributable to common stockholders (in shares) 4,825 6,685
Unexercised stock options    
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Potential shares of common stock excluded from computation of diluted net loss per share attributable to common stockholders (in shares) 20,085 23,558
Unvested restricted stock and RSUs    
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Potential shares of common stock excluded from computation of diluted net loss per share attributable to common stockholders (in shares) 7,990 4,149
Shares issuable pursuant to the ESPP    
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Potential shares of common stock excluded from computation of diluted net loss per share attributable to common stockholders (in shares) 228 0
v3.20.2
Income Taxes (Details) - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2020
Jun. 30, 2019
Jun. 30, 2020
Jun. 30, 2019
Income Tax Disclosure [Abstract]        
Provision for (benefit from) income taxes $ (1,938) $ 389 $ (2,276) $ 703
v3.20.2
Business Combinations - Narrative (Details) - USD ($)
$ in Millions
1 Months Ended 3 Months Ended 6 Months Ended
Jan. 31, 2020
Jun. 30, 2020
Jun. 30, 2020
Business Acquisition [Line Items]      
Repayments of notes payable     $ 0.2
Purchase accounting adjustment     0.8
S2 Systems Corporation      
Business Acquisition [Line Items]      
Consideration transferred $ 17.7    
Cash payments to acquire businesses 13.7    
Cash acquired 0.1    
Value of shares issued 1.8    
Consideration held back $ 2.2    
Consideration holdback period 18 months    
Payments to settle acquiree's outstanding debt $ 6.9    
Compensation arrangements value 20.3    
Compensation arrangement with individual, compensation expense $ 5.7 $ 1.4 2.8
Compensation arrangement with individual, recorded liability   $ 11.8 $ 11.8
Compensation arrangement, weighted-average remaining recognition period     2 years 8 months 12 days
Estimated useful life of acquired developed technology 2 years    
v3.20.2
Business Combinations - Schedule of Assets Acquired and Liabilities Assumed (Details) - USD ($)
$ in Thousands
Jun. 30, 2020
Jan. 31, 2020
Dec. 31, 2019
Business Acquisition [Line Items]      
Goodwill $ 17,167   $ 4,083
S2 Systems Corporation      
Business Acquisition [Line Items]      
Prepaid expenses and other current assets   $ 6  
Developed technology   5,600  
Goodwill   13,084  
Total assets acquired   18,690  
Accrued expenses and other current liabilities   (208)  
Other noncurrent liabilities   (782)  
Total purchase price   $ 17,700  
v3.20.2
Segment and Geographic Information - Narrative (Details)
6 Months Ended
Jun. 30, 2020
segment
Segment Reporting [Abstract]  
Number of operating segments 1
v3.20.2
Segment and Geographic Information - Schedule of Property and Equipment, Net by Geographic Area (Details) - USD ($)
$ in Thousands
Jun. 30, 2020
Dec. 31, 2019
Segment Reporting Information [Line Items]    
Property and equipment, net $ 114,549 $ 101,466
United States    
Segment Reporting Information [Line Items]    
Property and equipment, net 70,930 59,688
Rest of the world    
Segment Reporting Information [Line Items]    
Property and equipment, net $ 43,619 $ 41,778