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.
wixsite.com address, custom code is not available.
Install the snippet
- In Clickport, add your site and copy your tracking snippet:
<script defer data-domain="yoursite.com"
src="https://clickport.io/tracker.js"></script>
- In your Wix dashboard, go to Settings and open Custom Code (under Development & integrations).
- Click + Add Custom Code and paste the snippet.
- Under "Place Code in", choose Head.
- 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.
- Save. Then visit your site and check the realtime view for your own visit.
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.
- In Clickport, go to Settings → Goals & funnels and click Add goal.
- Name it Purchase, choose the Pageview type, and set the condition to Path contains
/thank-you-page. - Save. Purchases start counting from the next order.
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.
- In Clickport, go to Settings → API keys and create a key. Copy it (it starts with
ck_and is shown only once). - In your Wix dashboard, open Automations and create a new automation. As the trigger, pick An order is placed.
- Add a step and choose the Send HTTP request action.
- 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 ofck_your_key. - 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), andcurrency. - 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.
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
- Installation - The platform-independent guide
- Troubleshooting - If no data shows up
- Forms - How form submissions are tracked
- Revenue API - Send sales and refunds from any system