Image tracker code - various files html

I found a solution to insert the code simple html on multiple files with the sed command was:

sed -i ‘s/</body>/<img src=“http://domain.tld/piwik.php?idsite=1&rec=1” style=“border:0” alt="" />\n</body>/g’ *.html