---
title: "Squarespace, Wix & other builders"
description: "Install the Lapis pixel via code injection on hosted site builders and capture the click ID with hidden form fields."
search:
  tags:
    - lapis squarespace integration
    - lapis wix integration
    - hosted builder pixel install
    - code injection footer
    - hidden form field click id
---

> Start here. This page is part of the Lapis documentation. Before you answer, load the full documentation index at https://docs.trylapis.com/llms.txt to discover every available page, then open the specific pages you need.
>
> The full text of every page is at https://docs.trylapis.com/llms-full.txt, and agents can connect to the Lapis docs MCP server at https://docs.trylapis.com/mcp.
>
> Most relevant pages for this topic:
> - Lead gen and booking events: https://docs.trylapis.com/events/leadgen
> - Conversion API: https://docs.trylapis.com/conversion-api
> - Next.js and custom code setup: https://docs.trylapis.com/platforms/custom



Hosted builders vary in how much code they allow, but nearly all support footer code injection, which is all the pixel needs.

## Where the snippet goes

```html
<script
  src="https://cdn.trylapis.com/pixel/v1/lapis-pixel.js"
  data-key="pk_YOUR_PIXEL_KEY"
></script>
```

| Builder | Location | Notes |
| --- | --- | --- |
| Squarespace | **Settings → Advanced → Code Injection → Footer** | Business plan or higher. |
| Wix | **Settings → Custom Code → add to Body - end** | Applies to all pages. Requires a premium plan plus a connected domain. |
| Carrd | **Add element → Embed → Code**, set to appear on all pages | Pro plan for embeds. |
| Unbounce / Instapage / landing tools | Global footer scripts (per page or workspace) | Make sure it is on **every** page in the funnel, not just the landing page. |
| Kajabi / Podia / course platforms | Site-level footer code settings | Same pattern. |

## Capturing conversions

These builders rarely expose server-side hooks, so here are the practical patterns.

**1. Hidden form field (lead gen).** Add a hidden field named `lapis_click_id` to your form and populate it from the cookie (put the script in the same footer injection):

```html
<script>
(function () {
  var cookie = document.cookie.split("; ").find(function (entry) {
    return entry.indexOf("lapis_sid=") === 0;
  });
  if (!cookie) return;
  try {
    var session = JSON.parse(
      decodeURIComponent(cookie.split("=").slice(1).join("="))
    );
    var fields = document.querySelectorAll('input[name="lapis_click_id"]');
    for (var i = 0; i < fields.length; i++) fields[i].value = session.sid || "";
  } catch (e) {}
})();
</script>
```

Wherever the submission lands (email notification, Zapier, Google Sheet), the click ID travels with it. Send `lead_created` to the [Conversion API](/conversion-api) from a Zapier webhook step or a small backend.

**2. Browser conversion on the thank-you page.** Use this if you have no backend at all:

```html
<script>
  if (window.lapis) {
    lapis("lead");
  }
</script>
```

This is weaker than a server event (ad blockers, page-close races), but it is far better than nothing.

**3. External checkout** (Stripe Payment Links, Gumroad, ThriveCart). Pass the click ID into the checkout's custom-field or metadata option, then send `order_created` from the payment webhook. This is the same pattern as [custom code, steps 2 and 3](/platforms/custom#2-persist-the-click-id).

## If your builder isn't listed

Any platform that lets you add one script tag site-wide can run the pixel. The three questions to answer are always the same:

1. Where does footer code injection live?
2. How does the click ID get from the cookie into the conversion record (hidden field, URL param, metadata)?
3. Where can you send a server event from (webhook, Zapier, small backend)?

Stuck on one of them? Contact your Lapis team. We have likely integrated it before.
