Install on Squarespace
Add the Luria snippet with Squarespace Code Injection and track Commerce orders on the order confirmation page.
About 5 minutes
What you'll need
- Your Luria Site ID, copied from the Luria dashboard under Settings > Install
- Owner or Administrator access to your Squarespace site
- A Squarespace Business plan or higher. Code Injection is not available on the Personal plan.
Step 1: Copy your snippet
Sign in at luriart.com/app, open Settings > Install , and copy the snippet. It looks like this:
<script async src="https://luriart.com/snippet.js" data-luria-site="YOUR_SITE_ID"></script>YOUR_SITE_ID is replaced with your real Site ID when you copy from the dashboard.
Step 2: Paste it into Code Injection
- In Squarespace, open Settings.
- Go to Advanced > Code Injection.
- Paste the snippet into the Header box.
- Click Save.
Squarespace sites go live immediately; there is no separate publish step.
Step 3: Set up conversion tracking
Automatic. If the page a visitor sees after converting has a URL containing /thank-you, /thank_you, or /orders/ followed by an ID, Luria counts it on its own.
Lead forms. Squarespace forms usually show a message in place instead of moving to a new page. Set the form's Post-submit option to redirect to a page whose URL contains /thank-you, and Luria counts the lead automatically.
Squarespace Commerce. Use the order confirmation page injection:
- Go to Settings > Advanced > Code Injection.
- Scroll to Order Confirmation Page.
- Paste:
<script>window.luria && window.luria.convert("purchase", {orderGrandTotal});</script>Squarespace fills in {orderGrandTotal} with the order total on that page. If you prefer not to pass a value, use window.luria.convert("purchase") and Luria counts the order without revenue.
Troubleshooting
Check two things: your plan (Business or higher) and your role (Owner or Administrator). Contributors with lower roles cannot reach this panel.
Open your site in a private window, load a couple of pages, then refresh Settings > Install in Luria. If it still says Not detected after a few minutes, see Snippet not firing.
The order confirmation injection only fires on a completed checkout. Place a small test order and check the dashboard after a few minutes. Test orders in Squarespace test mode may not fire injection code.
No. Luria reads its own events and never fires anyone else's conversions. Your analytics and ad pixels keep working as they are.