Squarespace, Wix & other builders
Install the Lapis pixel via code injection on hosted site builders and capture the click ID with hidden form fields.
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
<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):
<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 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:
<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.
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:
- Where does footer code injection live?
- How does the click ID get from the cookie into the conversion record (hidden field, URL param, metadata)?
- 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.