Install on Wix
Add the Luria snippet to your Wix site's head through Custom Code and track Wix Stores orders on the thank-you page.
About 5 minutes
What you'll need
- Your Luria Site ID, copied from the Luria dashboard under Settings > Install
- Owner or Admin access to the Wix site
- A Wix Premium plan and a connected domain. Wix only allows custom code on premium sites with their own domain.
Step 1: Copy your snippet
Sign in at luriart.com/app, open Settings > Install , and copy the snippet:
<script async src="https://luriart.com/snippet.js" data-luria-site="YOUR_SITE_ID"></script>Your real Site ID is already filled in when you copy from the dashboard.
Step 2: Add it as custom code in Wix
- Open your site's dashboard in Wix and go to Settings.
- Scroll to Advanced and click Custom Code.
- Click + Add Custom Code.
- Paste the snippet into the code box and name it "Luria".
- Under Add Code to Pages, choose All pages and Load code once.
- Under Place Code in, choose Head.
- Click Apply.
No publish needed for dashboard custom code
Code added in the dashboard goes live right away. If you also make changes in the Editor, publish those as usual.
Step 3: Set up conversion tracking
Automatic. If your post-conversion page URL contains /thank-you, /thank_you, or /orders/ followed by an ID, Luria counts it on its own. Many Wix sites name their page /thank-you, so you may be done already.
Wix Stores. The default Wix Stores thank-you page URL is /thank-you-page/<order id>. That URL contains /thank-you, so purchases are detected automatically. To pass the order value too, add a second custom code entry that loads only on the Thank You Page:
- Settings > Custom Code > + Add Custom Code.
- Paste:
<script>window.luria && window.luria.convert("purchase");</script>- Under Add Code to Pages, choose Choose specific pages and pick Thank You Page.
- Place it in Body - end and click Apply.
Passing the exact order total requires Velo code on the thank-you page; contact us at support@luriart.com and we will send you the snippet. Counting the purchase without a value still works for lift measurement.
Lead forms. Set your Wix form's Submit action to redirect to a page whose URL contains /thank-you, or add window.luria.convert("lead") to that page with the same steps above.
Troubleshooting
It only appears on Premium sites with a connected domain. Upgrade and connect your domain first, then reload the dashboard.
Load your live domain (not the editor preview and not the wixsite.com address) in a private window, then refresh Settings > Install in Luria. Still nothing after a few minutes? See Snippet not firing.
If your thank-you URL already contains /thank-you and you also added the convert line, remove one of them. The automatic detection is enough on its own.
The snippet loads async and fails open. If anything goes wrong, your page behaves exactly as if Luria weren't installed.