Total New Jersey gaming revenue increased 12.8 percent in July, to $302 million from $268 million in 2017, thanks to the growth of internet gambling, the introduction of sports betting and the opening of two new casinos in Atlantic City.

Casino licensees reported a 10.1 percent increase in revenue for July, up $25 million to $272 million, according to data released Tuesday by the New Jersey Division of Gaming Enforcement.

That included $48.2 million won by two new casinos that opened in late June, the Hard Rock and the Ocean Resort. But some of their business came at the expense of the seven other casinos, which all reported declines, reflecting a migration of some gamblers to sample the experience at the new venues.

"Clearly the new casinos have added competition, and it has been a good thing for visitors," James T. Plousis, chairman of the New Jersey Casino Control Commission, said in a statement. "Market adjustments were expected and will continue as each casino works to attract new customers and build their market share."

The revenue declines at casinos ranged from 3.3 percent at the Golden Nugget to 14.1 percent at Harrah's. The Borgata, which generates twice as much revenue as the next closest competitor in Atlantic City, reported a 6.8 percent erosion.

Internet gambling increased 25.8 percent in July, to $25.9 million.

Sports betting, which began in June, generated $3.8 million in revenue at three casinos and two racetracks. Three sports wagering operations were open for all of July. Two more — Bally's Atlantic City and the Meadowlands — were added before month's end.

The state of New Jersey collected $23.4 million in gaming taxes in July, based on an 8 percent tax rate on casino gross revenue, 15 percent on internet gaming gross revenue and 8.5 percent on casino and racetrack sports wagering gross revenue, according to the Division of Gaming Enforcement.