Proper prior preparation of a glass surface is absolutely critical to achieving good adhesion of the gold to the window. Contaminants on the glass could cause the gold leaf to flake off of the surface, if not immediately, than later down the road. Experienced gilders will clean the surface of the glass several times before...
http://bit.ly/1AbRJdl