Summary of Significant Accounting Policies | 2. Summary of Significant Accounting Policies Basis of Presentation —The consolidated financial statements have been prepared in U.S. dollars, in accordance with accounting principles generally accepted in the United States of America (“GAAP”). The accompanying consolidated financial statements include the accounts of the Company and its wholly owned subsidiaries. All intercompany transactions have been eliminated in consolidation. Use of Estimates —The preparation of consolidated financial statements in conformity with GAAP requires management to make estimates and assumptions that affect the reported amounts of assets and liabilities, disclosure of contingent assets and liabilities at the date of the financial statements, and the reported amounts of revenue and expenses during the reporting period. Actual results could differ from those estimates. Operating Segments —The Company operates as one operating segment. Operating segments are defined as components of an enterprise for which separate financial information is regularly evaluated by the chief operating decision makers (“CODMs”), which are the Company’s chief executive officer and chief operating officer, in deciding how to allocate resources and assess performance. The Company’s CODMs evaluate the Company’s financial information and resources and assess the performance of these resources on a consolidated basis. Since the Company operates in one operating segment, all required financial segment information can be found in the consolidated financial statements. Loss Per Share — Basic net loss per share is computed by dividing net loss by the weighted average number of common shares outstanding for the period. Diluted net loss per share is computed by giving effect to all potential dilutive common stock equivalents outstanding for the period. For purposes of this calculation, options to purchase common stock, restricted stock units (“RSUs”), Employee Stock Purchase Plan (“ESPP”), and the Conversion Option of the 2022 Notes (Note 7) are considered to be potential common stock equivalents. A reconciliation of the denominator used in the calculation of basic and diluted loss per share is as follows: Year Ended December 31, 2017 2016 2015 (in thousands, except per share amounts) Net loss $ (39,714 ) $ (45,562 ) $ (46,053 ) Weighted-average common shares outstanding—basic 36,827 35,197 33,222 Dilutive effect of share equivalents resulting from stock options, RSUs, ESPP and the Conversion Option of the 2022 Notes — — — Weighted-average common shares outstanding-diluted 36,827 35,197 33,222 Net loss per common share, basic and diluted $ (1.08 ) $ (1.29 ) $ (1.39 ) Additionally, since the Company incurred net losses for each of the periods presented, diluted net loss per share is the same as basic net loss per share. The Company’s outstanding stock options, RSUs, ESPP, and Conversion Option of the 2022 Notes were not included in the calculation of diluted net loss per share as the effect would be anti-dilutive. The following table contains all potentially dilutive common stock equivalents. Year Ended December 31, 2017 2016 2015 (in thousands) Options to purchase common shares 2,085 2,709 3,331 RSUs 2,315 2,264 1,703 ESPP 10 11 — The Company expects to settle the principal amount of the 2022 Notes in cash, and therefore, the Company uses the treasury stock method for calculating any potential dilutive effect of the Conversion Option on diluted net income per share, if applicable. The Conversion Option will have a dilutive impact on net income per share of common stock when the average market price of the Company’s common stock for a given period exceeds the conversion price of the 2022 Notes of $94.77 per share. During the year ended December 31, 2017, the Company's weighted average common stock price was below the conversion price of the 2022 Notes. Cash and Cash Equivalents —The Company considers all highly liquid investments purchased with original maturity of three months or less to be cash equivalents. Cash and cash equivalents consist of cash held in bank deposit accounts and short-term, highly-liquid investments with remaining maturities of three months or less at the date of purchase, consisting of money-market funds. Investments — Investments consist of corporate debt securities, U.S. government agency obligations, and U.S. Treasury securities. Securities having remaining maturities of more than three months at the date of purchase and less than one year from the date of the balance sheets are classified as short-term, and those with maturities of more than one year from the date of the balance sheet are classified as long-term in the consolidated balance sheets. The Company classifies its debt investments with readily determinable market values as available-for-sale. These investments are classified as investments on the consolidated balance sheets and are carried at fair market value, with unrealized gains and losses considered to be temporary in nature reported as accumulated other comprehensive loss, a separate component of stockholders’ equity. The Company reviews all investments for reductions in fair value that are other-than-temporary. When such reductions occur, the cost of the investment is adjusted to fair value through recording a loss on investments in the consolidated statements of operations. Gains and losses on investments are calculated on the basis of specific identification. Investments are considered to be impaired when a decline in fair value below cost basis is determined to be other-than-temporary. The Company periodically evaluates whether a decline in fair value below cost basis is other-than-temporary by considering available evidence regarding these investments including, among other factors: the duration of the period that, and extent to which, the fair value is less than cost basis; the financial health of, and business outlook for the issuer, including industry and sector performance and operational and financing cash flow factors; overall market conditions and trends and the Company’s intent and ability to retain its investment in the security for a period of time sufficient to allow for an anticipated recovery in market value. Once a decline in fair value is determined to be other-than-temporary, a write-down is recorded and a new cost basis in the security is established. Strategic investments — Strategic investments consist of non-controlling equity investments in privately held companies. These investments without readily determinable fair values for which the Company does not have the ability to exercise significant influence are accounted for using the cost method of accounting. Under the cost method of accounting, the non-marketable securities are carried at cost and are adjusted only for other-than-temporary impairments, certain distributions and additional investments. Accounts Receivable and Allowance for Doubtful Accounts —Accounts receivable are carried at the original invoiced amount less an allowance for doubtful accounts based on the probability of future collection. When management becomes aware of circumstances that may decrease the likelihood of collection to a point where a receivable is no longer probable of being collected, it records an allowance against amounts due, which reduces the receivable to the amount that management reasonably believes will be collected. For all other customers, management determines the adequacy of the allowance based on historical loss patterns, the number of days that billings are past due and an evaluation of the potential risk of loss associated with specific accounts. To date, losses resulting from uncollected receivables have not exceeded management’s expectations. The following is a roll forward of the Company’s allowance for doubtful accounts (in thousands): Balance Beginning of Period Charged to Statement of Operations Deductions (1) Balance at End of Period Allowance for doubtful accounts Year ended December 31, 2017 $ 617 $ 3,353 $ (3,332 ) $ 638 Year ended December 31, 2016 $ 371 $ 2,517 $ (2,271 ) $ 617 Year ended December 31, 2015 $ 218 $ 1,367 $ (1,214 ) $ 371 (1) Deductions include actual accounts written-off, net of recoveries. Restricted Cash —The Company had restricted cash of $5.1 million at December 31, 2017 and $483 thousand at December 31, 2016 related to leased facilities. Property and Equipment —Property and equipment are stated at cost and depreciated using the straight-line method over the estimated useful lives of the related assets. Expenditures for maintenance and repairs are charged to expense as incurred, whereas major betterments are capitalized as additions to leasehold improvements. Depreciation is recorded over the following estimated useful lives: Estimated Useful Life Employee related computer equipment 2 – 3 years Computer equipment and purchased software 3 years Office equipment 5 years Furniture and fixtures 5 years Internal use software 5 years Leasehold improvements Lesser of lease Internal use software The Company capitalizes certain payroll and stock compensation costs incurred to develop functionality for certain of the Company’s internally built software platforms. The costs incurred during the preliminary stages of development are expensed as incurred. Once a piece of incremental functionality has reached the development stage certain internal costs are capitalized until the functionality is ready for its intended use. Internal use software is included within property and equipment on the balance sheet. The costs are generally amortized on a straight-line basis over an estimated useful life of approximately five years. Asset Retirement Obligations — The Company recognizes Assets Retirement Obligations (“AROs”) for any significant lease restoration obligation, if required by a lease agreement. The fair values of these AROs are recorded on a discounted basis, at the time the obligation is incurred, and accreted over time for the change in present value. Additionally, the Company capitalizes asset retirement costs by increasing the carrying amount of the related long-lived assets and depreciating these assets over their remaining useful life. The changes in these obligations during the year ending December 31, 2017 and December 31, 2016 are as follows: Year Ended December 31, 2017 2016 (in thousands) Beginning balance $ 591 $ — Additions 580 561 Accretion 46 30 Settlements (26 ) — Ending balance $ 1,191 $ 591 Impairment of Long-Lived Assets —Long-lived assets are reviewed for impairment whenever events or changes in circumstances indicate that the carrying amount of the asset may not be recoverable or that the useful lives of those assets are no longer appropriate. Management considers the following potential indicators of impairment of its long-lived assets (asset group): a substantial decrease in the Company’s stock price, a significant adverse change in the extent or manner in which a long-lived asset (asset group) is being used, a significant adverse change in legal factors or in the business climate that could affect the value of the long-lived asset (asset group), an accumulation of costs significantly in excess of the amount originally expected for the acquisition or construction of a long-lived asset (asset group), and a current expectation that, more likely than not, a long lived asset (asset group) will be sold or otherwise disposed of significantly before the end of its previously estimated useful life. When such events occur, the Company compares the carrying amounts of the assets to their undiscounted expected future cash flows. If this comparison indicates that there may be an impairment, the amount of the impairment is calculated as the difference between the carrying value and fair value. For the years presented, the Company did not recognize an impairment charge. Intangible Assets — Intangible assets consist acquired technology and intellectual property. We record acquired intangible assets at fair value on the date of acquisition. and amortize such assets using the straight-line method over the expected useful life of the asset. The estimated useful life of acquired technology and intellectual property is two to three years. The Company evaluates the useful lives of these assets on an annual basis and tests for impairment whenever events or changes in circumstances occur that could impact the recoverability of these assets. If the estimate of an intangible asset’s remaining useful life is changed, we amortize the remaining carrying value of the intangible asset prospectively over the revised remaining useful life. Goodwill —Goodwill represents the excess of cost over the fair value of the net tangible and identifiable intangible assets acquired in a business combination. The Company has no other intangible assets with indefinite useful lives. Goodwill is not subject to amortization, but is monitored annually for impairment or more frequently if there are indicators of impairment. Management considers the following potential indicators of impairment: significant underperformance relative to historical or projected future operating results, significant changes in the Company’s use of acquired assets or the strategy of the Company’s overall business, significant negative industry or economic trends and a significant decline in the Company’s stock price for a sustained period. The Company performs its annual impairment test on November 30. Currently, the Company’s goodwill is evaluated at the entity level as it is determined there is only one reporting unit. The Company performs a two-step impairment test. In the first step, the fair value of each reporting unit is compared to its carrying amount. If the fair value exceeds the carrying value of the net assets assigned, goodwill is not considered impaired and the second step is not required. If the carrying value exceeds the fair value, then the second step of the impairment test is performed in order to determine the implied fair value of the reporting unit’s goodwill. If the carrying value of the goodwill exceeds the fair value, then an impairment charge is recorded. On November 30, 2017, the fair value of the Company’s single reporting unit exceeded its carrying amount. Because the fair value of the Company’s single reporting unit was in excess of its carrying value and there were no indicators that the Company’s goodwill had become impaired since that date, there was no impairment as of November 30, 2017 or December 31, 2017. For the years ended December 31, 2017, 2016 and 2015, the Company did not recognize an impairment charge. Advertising Expense —The Company expenses advertising as incurred, which is included in sales and marketing expense in the accompanying consolidated statements of operations. The Company incurred $5.5 million of advertising expense in 2017, $4.2 million in 2016, and $4.9 million in 2015. Revenue Recognition —The Company primarily generates revenue from multiple-element arrangements, which typically include subscriptions to its online software solution and professional services which includes on-boarding and training services. The Company’s customers do not have the right to take possession of the online software solution. The Company recognizes revenue when all of the following have occurred: • persuasive evidence of an arrangement with the customer exists; • service has been or is being provided; • the fees are fixed or determinable; and • collectability of the fees is reasonably assured. The Company’s arrangements do not contain general rights of return. In order to treat elements in a multiple-element arrangement as separate units of accounting, the delivered elements must have standalone value and delivery of the undelivered element is probable and within control of the Company. The Company has determined that subscriptions for its online software solution have standalone value because, once a customer launches its initial site, the online software solution is fully functional and does not require any additional development, modification, or customization. Professional services consists primarily of on-boarding and web-based and in-person training, are not required to use the online software solution, and are determined to have stand-alone value from the related subscription services because they are sold separately by the Company and third parties. When multiple-element arrangements are separated into different units of accounting, the arrangement consideration is allocated to the identified separate units based on a relative selling price hierarchy. The estimated fair value of each element is determined based upon the following hierarchy: (1) vendor specific objective evidence (“VSOE”) of fair value, (2) third party evidence of selling price (“TPE”), or (3) the Company’s best estimate of selling price (“BESP”). There is not an available measure of TPE of selling price and, as such, arrangement consideration is allocated amongst multiple deliverable arrangements using VSOE, if VSOE can be established, and BESP if VSOE cannot be established. The Company establishes VSOE and BESP for each deliverable primarily considering the median or average of actual sales prices (stand-alone sales prices for VSOE) of each type of subscription and other professional services sold. The Company considers each type of subscription and service as well as pricing and geographic information when establishing VSOE and BESP. Arrangement consideration is allocated such that the revenue recognized does not exceed the fee subject to refund. Revenue from subscriptions is recognized ratably over the subscription period beginning on the date the Company’s subscription is made available to customers. Substantially all subscription contracts are one year or less. The Company recognizes revenue from on-boarding and training services as the services are provided. The Company pays its marketing and sales agency partners (“Partners”) a commission of the subscription sales price for sales to customers. The classification of the commission paid on the Company’s consolidated statements of operations depends on who is purchasing its subscription. In instances where the customer is purchasing the subscription, the Company is the primary obligor and records the commission paid to the Partners as sales and marketing expense. When the Partner purchases the subscription directly from the Company, the Company nets the consideration paid to the Partner against the associated revenue it recognizes, as in these instances the Company’s customer is the Partner and the Company’s remaining obligations are to the Partner. The Company does not believe that it receives a tangible benefit from the payment back to the Partner. Sales taxes collected from customers and remitted to government authorities are excluded from revenue. Amounts that have been invoiced are recorded in accounts receivable and deferred revenue or revenue, depending on whether the revenue recognition criteria have been met. Deferred revenue represents amounts billed for which revenue has not yet been recognized. Deferred revenue that will be recognized during the succeeding 12-month period is recorded as current deferred revenue and the remaining portion is recorded as long-term deferred revenue. Concentrations of Credit Risk and Significant Customers —Financial instruments that potentially expose the Company to concentrations of credit risk consist primarily of cash, investments and accounts receivable. A significant portion of the Company’s cash and cash equivalents is held at four financial institutions that management believes to be of high credit quality. Although the Company deposits it cash and cash equivalents with multiple financial institutions, its deposits exceed federally insured limits. The Company’s investments consist of highly rated corporate debt securities and U.S. government agency obligations, and U.S. Treasury securities . The Company limits the amount of investments in any single issuer. The Company believes that, as of December 31, 2017, its concentration of credit risk related to investments was not significant. The Company has no significant off-balance sheet risk such as foreign exchange contracts, option contracts, or other hedging arrangements. The Company generally does not require collateral from its customers and generally requires payment 30 days from the invoice date. The Company maintains an allowance for doubtful accounts based on its assessment of the collectability of accounts receivable. Credit risk arising from accounts receivable is mitigated as a result of transacting with a large number of geographically dispersed customers spread across various industries. At December 31, 2017 and 2016 there were no customers that represented more than 10% of the net accounts receivable balance. There were no customers that individually exceeded 10% of the Company’s revenue in any of the periods presented. Foreign Currency —The functional currency of the Company’s foreign subsidiaries is the local currency. Assets and liabilities denominated in a foreign currency are translated into U.S. dollars at the exchange rates in effect at the balance sheet dates; with the resulting translation adjustments directly recorded to a separate component of accumulated other comprehensive loss. Income and expense accounts are translated at the weighted-average exchange rates during the period. Foreign currency transaction gains and losses are recorded in other income (expense). Research and Development —Research and development expenses include payroll, employee benefits and other expenses associated with product development. Capitalized Software Development Costs —Certain payroll and stock compensation costs incurred to develop functionality for the Company’s software and internally built software platforms, as well as certain upgrades and enhancements that are expected to result in increased functionality are capitalized. The costs incurred in the preliminary stages of development are expensed as incurred. Once an application has reached the development stage, certain internal costs are capitalized until the software is substantially complete and ready for its intended use. Capitalized software development costs are amortized on a straight-line basis over their estimated useful life of two to five years. Management evaluates the useful lives of these assets on a quarterly basis and tests for impairment whenever events or changes in circumstances occur that could impact the recoverability of these assets. Capitalized software development costs, exclusive of those costs recorded within property and equipment, consisted of the following: December 31, 2017 December 31, (in thousands) Gross capitalized software development costs $ 33,360 $ 25,152 Accumulated amortization (24,600 ) (18,629 ) Capitalized software development costs, net $ 8,760 $ 6,523 The Company capitalized software development costs, exclusive of costs recorded within property and equipment, of $8.2 million in 2017, $6.4 million in 2016, and $4.5 million in 2015. Stock-based compensation costs included in capitalized software were $1.6 million in 2017, $1.2 million in 2016, and $492 thousand in 2015. Amortization of capitalized software development costs, exclusive of costs recorded within property and equipment, was $6.3 million in 2017, $5.1 million in 2016, and $4.6 million in 2015. Amortization expense is included in cost of revenue in the consolidated statements of operations. Income Taxes —Deferred tax assets and liabilities are recognized for the differences between the financial statement carrying amounts and the tax bases of existing assets and liabilities using tax rates expected to be in effect in the years in which the differences are expected to reverse. Deferred tax assets are reduced by a valuation allowance if it is more likely than not that some portion or all of the deferred tax assets will not be realized. Accounting for uncertainty in income taxes recognized in the financial statements is in accordance with accounting authoritative guidance, which prescribes a two-step process to determine the amount of tax benefit to be recognized. First, the tax position must be evaluated to determine the likelihood that it will be sustained upon external examination. If the tax position is deemed “more-likely-than-not” to be sustained, the tax position is then assessed to determine the amount of benefit to recognize in the financial statements. The amount of the benefit that may be recognized is the largest amount that has a greater than 50 percent likelihood of being realized upon ultimate settlement. Undistributed foreign earnings of approximately $6.9 million have been taxed in 2017 due to a one-time transition tax on previously undistributed foreign earnings. For any future foreign earnings, the Company will generally be free of additional U.S. federal tax consequences due to a dividends received deduction implemented as part of the move to a territorial tax system for foreign subsidiary earnings. Stock-Based Compensation —The Company accounts for all stock options and awards granted to employees and nonemployees using a fair value method. Stock-based compensation is recognized as an expense and is measured at the fair value of the award. The measurement date for employee awards is generally the date of the grant. The measurement date for nonemployee awards is generally the date the awards vest. Stock-based compensation costs are recognized as expense over the requisite service period, which is generally the vesting period for awards, on a straight-line basis for awards with only a service condition, and using the graded-method for awards with both a performance and service that were granted prior to our IPO, and on a straight-line basis for the awards that were granted following our IPO, which only have service conditions. Recent Accounting Pronouncements — Recent accounting standards not included below are not expected to have a material impact on our consolidated financial position and results of operations. The Company adopted updated guidance related to certain aspects of share-based payments to employees. The guidance requires the recognition of the income tax effects of awards in the income statement when the awards vest or are settled, thus eliminating additional paid-in capital pools. As a result of the adoption, we recorded an increase to deferred tax assets with a corresponding increase to the valuation allowance of $30.4 million to recognize net operating loss carryforwards attributable to excess tax benefits on stock compensation that had not been previously recognized as additional paid-in capital. In addition, the Company changed its policy election to account for forfeitures as they occur rather than on an estimated basis. The change in the policy election related to forfeitures resulted in the Company reclassifying $452 thousand from additional paid-in capital to accumulative deficit for the net cumulative-effect adjustment in stock compensation expense related to prior periods. In January 2017, the Financial Accounting Standards Board (“FASB”) In January 2017, the FASB issued guidance simplifying the accounting for goodwill impairment by removing Step 2 of the goodwill impairment test. Under current guidance, Step 2 of the goodwill impairment test requires entities to calculate the implied fair value of goodwill in the same manner as the amount of goodwill recognized in a business combination by assigning the fair value of a reporting unit to all of the assets and liabilities of the reporting unit. The carrying value in excess of the implied fair value is recognized as goodwill impairment. Under the new standard, goodwill impairment is recognized based on Step 1 of the current guidance, which calculates the carrying value in excess of the reporting unit’s fair value. The new standard is effective beginning in January 2020, with early adoption permitted. We do not believe the adoption of this guidance will have a material impact on our consolidated financial statements. In November 2016, the FASB issued guidance related to the presentation of restricted cash within the statement of cash flows. The guidance requires entities to show the changes in cash, cash equivalents, and restricted cash in the statement of cash flows. Entities will no longer present transfers between cash and cash equivalents and restricted cash in the statement of cash flows. As of December 31, 2017, we had $5.1 million in restricted cash. The new standard is effective beginning in the first quarter of 2018, with early adoption permitted. The impact of including restricted cash with cash and cash equivalents when reconciling the beginning-of-year and end-of-year total amounts presented on the consolidated statement of cash flows would increase net cash flows for the year ended December 31, 2017 by approximately $4.6 million. In February 2016, the FASB issued guidance that requires lessees to recognize most leases on their balance sheets but record expenses on their income statements in a manner similar to current accounting. For lessors, the guidance modifies the classification criteria and the accounting for sales-type and direct financing leases. The guidance is effective in 2019 with early adoption permitted. The Company is currently evaluating the impact of this guidance on the consolidated financial statements. In June 2016, the FASB issued guidance that introduces a new methodology for accounting for credit losses on financial instruments, including available-for-sale debt securities. The guidance establishes a new "expected loss model" that requires entities to estimate current expected credit losses on financial instruments by using all practical and relevant information. Any expected credit losses are to be reflected as allowances rather than reductions in the amortized cost of available-for-sale debt securities. This guidance will be effective for the Company on January 1, 2020. The Company is currently evaluating the impact of this guidance on the consolidated financial statements. In May 2014, the FASB issued updated guidance and disclosure requirements for recognizing revenue. The new revenue recognition standard provides a five-step analysis of transactions to determine when and how revenue is recognized. The core principle is that a company should recognize revenue to depict the transfer of promised goods or services to customers in an amount that reflects the consideration to which the entity expects to be entitled in exchange for those goods or services. The standard also provides guidance on the recognition of costs related to obtaining customer contracts. The new standard is effective for the Company for its annual reporting periods beginning January 1, 2018. The Company will adopt the standard on January 1, 2018, using the modified retrospective method, which will result in a cumulative effect adjustment as of the date of adoption. The Company established a team that has assessed the impact of the standard including the timing of revenue recognition and the accounting for deferred commission costs and related balances. The Company has determined that there will be a change to the period over which sales commissions will be amortized to incorporate an estimated customer life and the amortization period over which internally developed new features and increased functionality for our software platform is recorded, in addition to the initial contract period. This will result in a longer amortization period for deferred sales commissions, which will reduce the expense in any one period compared to today. There will also be a change to the scope of capitalized sales commissions based on the definition of incremental costs of obtaining a contract. This will result in a higher capitalized commissions balance upon adoption. In addition, there will be a change in relation to the timing of revenue recognition for certain sales contracts, where free or discounted services are bundled with our subscription offering due primarily to the removal of the current limitation on contingent revenue. This will accelerate revenue recognition on these contracts when these services are provided up front as compared to today. The change in the period over which sales commissions will be amortized will have a material impact to the consolidated financial statements and disclosures. The change in the timing of revenue recognition for certain sales contracts, where free or discounted services are bundled with our subscription offering, will not have a material impact to the con |