How to migrate WhoKnew Views™ settings and data between WordPress sites
Migrating WhoKnew Views™ between WordPress sites—whether you’re moving to a new host, setting up a staging environment, or consolidating stores—requires attention to three components: settings, view data, and license activation.
📦 What Needs to Be Migrated
⚙️
Plugin Settings
Export/Import JSON file
📊
View Data
Database migration
🔑
Pro License
Deactivate → Reactivate
⚙️ Step 1: Export Plugin Settings
WhoKnew Views™ Pro includes a built-in Import/Export feature that creates a JSON backup of all your configurations:
📤 What Gets Exported
General Settings
- View window duration
- Display text template
- Number padding config
- Soft cap settings
Variation & Drop Rate
- Variation ranges (1-3)
- Variance percentages
- Activity thresholds
- Living Baseline drift
Presets & Visibility
- Custom user presets
- Active preset selection
- Smart Visibility Modes
- Green/Blue/Purple configs
Admin & Styling
- All styling settings
- IP Whitelist entries
- Custom bot patterns
- Email notifications
How to Export:
- Go to WhoKnew → WhoKnew Views → General tab
- Scroll down to the Import/Export Settings section
- Click Export Settings
- Save the
whoknew-views-settings.jsonfile
💡 Pro Tip:Export your settings regularly as a backup. If your Pro license expires and you later renew, you can restore all your settings instantly.
📥 Step 2: Import Settings on New Site
After installing both Free and Pro plugins on the new site and activating your license, import your settings:
- Go to WhoKnew → WhoKnew Views → General tab
- Scroll to Import/Export Settings
- Select your import option (see below)
- Click Choose File and select your JSON export
- Click Import Settings
Import Options:
| Option | What It Does | Best For |
|---|---|---|
| Import All Settings | Overwrites ALL current settings with backup | Full site migration |
| Import Custom Presets Only | Imports presets; preserves styling | Sharing presets between sites |
| Import Styling Settings Only | Imports styling; preserves presets & logic | Matching visual branding |
📊 Step 3: Migrate View Data
View data (real views, lifetime totals, achievements) is stored in the WordPress database as product post meta. This data is not included in the plugin’s JSON export—it requires database migration.
📂 View Data Storage Locations
| Real View Timestamps | product_views (post meta) |
| Lifetime Total Views | _wkv_total_real_views_ever (post meta) |
| Padded Views | _wkv_padded_views (post meta) |
| Per-Product Settings | _wkv_custom_settings (post meta) |
| Achievements | wkv_*_achievements (wp_options) |
Migration Methods:
🔄
Full Site Migration
Using migration plugins (Duplicator, All-in-One WP Migration, UpdraftPlus) or manual database export includes all WhoKnew Views™ data automatically.
✅ Recommended for full moves
📤
WordPress Export/Import
Using Tools → Export → Products includes product meta data. Import with WP All Import or similar tool.
⚠️ May require meta mapping
🗄️
Database-Level Migration
Export/import the wp_postmeta and wp_options tables. Search-replace old domain with new.
🔧 For advanced users
🔑 Step 4: Transfer Your Pro License
Pro licenses are domain-locked for security. To use your license on the new site, you must first deactivate it on the old site:
OLD
On the Old Site
- Go to WhoKnew → WhoKnew Views → License
- Click Deactivate License
- Confirm you see: “License deactivated successfully. You can now use it on another domain.”
NEW
On the New Site
- Install both WhoKnew Views (Free) and WhoKnew Views Pro
- Go to WhoKnew → WhoKnew Views → License
- Enter your license key and click Activate License
- Import your settings JSON file (Step 2)
⚠️ Important:If you can’t access the old site (it’s down or deleted), contact WhoKnew Support with your license key to have it manually released.
✅ Complete Migration Checklist
Before Migration (Old Site)
- ☐ Export settings JSON from General tab
- ☐ Download the JSON file to your computer
- ☐ Deactivate Pro license in License tab
- ☐ Complete your database/site migration
After Migration (New Site)
- ☐ Install WhoKnew Views (Free) from WordPress.org
- ☐ Install WhoKnew Views Pro
- ☐ Activate Pro license
- ☐ Import settings JSON (select “Import All Settings”)
- ☐ Verify view counts appear on product pages
- ☐ Check Insights tab shows analytics data
- ☐ Test a product page in incognito to confirm tracking
🎯 Special Scenarios
Staging/Development Sites
For staging environments, you have options:
- Same License: Some license tiers (Growth, Agency) include multiple site activations—one for production, one for staging.
- Free Only: Run staging with just the Free plugin to test without using a license slot.
- Temporary Deactivation: Deactivate production, activate staging, test, then reverse.
Starting Fresh (No Data Migration)
If you want settings but not view data:
- Install plugins on new site (fresh WooCommerce)
- Activate license
- Import your settings JSON
- View counts start at zero (or your configured padding baseline)
Your presets, styling, and configurations transfer—view history does not. Multi-Site License (Growth/Agency)
If you have a Growth (3 sites) or Agency (10 sites) license:
- You can activate on the new site without deactivating the old one (if you have available slots)
- Export/import settings to match configurations across sites
- Each site has independent view data and analytics
🔧 Technical Reference
| Export AJAX Action | wkv_export_settings |
| Import AJAX Action | wkv_import_settings |
| Settings Option Key | whoknew_views_settings |
| Custom Presets Key | wkv_user_presets |
| License Deactivate API | whoknew.io/wp-json/whoknew/v1/deactivate |
| File Location | includes/admin/import-export.php |