# Step 1: Embed Surface Scripts



Check out the [**How to Get Site ID**](/platform/traffic/surface-tag#where-to-find-your-site-id) page to get your site ID.

### Surface Tag [#surface-tag]

Add the following script tag inside your `<head>` tag:

```html
<!-- 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 -->
```

<Info>
  Using a verified custom domain? Add `data-custom-domain="forms.example.com"` to the Surface Tag. Follow the [custom-domain setup guide](/platform/traffic/custom-domains) before publishing the change.
</Info>

### Surface External Script [#surface-external-script]

Embed the script at the end of the `<body>` tag:

```html
<script siteId="YOUR_SITE_ID">
  const surfaceExternalForm = new SurfaceExternalForm();
  surfaceExternalForm.attachFormHandlers();
</script>
```
