Yes, like a lot of tech companies they weren’t focused on profits until their CEO prioritized it over growth but from that point on they were profitable from 2018 on, with the aforementioned bad quarter when everyone cut spending at the start of the pandemic. The one-time deferred lawsuit payout in 2021 masked what otherwise would have been several hundreds of millions in profit.
The problem people had understanding them was that they weren’t Facebook or Google. The expectations of a money-printing machine were unrealistic but they had a solid middle-tier business with a large number of solid customers.
Long history of not being profitable - 2018 and 2019 feel like more of an anomaly than a trend.