You'd need some sort of data ingress/egress tax.
Is that true though? If a Delaware corp is operating in most states, I believe they must file as a foreign corporation in that state; I'm surprised GAAP would not require them accruing some of this income to the locations that provided the work to do the income.
They will shuffle most gains around to the place with the lowest taxes. E.g. by internally buying and selling (overpriced) services.
The only realistic tax is coming from the jobs that serve those data centres (builders, maintenance, that little IT staff left for on-site jobs). And those are rather low margin jobs.
Physical infrastructure inputs and negative externalities.
For example: electrical grid strain, water table consumption for cooling, and local pollution/carbon footprints.
So there is little profit being taxed at the Datacenter/country Level.
I wouldn't be surprised if those profits are re-imagined as costs paid to some entity in a tax-haven.
Also there's different kinds of taxes. IIRC, local communities get their revenue from sales taxes and property taxes. A data center doesn't sell anything, so they probably get zero from that. I don't really know how they'd factor into property taxes, because they're a blight and I don't know how the locality would assess their value without comparable transactions.