Kwok Ho Tam
Analyst · Citigroup
Thank you, Mr. Ma. Thank you, Harriet, and hi, everyone. It's Ron here. In summary, I think that we -- our second quarter results have shown the market that our business model online is very resilient. And again, we delivered robust double-digit GWP and topline revenue growth despite the continued challenging macroeconomic environment as well as continued bottom line profitability for the ninth straight quarter.
For the second quarter, GWP facilitated was RMB 596 million, which was up 51% year-over-year, I think, far outpacing average industry growth rates in the period. Although COVID-19 has gradually been brought under control in China; however, recurrent outbreaks in various pockets of the country continue to reemerge; for example, recently in Beijing, Shanghai, Shenzhen. And the pandemic continues to have a large dampening effect on consumer's willingness to spend money on discretionary and financial products, particularly relatively higher ticket-sized long-term life and health insurance policies, which is our product's key strategic focus.
In terms of gross written premium breakdown, first year premiums accounted for RMB 319.7 million, which represents a 12.5% year-over-year growth. Renewal premiums accounted for RMB 276.3 million, which represents a 1.5x year-over-year growth.
Our strong continued renewal premiums growth demonstrate the quality of the customer acquisition through our content-driven marketing channels online. And as Mr. Ma has touched upon earlier, we have achieved industry-leading 13th month and 25th month persistency ratios for long-term policies due for renewal during the quarter.
Renewal premiums accounted for 46.4% of our total GWP in the quarter as compared to 28% in the same period of last year. Our strong renewal premiums growth will continue to drive better visibility through our revenue line and provide a stable and recurring stream of revenues going forward. And on the business side, provide a current and potential insurance companies partners with further positive reassurance of the quality of our online customer acquisition abilities.
During the quarter, we continued to execute on our focus on long-term life and health insurance distribution with long-term life and health products accounting for 93% of total GWP facilitated in the quarter, marking the third consecutive quarter for this metric to come in above 90%. Our long-term health segment continues to demonstrate strong growth momentum. We've closed up -- GWP increasing by 40% year-over-year to RMB 400 million.
Now turning to our revenue line. Total operating revenue for the quarter was RMB 235 million, which was up by 17.6% year-over-year and exceeding our previous guidance given to the market in the first quarter. The increase in revenue was primarily driven by the increase in brokerage income due to the 51% increase in GWP, which we mentioned before.
Turning to the cost items. Cost of revenue for the quarter increased by 10.7% year-over-year to RMB 139.8 million, primarily due to the increased personnel costs paid to insurance consultants and service fees paid to our user traffic channel partners, which is generally in line with our overall revenue growth.
As a percentage of total revenues, total cost of revenues declined to 59.5% in the quarter from 63.2% in the same period of 2019, which translates roughly to 3.7 percentage point improvement in gross margins year-over-year. And that also demonstrates the operating leverage that we are able to achieve in the quarter.
Selling expenses for the quarter increased by 42.7% year-over-year to RMB 48.1 million, which was primarily attributable to the increase in our sales and marketing headcount during the last 12 months as well as an increase in share-based compensation and to a lesser extent an increase in advertising and marketing expenses in comparison to last year.
G&A expenses decreased year-over-year by 44.5% to RMB 43.5 million. The decrease was primarily due to a one-off share-based expense in the same period last year. And then the decrease amounted to RMB 15.5 million in the second quarter compared to RMB 61.8 million in the last year. If we strip out the effect of SBC from G&A in the quarter, G&A expenses grew by 70.3% year-over-year to RMB 28 million from RMB 16.5 million and accounting for 11.9% of our revenues as compared to 8.2% last year.
R&D expenses. We continue to invest heavily in R&D, as explained before, in our AI applications and also in beefing up our R&D headcount. For the quarter, R&D expenses grew by 41.9% year-over-year to RMB 10.6 million, which is primarily attributable to the increase in headcount, as we continue to invest in technology enhancements throughout the business procedures.
During the second quarter, net loss was RMB 3.7 million, while non-GAAP net profit for the quarter was RMB 14.1 million, which again represents a 9 consecutive profitable quarter on a non-GAAP basis. We continue to exercise financial discipline and prudence in light of the current challenging macro environment and maintain a relatively strong liquidity and healthy financial position.
As of quarter end, we had a combined balance of cash and cash equivalents of approximately USD 63 million. Going forward, this robust liquidity position will allow us to undertake more aggressive growth strategies in the second half of the year and capitalize on potential attractive investment opportunities.
Now turning to our Q3 outlook. With regards to the Q3 revenue, we expect total operating revenue to be in the range of RMB 310 million to RMB 340 million. This forecast obviously only reflects the current and preliminary views on the market and operational conditions and are subject to change caused by various uncertainties, including those relating to the ongoing COVID-19 pandemic.
With that, this concludes our prepared remarks for today, and we would like to open up the call for Q&A. Thank you, operator.