We fetch the raw production data from public, free, and official sources. They include official government and transmission system operators' data. We then run our flow-tracing algorithm to calculate the actual carbon intensity of a country's electricity consumption.
We have extensively documented all of our methodology and information around calculations on electricitymaps.com/methodology, with additional documentation in our GitHub Wiki.