WooCommerce Integration

Tracknow integrates with WooCommerce 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.


Methods of Integration

There are two supported methods for integrating Tracknow with a WooCommerce store:

Tracknow Plugin

Tracknow provides a plugin that can be installed on a WooCommerce store to enable purchase tracking

Postback

Implement the required scripts and configure postbacks to enable purchase tracking

Plugin
Postback

Simple installation process

More manual and technical implementation

A pre-configured set of purchase details are sent

Full control over which details are sent


Plugin Integration

Login to the WordPress admin dashboard → PluginsAdd Plugin → Search for the Tracknow for WooCommercearrow-up-right plugin → Install the plugin and activate it

Navigate to WooCommerceSettingsTracknow tab → Fill out the plugin configuration → Save Changes

Field
Description

Namespace (Mandatory)

Enter the Tracknow namespace to which data should be sent. This value is available in the Tracknow dashboard main menu

Default Campaign (Mandatory)

Enter the Tracknow Camapign ID to which data should be sent

Enable Tracking (Mandatory)

Check this checkbox to enable sending data (activates plugin data transfer)

Include Client Personal Info (Optional)

Check this checkbox in order to see client details for each conversion on Tracknow (First name, Last name, Email, Address)

Enable Lifetime Tracking (Mandatory if using lifetime)

Check this checkbox if your affiliate program associates a client with his referring affiliate for lifetime

Custom Coupon Meta Key (Mandatory if custom coupon field is used)

Specify the custom meta key you use to store coupon codes if it differs from the default WooCommerce order coupon field

Coupon Contains Filter (Optional)

Provide a string value to restrict data transmission to purchases that either include our unique affiliate identifier or use a coupon code containing that specified string

Thank You Page Pixel (Optional)

A fallback option that fires postbacks when client reaches the thank you page. Leave off by default

API Key (Optional)

Enter the Tracknow API key you generated to enable automatic syncing of conversion statuses from WooCommerce to Tracknow

Auto Approve on Completed (Optional)

Enable this checkbox to automatically approve conversions in Tracknow when the corresponding WooCommerce order reaches the “Completed” status

Auto Decline on Cancelled (Optional)

Enable this checkbox to automatically reject conversions in Tracknow when the corresponding WooCommerce order reaches the “Cancelled” status

Enable Debug Logs (Optional)

For Tracknow team troubleshooting only. Leave this option disabled unless instructed by our support team


Postback Integration

Login to the WordPress admin dashboard → Appearance Theme File Editor → Locate your current theme's functions.php file

Add the following code inside the functions.php file:

This script captures our unique identifier (click_id) from the URL query parameters and stores it in a browser cookie for later use.

It is added to your website’s header to ensure it loads and runs across all pages.

circle-info

If your website includes pages that are not powered by WordPress, you will need to manually add this script to those pages as well to ensure consistent tracking.

Next, add the following code to your theme’s functions.php file:

This code is responsible for gathering the order data, generating the postback URL and firing it to your Tracknow dashboard when the order is complete.

circle-info

Replace the {NAMESPACE} placeholder with your actual Tracknow namespace before pasting this code Replace the {CAMPAIGN ID} placeholder with your actual Tracknow campaign ID before pasting this code

Last updated