Skip to content

WooCommerce Integration

Integrate WooCommerce with CustomerLabs to track user behavior, capture ecommerce events, and unify customer profiles for better marketing performance across your martech stack.

The WooCommerce integration consists of two components:

The CustomerLabs WordPress plugin automatically tracks:

  • Product Viewed
  • Category Viewed
  • Add to Cart
  • Remove from Cart
  • Checkout Initiated
  • Purchase Completed

When an order is created in WooCommerce:

  • A webhook sends enriched order data
  • CustomerLabs processes the payload
  • Customer profiles are updated automatically
  • Ensure you have admin access to your WooCommerce (WordPress) store and an active CustomerLabs account.
  • The WooCommerce REST API must be enabled to send purchase data via webhooks.
  1. Log in to your WordPress Admin panel

  2. Navigate to: Plugins → Add New

    CustomerLabs WooCommerce plugin installation
  3. Search for CustomerLabs

  4. Click Install Now

  5. Click Activate

    CustomerLabs WooCommerce plugin settings
  1. Log in to CustomerLabs

  2. Copy your Account ID from the dashboard

  3. Go to: WordPress → Plugins → CustomerLabs → Settings

    CustomerLabs WooCommerce event tracking settings
  4. Paste the Account ID into the CustomerLabs App ID field

  5. Click Save

    CustomerLabs WooCommerce event tracking settings

In the plugin settings, enable the following events:

  • Product Viewed
  • Category Viewed
  • Add to Cart
  • Remove from Cart
  • Checkout Initiated
  • Purchase

Click Save Settings.

CustomerLabs WooCommerce event tracking settings

3. Create WooCommerce Source in CustomerLabs

Section titled “3. Create WooCommerce Source in CustomerLabs”

CustomerLabs requires API access to receive enriched order data.

  1. Navigate to: WooCommerce → Settings → Advanced → REST API

  2. Click Add Key

    WooCommerce REST API key generation
  3. Enter the following details:

    FieldValue
    DescriptionCustomerLabs Integration
    UserAdmin
    PermissionsRead/Write
  4. Click Generate API Key

    WooCommerce REST API key generation

You will receive a Consumer Key (ck_...) & Consumer Secret (cs_...). Save these securely.

WooCommerce REST API key generation

Step 3.2: Configure Source in CustomerLabs

Section titled “Step 3.2: Configure Source in CustomerLabs”
  1. Log in to CustomerLabs

  2. Navigate to Sources

  3. Select WooCommerce

    CustomerLabs WooCommerce source configuration
  4. Enter the following:

    FieldValue
    Store Domainyourdomain.com
    Consumer Keyck_xxxxx
    Consumer Secretcs_xxxxx
  5. Click Save

    CustomerLabs WooCommerce source configuration

After saving:

  • A unique Workflow URL will be generated

  • Webhook configuration will be automatically enabled

    CustomerLabs WooCommerce source configuration

Webhooks are created automatically during setup.

To Verify:

  1. Go to: WooCommerce → Settings → Advanced → Webhooks

  2. Confirm the following:

    FieldExpected Value
    NameCustomerLabs Integration
    StatusActive
    TopicOrder Created
    Delivery URLWorkflow URL from CustomerLabs
    SecretEmpty
    API VersionDefault
WooCommerce webhook configuration verification

After source creation, you can use pre-built templates:

  • CL_All_Purchasers: Captures all WooCommerce orders.
  • WooCommerce Repeat Users: Triggers when a returning customer places an order.
  • WooCommerce New Users: Triggers for first-time customers.