The National Rifle Association nearly doubled its spending on pro-gun Facebook propaganda for three weeks after the mass shootings in El Paso, Texas, and Dayton, Ohio, according to analytics provided to The Intercept.

The social advertising surge began just one day after the El Paso massacre, which left 22 people dead, and on the same day as the Dayton killings, which took 10 lives. At one point in this period, the NRA was spending $29,000 on a day’s worth of Facebook ads, nearly four times as much as before the shootings, according to Pathmatics, a company that monitors online advertising spending.

The ad spending was conducted through the NRA’s lobbying arm, the Institute for Legislative Action, which, in the four weeks before the shootings, spent on average just over $9,400 a day on Facebook ads. Then came the El Paso shooting on August 3 and Dayton on August 4. Between August 4 and August 25, the institute spent around $360,000 on Facebook — roughly $16,500 per day — reaching a peak of over $29,000 on August 18, according to Pathmatics, which said that it gathered this data from a panel of hundreds of thousands of Facebook users who opt in to automatically share information about the ads they’re shown.

Altogether, the ads bought in this period were viewed tens of millions of times, the analytics firm estimated.

Those figures don’t even include ads originating from the main NRA Facebook page, which, according to Facebook’s ad transparency portal, typically run around a few thousand dollars per day.

“The NRA’s ad spend has spiked significantly, which isn’t surprising for an organization in the midst of a reputation battle and crisis,” Pathmatics CEO Gabe Gottlieb told The Intercept.

The NRA did not respond to a request for comment.