---
description: "Install Dalton on Shopify, WordPress, Wix, React, Next.js or any website: paste one snippet, make sure purchases arrive, verify. About five minutes."
next:
  link: /getting-started/first-experiment
  text: Your first experiment
---

# Installation

Five steps, about five minutes. No access to your site's code? Send your developer the **Share with developer** link from step 1.

<PromptBox title="Let your AI assistant guide you" prompt="Read https://docs.getdalton.com/advanced/mcp-server and connect me to the Dalton MCP server. Then read https://docs.getdalton.com/getting-started/installation and walk me through installing Dalton on my site, one step at a time.">

Paste this into Claude, ChatGPT or Cursor. It connects to your Dalton account through the [MCP server](/advanced/mcp-server) and takes you through the install for your platform. Once connected, it can also read your results and draft tests.

</PromptBox>

<VideoEmbed id="1227993468" title="Install Dalton" ratio="418 / 240" />

## 1. Copy your snippet

In Dalton, go to **Connectors → Tracking → Dalton Script** and click **View instructions**. Your snippet is ready to copy, with your account filled in. **Share with developer** creates a link with the snippet and instructions; your developer doesn't need a Dalton login.

## 2. Paste it in the head of your site

| Platform | Where |
| --- | --- |
| **Shopify** | **Online Store → Themes → Edit code → `theme.liquid`**, at the top of `<head>` |
| **WordPress (Elementor)** | **Elementor → Custom Code**, location `<head>` |
| **Wix** | **Settings → Custom Code**, place in Head, on every page |
| **React, Next.js, Nuxt** | Your root layout. The install panel has a tab per framework. |
| **Any other site** | Your HTML template, as high in `<head>` as possible |

It loads without slowing your page down ([Performance & SEO](/technical/performance)).

**Platform notes**

- **Shopify:** the snippet lives in one theme. Paste it in the **published** theme, and check it's still there when you publish a new or duplicated theme.
- **Next.js, React and other single-page sites:** Next.js re-applies changes on its own. On other React or single-page sites, turn on **Reapply changes** under **Options** in the install panel, so a test stays applied when your site redraws part of the page.
- **Google Tag Manager:** possible, but it loads later than a tag in `<head>`, so a tested element can show the original for a moment.

<a id="strict-csp-or-firewall"></a>A strict Content Security Policy or firewall needs two domains allowed: see [CSP and firewalls](/technical/privacy-security#csp-and-firewalls).

## 3. Make sure purchases arrive

Tests are decided on purchases and revenue, so Dalton needs to see them.

<div class="platform-cards">
  <a href="/advanced/shopify-pixel" class="platform-card">
    <img src="/logos/shopify.svg" alt="" class="platform-logo" />
    <span class="platform-name">Shopify</span>
    <span class="platform-text">Add the Dalton Pixel in <strong>Settings → Customer events</strong>. Shopify's checkout runs outside your theme, so it's a separate step.</span>
    <span class="platform-go">Set it up →</span>
  </a>
  <a href="/advanced/pixels" class="platform-card">
    <span class="platform-logo platform-logo-code" aria-hidden="true">&lt;/&gt;</span>
    <span class="platform-name">Other sites</span>
    <span class="platform-text">Add the Dalton Pixel on your order confirmation page.</span>
    <span class="platform-go">Set it up →</span>
  </a>
</div>

**Already sending GA4 ecommerce events to the data layer?** Nothing to do: Dalton picks up `purchase` and `add_to_cart` from it.

## 4. Verify

1. In the install panel, click **Next: verify installation**. The **Dalton Script** row on Connectors shows **Installed**.
2. Place a test order. Under **Settings → [Conversions](/settings/conversions)**, **Purchase** should no longer say *not detected*.

![Connectors: the Dalton Script installed and receiving data, with the Dalton Pixel options below](/v2/connectors-tracking.png)

If Verify doesn't find the script: clear your site's cache and try a private window, check you edited the published theme, and look for `dalton-installation-script` in the page source. More in [Troubleshooting](/faq/troubleshooting).

## 5. Add the Chrome extension

Everyone who builds tests should add the [Dalton Chrome extension](https://chromewebstore.google.com/detail/dalton/bmlgmcpgopglgakficjhapdcjcedhpbc). With it, the editor shows your real store, images and styling included, and you can browse to any page from the editor. Without it, some pages don't render well in the editor. **Preview on this device** also works even before the script is on your site. Desktop Chrome only.

**For IT and privacy reviews:** [Performance & SEO](/technical/performance) · [Cookies & storage](/technical/cookies-and-storage) · [Privacy & security](/technical/privacy-security)
