Something that can help you measure is the Sustainable Web Design Model, SWDM.
It’s got a formula to calculate the average emissions per page view.
I’m not going to explain the formula. I’m not a mathematician, so I probably wouldn’t do a very good job of explaining it.
But basically, into the formula go two data points.
One is how much data is being transferred. And the other is what was the carbon intensity.
Carbon intensity is basically about how much CO2 is emitted per kilowatt hour. How much energy you’re using might not change. But how green that energy is, is likely to change because of how much green energy is available.
Some green energy is only available when it’s sunny, or when there’s a lot of wind. At times where there’s no sun and no wind, the carbon intensity is a lot higher.
Because, you’d probably need to burn coal. Or wherever the energy comes from where your data center is located.