Website builders — Wix, Squarespace, Webflow
One snippet in the site header and you're tracking. Each builder has its own place to paste it — find yours below.
How this works
All three builders let you inject code into your site's <head>. You paste one line — the AdsPing snippet from your pixel detail page — and pb.js starts tracking immediately:
<!-- AdsPing pb.js -->
<script async src="https://api.adsping.io/pb.js" data-pixel-id="YOUR_PIXEL_ID"></script>- Automatic, no extra code: PageView on every page, click-id capture (
fbclid→fbc), form auto-capture with hashed email/phone, and the Meta browser pixel auto-injected for deduplication. - One manual step each: conversion events like
LeadandPurchase— covered in Lead & Purchase events below, with the honest limits of each builder.
Wix
- Open your site's dashboard → Settings → Custom Code (under “Advanced”).
- Click + Add Custom Code and paste the AdsPing snippet.
- Name it
AdsPing, apply it to All pages, and set placement to Head. - Click Apply. Done — no publish step needed.
Purchase event isn't possible on Wix Stores. Track Lead and PageView normally; for Purchase, fire it from your backend via the server-to-server path.Squarespace
- Open Settings → Advanced → Code Injection.
- Paste the AdsPing snippet into the Header box.
- Click Save. It's live on every page.
Selling on Squarespace Commerce? Squarespace gives you a dedicated Order Confirmation Page box in the same Code Injection screen (Commerce plans). Paste a Purchase call there and fill the value from the order variables Squarespace exposes in that box — see their code injection docs for the variable names available on your plan.
Webflow
- Open your project's Site Settings → Custom Code.
- Paste the AdsPing snippet into Head Code.
- Save, then Publish your site — Webflow only applies custom code on publish.
Selling with Webflow Ecommerce? The order confirmation page is a normal designable page: drop an Embed element on it with an adsping('track', 'Purchase', …) call, binding the value fields from the order data Webflow exposes on that page.
Lead & Purchase events
pb.js auto-captures form submits on standard forms, but builder forms are sometimes rendered in ways it can't see. The most reliable pattern on all three builders is a thank-you page:
- Set your form to redirect to a dedicated page after submit (e.g.
/thank-you) — all three builders support this in their form settings. - Add a page-level code injection on that page only (Wix: Custom Code → “Choose specific pages”; Squarespace: page settings → Advanced; Webflow: page settings → Custom Code) with:
<script>
adsping('track', 'Lead', {
content_name: 'Contact form'
});
</script>That's a complete Lead event — pb.js attaches the visitor's click id, cookies, and any identify data automatically. Full parameter reference: Track Lead.
- Purchase: Squarespace and Webflow — use the order-confirmation slots described above. Wix Stores — server-to-server only (checkout is locked).
- Everything else (AddToCart, ViewContent, …) works anywhere you can add a page or embed-level script — same pattern, different event name. See the event picker.
Verify the install
- Open your published site in a fresh browser tab.
- In AdsPing, open the pixel detail page — it shows “Last event: a few seconds ago” within ~10 seconds (that's the automatic PageView).
- Then connect Meta if you haven't yet: After install — connect Meta.