# Installation guide

Get Clarifier up and running on your website in under 5 minutes

## Steps

### 1. Create an account

Go to app.clarifier.dk and create a free account.

### 2. Add your website

Enter your website URL in the dashboard. Clarifier will automatically start crawling your site.

### 3. Wait for crawling

Crawling typically takes between 1 and 10 minutes depending on your website's size. You can follow the progress in the dashboard.

### 4. Copy the embed code

When the crawl is complete, you'll find your unique embed code under "Installation" in the dashboard.

### 5. Paste the script tag

Paste the script tag just before </body> on your website.

## Embed snippets

### Standard HTML

```html
<script
  src="https://cdn.clarifier.dk/v1/your-site-id.js"
  async
></script>
```

### WordPress

Add the code in Appearance → Theme Editor → footer.php, just before </body>. Or use a plugin like "Insert Headers and Footers".

```html
<!-- Add to footer.php before </body> -->
<script
  src="https://cdn.clarifier.dk/v1/your-site-id.js"
  async
></script>
```

### Shopify

Go to Online Store → Themes → Edit code → theme.liquid and paste the code just before </body>.

```html
<!-- Add to theme.liquid before </body> -->
<script
  src="https://cdn.clarifier.dk/v1/your-site-id.js"
  async
></script>
```

### Next.js

Add the script tag in your layout component using next/script.

```tsx
// app/layout.tsx
import Script from 'next/script'

export default function RootLayout({ children }) {
  return (
    <html>
      <body>
        {children}
        <Script
          src="https://cdn.clarifier.dk/v1/your-site-id.js"
          strategy="lazyOnload"
        />
      </body>
    </html>
  )
}
```
