In order to take full advantage of novel functional materials in the next generation of sensorial devices scalable processes for their fabrication and utilization are of great importance. Also understanding the processes lending the properties to those materials is essential. Among the most sought-after sensor applications are low-cost, highly sensitive and selective metal oxide based gas sensors. Yet, the surface reactions responsible for provoking a change in the electrical behavior of gas sensitive layers are insufficiently comprehended. Here, we have used near-edge x-ray absorption fine structure spectroscopy in combination with x-ray microscopy (NEXAFS-TXM) for ex-situ measurements, in order to reveal the hydrogen sulfide induced processes at the surface of copper oxide nanoparticles, which are ultimately responsible for triggering a percolation phase transition. For the first time these measurements allow the imaging of trace gas induced reactions and the effect they have on the chemical composition of the metal oxide surface and bulk. This makes the new technique suitable for elucidating adsorption processes in-situ and under real operating conditions.