Coup de Boule (Headbutt) was written as a "joke... to entertain our friends," said Sebastien Lipszyc of La Plage Records in Paris.
Zinedine Zidane was banned by Fifa for three games and fined £3,260 for head-butting Italy's Marco Materazzi during the final of the World Cup.
Mr Lipszyc, whose firm composes advertising jingles and sound-effects, said that he and two colleagues heard Coup de Boule (Headbutt) on Skyrock, a popular French radio network in the evening of the same day they mailed it out.
"The next day, the major players rang us," said Mr Lipszyc, quoted in the French Le Figaro newspaper and he also said that Warner made the best offer to distribute the song - an advance of 45,000 euros for the clip, percentages on the sales with a guarantee that La Plage Records would retain authorship.
Coup de Boule (Headbutt), which is a song described as in "African style", was then distributed to 20 countries with a video clip made at the Charlety stadium in Paris, and it has become a summer hit at beaches, campsites and bars across France.