Understand what’s saved permanently vs. what resets each session
Not all analytics settings work the same way. Some are permanently saved to your WordPress database, while others only last for your current browsing session. Understanding the difference helps you set up your ideal workflow once and have it ready every time you return. 💾
🗂️ Two Types of Settings
💾
Permanently Saved
Stored in WordPress database
- 🎨 Color Palette selection
- 📊 Export element toggles
- 🏷️ Legend size preference
- 📋 Stat card order & visibility
- 🏢 White label / agency branding
✅ Survives: Page refreshes, browser restarts, different devices (same WordPress user)
⏱️
Session Only
Resets when you leave the page
- 📦 Selected products
- ⏱️ Time range selection
- 📈 Chart type (line/bar/area)
- 👁️ View mode
- 👥 Visitor type filter
- 💰 Show conversions toggle
⚠️ Resets: Every page load returns to defaults
🎨 Saving Your Color Palette
Your color palette choice is saved automatically and instantly when you select it—no save button required!
Colors:
Vibrant▼
✅ Auto-saved to database
🔧 How It Works
// When you select a new palette:
1. Chart updates instantly (no refresh needed)
2. AJAX request saves to WordPress database
3. Option stored:wkv_color_palette
4. Next visit: Your palette loads automatically
💡 Pro Tip: The default palette is Insight. If you prefer a different theme, select it once and it becomes your new default forever!
⚙️ Saving Export Settings
Unlike color palettes, export settings require you to click the 💾 Save Settings button:
📊 What Gets Saved
🏷️ Legend Size
📋 Chart Title & Date Range
📈 Summary Statistics
🕐 Export Timestamp
📊 Stat Card Selections
↕️ Stat Card Order
🏢 White Label Toggle
✏️ Agency Name 💾 Save Settings
📁 Storage Location
| Database Option: | wkv_export_settings |
| Data Format: | Serialized PHP array |
| Saved Via: | AJAX request to wkv_save_export_settings |
⏱️ Session-Only Settings (Why They Reset)
The following settings intentionally reset each session because they’re context-dependent—what you needed yesterday isn’t necessarily what you need today:
📦
Selected Products
Default: Top 10 by view count (auto-selected)
⏱️
Time Range
Default: Last 7 Days
📈
Chart Type
Default: Line Chart
👁️
View Mode
Default: All Products Combined (Total)
👥
Visitor Type
Default: All Real Views
💰
Show Conversions
Default: Off (unchecked)
🤔 Why Not Save Everything? Imagine selecting “Last 24 Hours” for a quick check, then forgetting about it. A week later, you’d wonder why your charts only show one day! Session defaults ensure you always start with a useful, comprehensive view.
📊 Quick Reference Table
| Setting | Persists? | How Saved | Default Value |
|---|---|---|---|
| 🎨 Color Palette | ✅ | Auto (AJAX) | Insight |
| ⚙️ Export Options | ✅ | 💾 Button | All off except stat cards |
| 📋 Stat Card Order | ✅ | 💾 Button | Card 1-4, Conv 1-4 |
| 🏷️ Legend Size | ✅ | 💾 Button | Miniature |
| 📦 Selected Products | ❌ | Session | Top 10 by views |
| ⏱️ Time Range | ❌ | Session | 7 Days |
| 📈 Chart Type | ❌ | Session | Line |
| 👁️ View Mode | ❌ | Session | Combined |
🚀 Setting Up Your Ideal Workflow
🎯 One-Time Setup Checklist
- Choose your color palette — Select from the Colors dropdown (auto-saves)
- Click ⚙️ Customize — Open the export options panel
- Set legend size preference — Miniature, Full-Size, or None
- Toggle export elements — Title, Stats, Products, Timestamp
- Arrange stat cards — Drag to reorder, uncheck to hide
- Configure white label (optional) — Add agency branding
- Click 💾 Save Settings — Stores everything to database
- Done! — Your preferences load automatically every visit
✅ Success Indicator: After clicking “Save Settings,” the button briefly shows “✓ Saved!” and you’ll see a console log confirming the save. Your settings are now permanent until you change them.