Overview
Connect your WooCommerce store to automatically track orders and attribute sales to partners.Features
- Automatic order tracking - Orders create transactions automatically
- Coupon integration - Partner coupons track referrals
- Customer syncing - WooCommerce customers synced to Partnero
- Subscription support - Works with WooCommerce Subscriptions
Setup
Step 1: Install Plugin
Install the Partnero plugin in WordPress:- Go to Plugins → Add New in WordPress admin
- Search for “Partnero”
- Click Install Now and then Activate
Step 2: Connect to Partnero
- Go to WooCommerce → Settings → Partnero
- Enter your Partnero API key
- Select your program
- Click Connect
Step 3: Configure Settings
Configure tracking options:| Setting | Description |
|---|---|
| Track All Orders | Create transactions for all orders |
| Sync Customers | Sync customer data to Partnero |
| Cookie Duration | How long referral cookies last |
How It Works
Order Tracking Flow
Attribution Methods
Orders are attributed via:- Referral Cookie - Customer clicked referral link before ordering
- Coupon Code - Customer used partner’s coupon at checkout
- Customer Match - Existing customer linked to partner
Coupon Integration
Creating Partner Coupons
Partners can have unique coupon codes:- Create coupon in WooCommerce
- Link coupon to partner in Partnero
- When used, order is attributed to partner
Automatic Coupon Sync
Enable automatic coupon creation:- Go to WooCommerce → Settings → Partnero → Coupons
- Enable Auto-create partner coupons
- Configure discount amount and type
Subscription Support
If using WooCommerce Subscriptions:Initial Purchase
First subscription payment creates transaction with commission.Renewals
Each renewal payment:- Creates new transaction
- Calculates commission (if recurring enabled)
- Updates partner’s balance
Subscription Management
Handled events:woocommerce_subscription_renewal_payment_completewoocommerce_subscription_status_changed
Tracking Script
The plugin automatically adds tracking to your store:Manual Installation
If not using the plugin, add tracking manually:Add to Theme
Add to your theme’sheader.php or via a custom plugin:
Track Orders via Webhook
Set up WooCommerce webhook:- Go to WooCommerce → Settings → Advanced → Webhooks
- Add webhook with URL:
https://api.partnero.com/v1/integrations/woocommerce/{program_id}/webhook - Select topic: Order created
Customer Sync
Sync WooCommerce customers to Partnero:Testing
Test Orders
Create test orders to verify integration:- Enable WooCommerce test mode
- Place test order with referral cookie set
- Verify transaction appears in Partnero
Debug Mode
Enable debug logging:- Go to WooCommerce → Settings → Partnero → Debug
- Enable debug mode
- Check logs in WooCommerce → Status → Logs
Troubleshooting
Orders not tracked
Orders not tracked
- Verify plugin is activated
- Check API key is correct
- Ensure webhook is configured
Partner not attributed
Partner not attributed
- Verify referral cookie is set
- Check coupon code is linked
- Test with debug mode enabled
Plugin conflicts
Plugin conflicts
- Disable other plugins to test
- Check JavaScript console for errors
- Update to latest plugin version
