NEW YORK (CNNMoney.com) -- After two months of declines, retail sales rebounded in July, the government said Friday.
Total retail sales rose 0.4% to $362.7 billion, compared with June's 0.3% decrease, the Commerce Department said. The June drop was revised from the originally reported 0.5%.
The overall sales percentage gain was slightly lower than anticipated. Economists surveyed by Briefing.com had expected sales would rise by 0.5% during the month.
Consumer spending accounts for two-thirds of U.S. economic activity, so retail sales and related reports are closely monitored to gauge the health of the economy.
Sales excluding autos and auto parts rose 0.2% last month, in line with economists' forecasts. In June, sales on the same basis were down 0.1%.
Motor vehicle and parts sales also rose 1.6% in the month, and gasoline store sales rose 2.3%.
As the recovery tugs along at a slower pace than most analysts had originally expected, consumers are still cautious about their spending. But July also marked the start of back-to-school shopping season, which often means a boost in sales.
"Back-to-school has accelerated into the July timeframe and we certainly know that parents are expecting to spend more than they did last year. The July numbers would indicate that that's going to be playing out through August as well," said Janet Hoffman, managing director of consultant firm Accenture's retail practice.
Overall, retail sales are up 5.5% over July last year, the government report said.
But the year-over-year comparison is not necessarily something to "jump for joy over," as retailers come off some deep hits last year during the downturn, said Doug Hart, a partner in the consumer product division of business services firm BDO.
On a month-to-month basis, sales are still showing relatively flat to modest gains in line with a slow recovery, he said.
"Consumers are still looking for value. They're still cautious," Hart said.
Analysts also often look to back-to-school season to forecast how retailers will fare during their most profitable season - the winter holidays.
Herbalife shares tumble after the maker of nutritional supplements reports earnings that fall short of analysts' estimates. More
New annual report from U.S. government shows the long-term prognosis for Medicare has improved thanks to slower health spending, while the outlook for Social Security remains unchanged. More
Online dating site OkCupid found its users were more likely to have conversations when it told them they were more compatible than in reality. More
Actor-founded This Bar Saves Lives had Hollywood connections, but learned Start-Up 101 the hard way. More
Steve Mason, a pastor from California, inherited more than $100,000 in student loan debt when his 27-year-old daughter died suddenly in 2009. With interest and late penalties, the debt has since ballooned to $200,000. More