In the Code Injection page, you'll see several fields where you can inject your custom code. To ensure the script runs on every page of your site, just before the closing </body> tag, paste it into the "Footer" field.
Copy the script you provided and replace YOUR_API_KEY with your actual API key from Weploy: