Cohan wrote the song the day after the US declared war on Germany, and he asked Nora Bayes to make the first recording of it, which became an international hit.