The Galactic Electron Density (density of electrons in the Galaxy) refers to the density of Free Electrons in the Milky Way Interstellar Medium. Overall, the ISM is presumed electrically neutral, so the free electrons are presumed to result from a slight ionization of the ISM, inevitable from the presence of a bit of short-Wavelength Electromagnetic Radiation.
A means of estimating the density is through analysis of Pulsar signals. If HI Regions are identified in front of the pulsar, the analysis takes that into account. The factors revealing the electron density include the dispersion (Frequency-dependent delays), and Polarization.