Sed/Awk replace multiple lines?

Hi

Can we replace multiple lines by Sed or Awk

I want to add tracking code at the footor of a site
how can I do the following replacement with Sed or Awk or anything else so that I don’t have to download the files locally ?

</body> with

<code start>
code
code
code
</end code>
</body>