Embedding
Check out the How to Get Site ID page to get your site ID.
Surface tag
Add the following script tag inside your <head> tag:
<!-- Start Surface Tag -->
<script
src="https://cdn.jsdelivr.net/gh/trysurface/scripts@latest/surface_tag.min.js"
site-id="YOUR_SITE_ID"
></script>
<!-- End Surface Tag -->
Surface external script
Embed the script at the end of the <body> tag:
<script siteId="YOUR_SITE_ID">
const surfaceExternalForm = new SurfaceExternalForm();
surfaceExternalForm.attachFormHandlers();
</script>