On a sequential basis, we witnessed continued caution at some of our larger TMT customers. Here are the details of the revenue mix of other verticals. Our CPG and manufacturing represented 12.5% of our revenue in the third quarter, a decrease of 11.1% on a sequential basis and 39.8% on a year-over-year basis. The decline on a sequential and year-over-year basis came from some of our large customers as they readjusted their spending levels to the current macro environment. That said, at our largest CPG customer, we’re witnessing stabilization, and this should benefit us in the fourth quarter. The finance vertical represented 9.4% of revenue, an increase of 8.2% on a sequential basis and 20.2% on a year-over-year basis. The growth in the quarter came from a combination of financial technology customers and new logos.
And finally, the other segment represented 13.1% of our third quarter revenue and was up 6.1% on a sequential basis. The strong sequential growth was driven by both from new logos and existing customers that spanned across health care, distribution and the restaurant industries. We exited the third quarter with a total headcount of 3,823 versus 3,862 employees in the second quarter of 2023 and up from 3,746 in the third quarter of 2022. At the end of the third quarter of 2023, our total U.S. headcount was 322 or 8.4% of the company’s total headcount. This remained at the same level compared to 8.2% in the second quarter of 2023 and slightly decreased from 8.6% in the year ago quarter. Our non-U.S. headcount located in Europe, North America and India was 3,501 or 91.6%.
In the third quarter, revenues from our top five and top 10 customers were 36.8% and 54%, respectively, versus 44.5% and 61.1% in the same period a year-ago, respectively. We witnessed continuous diversification and greater contributions from our recently acquired logos. During the third quarter, we had a total of 224 customers, up from 216 in the second quarter of 2023 and up from 200 in the year-ago quarter. The increase in customers on a sequential basis was largely from our core enterprise business. Moving to the income statement; our GAAP gross profit during the quarter was $28.2 million or 36.4% and remain almost unchanged compared to $28.3 million or 36.6% in the second quarter of 2023 and down from $32.7 million or 40.3% in the year-ago quarter.
On a non-GAAP basis, our gross margin was $28.7 million or 37% versus $28.8 million or 37.3% in the second quarter of 2023 and down from $33 million or 40.7% in the year ago quarter. The decrease in gross margin as a percentage on a year-over-year basis, both for GAAP and non-GAAP was largely due to a combination of FX headwinds, cost associated with the expansion in new geographies and investments in AI-related expertise. Non-GAAP EBITDA during the third quarter that excluded stock-based compensation, depreciation and amortization, restructuring and expenses related to the geographic reorganization, transaction and other related costs was $10.7 million or 13.9% of sales, down from $12 million or 15.5% of sales in the second quarter of 2023 and down from $17.1 million or 21.1% of sales in the year-ago quarter.
Our GAAP net income in the third quarter totaled $0.7 million or $0.01 based on a basic share count of 75.5 million shares compared to the second quarter income of $2.6 million or $0.03 based on a basic share count of $75.1 million and a loss of $6.7 million or a loss of $0.10 per share based on 68.6 million basic shares in the year-ago quarter. The year-over-year increase in GAAP net income was largely due to lower levels of stock-based compensation and significant decrease in geographic reorganization expenses. On a non-GAAP basis, in the third quarter, our non-GAAP net income was $5.9 million or $0.08 per share based on 77.3 million diluted shares compared to the second quarter non-GAAP net income of $7 million or $0.09 per share based on 76.9 million diluted shares and $11 million or $0.15 per diluted share based on 71.9 million diluted shares in the year-ago quarter.