Please see attached screenshots:
Navigate to Web to Lead tab Thank You Message at the bottom of the page.
Click Insert Source code
When we enter our script, press OK and hit save:
When opening that window back up, the script is not included: