WIX Integration

Tracknow integrates with WIX stores to automatically transmit data for completed purchases into your Tracknow dashboard. This enables accurate tracking and attribution of purchases made by customers referred by your affiliates.


Prerequisites

Both integration methods require you to enable passing our unique affiliate identifier click_id to your landing page. For instructions, click herearrow-up-right.


Integration

On your Wix dashboard navigate to SettingsCustom Code → Add Custom Code to the head section and choose to load code on each new page.

<script>
import wixLocation from 'wix-location';
import { local } from 'wix-storage';

$w.onReady(function () {
  const clickId = wixLocation.query.click_id;

  if (clickId) {
    local.setItem("click_id", String(clickId));
  }
});
</script>

Next, enable Velo Dev Mode for your website if it isn't on already.

Click My Store on the left menu → Store PagesThank You Page

Add an HTML embedded code by clicking AddMoreEmbeds on the left menu.

Add the following code:

circle-info

Replace the {namespace} placeholder with your actual Tracknow namespace before pasting this URL. Replace the {campaign ID} placeholder with your actual Tracknow campaign ID before pasting this URL.

Add the following code to the Thank You Page code page and replace ‘thankYouPage1’ ID to the actual thank you page ID if it’s different and also replace embedded html id from “html3” to the ID Wix generated for that element.

Last updated