Wix

Wix has a Custom Code panel for exactly this job. One snippet in the Head, applied to all pages, and Clickport tracks your whole site: pageviews, engagement, outbound clicks, forms, and frustration signals.

Requirements. Wix only runs custom code on a published site with a connected domain, and connecting a domain requires a Premium or Studio plan. On the free wixsite.com address, custom code is not available.

Install the snippet

  1. In Clickport, add your site and copy your tracking snippet:
<script defer data-domain="yoursite.com"
  src="https://clickport.io/tracker.js"></script>
  1. In your Wix dashboard, go to Settings and open Custom Code (under Development & integrations).
  2. Click + Add Custom Code and paste the snippet.
  3. Under "Place Code in", choose Head.
  4. Apply it to All pages and pick Load code once. The Clickport tracker detects page changes itself, so it must not be re-injected on every navigation.
  5. Save. Then visit your site and check the realtime view for your own visit.
Why Custom Code works for Clickport. Wix routes some big-name trackers (Google Analytics, Tag Manager, ad pixels) through its own marketing integrations and blocks them in Custom Code. Independent analytics snippets are exactly what the Custom Code panel is for, so Clickport installs without any integration.

Count your sales

After a store checkout, Wix shows a thank-you page at /thank-you-page. A pageview goal on that path counts every completed checkout, and every panel in your dashboard gains a conversion column: purchases per campaign, per channel, per country.

  1. In Clickport, go to Settings → Goals & funnels and click Add goal.
  2. Name it Purchase, choose the Pageview type, and set the condition to Path contains /thank-you-page.
  3. Save. Purchases start counting from the next order.
One blind spot. Buyers who pay with PayPal or Apple Pay see PayPal's own confirmation page first and only reach your thank-you page if they click back to your site. Those orders can be missed here. The automation below catches every order, no matter how it was paid.

Send revenue with an automation

Wix can tell Clickport about every order the moment it is placed, directly from Wix's servers. No code, and nothing a browser or ad blocker can lose. The amounts show up as the Revenue stat in your dashboard header and on the chart.

  1. In Clickport, go to Settings → API keys and create a key. Copy it (it starts with ck_ and is shown only once).
  2. In your Wix dashboard, open Automations and create a new automation. As the trigger, pick An order is placed.
  3. Add a step and choose the Send HTTP request action.
  4. Set the method to POST and the webhook URL to:
    https://clickport.io/api/revenue?api_key=ck_your_key
    with your key pasted in place of ck_your_key.
  5. For the body, choose Customize structure and add three fields, picking each value from the order with Wix's property picker: order_id (the order number), amount (the order total), and currency.
  6. Save and activate. The next order appears in your dashboard within a minute.

Sending the same order twice is fine: Clickport counts each order number only once, so Wix retries can never inflate your numbers.

What this can and cannot do. Wix only offers an "order is placed" trigger, so refunds are not sent automatically; if you need one recorded, a negative amount can be sent to the same Revenue API. And because the call comes from Wix's servers, the revenue is not tied to a specific visit or campaign - use the Purchase goal above for per-campaign conversion counts alongside the revenue totals.

Good to know

  • Wix sites navigate client-side on some sites and with full page loads on others, depending on which architecture your site runs. The tracker handles both automatically; that is also why "Load code once" is the right setting. See SPA Tracking.
  • "All pages" includes pages you create later, so new content is tracked without touching the settings again.
  • Exclude your own visits while building. See Exclude Your Visits.
  • For conversions like a booking or contact form, set up a goal in Clickport.

Related