How Long Visitors See the Same View Count
When a visitor views your product, WhoKnew Views™ Pro remembers their displayed count using a browser cookie. The Cookie Lifespan setting controls how long that memory lasts before resetting.
From the plugin settings:
“Set the lifespan (in hours) of the cookie that stores the displayed view count for each user. For example, setting this to 3 hours means the displayed count will remain consistent for 3 hours before resetting.”
📍 Where to Find This Setting
Cookie Lifespan is located on the Variation tab:
- Navigate to WhoKnew → WhoKnew Views → Variation tab
- Scroll to the “Cookie Lifespan (Hours)” field
- Enter your desired value (default: 5 hours)
- Click Save Changes
🔄 How Cookie Lifespan Works
When a visitor lands on your product page:
VISITOR JOURNEY WITH 5-HOUR COOKIE LIFESPAN
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
10:00 AM - First Visit
├── Cookie set: expires at 3:00 PM
├── View counted: YES (new visitor)
├── Displayed count: 247 views
└── Variations applied: +5 views added
10:15 AM - Same Visitor Returns
├── Cookie found: still valid
├── View counted: NO (already counted)
├── Displayed count: Same 247 views
└── Variations: None (within cooldown)
12:30 PM - Same Visitor Returns Again
├── Cookie found: still valid
├── View counted: NO
├── Displayed count: Same 247 views
└── Variations: May apply if cooldown expired
3:15 PM - Same Visitor Returns
├── Cookie EXPIRED (past 5 hours)
├── View counted: YES (treated as new)
├── Displayed count: Now shows 278 views
└── New cookie set: expires at 8:15 PM⚡ Interaction with Refresh Cooldown
Cookie Lifespan works alongside the Refresh Cooldown setting:
| Setting | Controls | Default |
|---|---|---|
| Refresh Cooldown | Time between variation triggers | 7 minutes |
| Cookie Lifespan | Total session memory duration | 5 hours |
Key distinction:
- Refresh Cooldown: How often THIS visitor can trigger new variations during their session
- Cookie Lifespan: When THIS visitor is treated as “new” again
🎚️ Choosing the Right Lifespan
| Lifespan | Best For | Behavior |
|---|---|---|
| 1-2 hours | Flash sales, limited-time offers | Frequent resets, more counting |
| 3-5 hours (default) | General e-commerce | Balanced consistency |
| 6-12 hours | Longer browsing sessions | Extended consistency |
| 24+ hours | Daily shoppers, research buyers | Day-long memory |
Shorter Lifespan (1-3 hours)
- ✅ Returning visitors see updated counts more often
- ✅ More opportunities to count repeat visits
- ✅ Better for fast-paced sales environments
- ⚠️ Visitors may notice count changes during long browsing sessions
Longer Lifespan (6-24 hours)
- ✅ Consistent experience for returning visitors
- ✅ Research buyers see same count all day
- ✅ Reduces perception of manipulation
- ⚠️ Fewer variation triggers from same visitors
⚠️ Zone 3 Validation
WhoKnew Views™ Pro validates that your Cookie Lifespan is long enough for visitors to reach Zone 3 (the highest variation tier). If not, you’ll see an error:
“Invalid Configuration: Zone 3 requires [X] minutes, but cookie expires at [Y] minutes. Users will be reset before Zone 3 becomes reachable. Please increase Cookie Lifespan to at least [Z] hours or lower Threshold 3 to [N]%.”
Why this matters: Zone 3 triggers the highest variation ranges (+9 to +19 by default). If cookies expire before visitors can reach Zone 3, they’ll never trigger those larger variations. The system prevents this misconfiguration.
🔐 Dual Tracking System
WhoKnew Views™ Pro uses a robust dual-tracking system that works even when cookies are blocked:
// From view-counter-logic.php
// ROBUST VIEW TRACKING: Works with or without cookies (incognito-friendly)
// Create unique visitor fingerprint (IP + User-Agent)
$visitor_fingerprint = md5($remote_addr . '|' . $user_agent);
// Dual tracking:
// 1. Browser cookie (best persistence, works across sessions)
// 2. Server-side transient (works for incognito users)This means:
- Normal browsers: Cookie provides session memory
- Incognito/private mode: Fingerprint-based tracking still works
- Cookie blockers: Server-side fallback prevents duplicate counting
📊 Cookie Types Used
WhoKnew Views™ Pro uses two distinct cookies for different purposes:
| Cookie Type | Duration | Purpose |
|---|---|---|
| Session Cookie | Your Cookie Lifespan setting | Prevents duplicate counting, maintains consistent display |
| Lifetime Cookie | 90 days (fixed) | Tracks first-time vs. returning visitors for analytics |
The 90-day lifetime cookie is separate from Cookie Lifespan and is used for the First-Time vs. Returning Visitors analytics feature.
💡 Best Practices
For Most Stores
- Use 5-8 hours: Covers typical shopping sessions
- Match your audience behavior: Consider when customers typically return
- Test with simulation: Run simulations to see how different values affect growth
For Flash Sales
- Use 1-2 hours: Faster resets during intense browsing
- Increase variation ranges: Take advantage of more frequent triggers
- Monitor carefully: Shorter lifespans mean more active counting
For High-Consideration Products
- Use 12-24 hours: Research buyers return multiple times
- Ensure consistency: Same count during decision-making process
- Build trust: Stability throughout purchase journey
⚙️ Related Settings
- Refresh Cooldown: Minutes between variation triggers (Variation tab)
- Variation Thresholds: Percentages for Zone 1/2/3 timing (Variation tab)
- View Window: Hours for rolling count display (General tab)