This guide helps you troubleshoot problems with ShahiLandin’s A/B testing and experiment features.
Cannot Create Experiment
Symptom
Unable to create new A/B test or receive errors when attempting to set up experiments.
Solutions
Problem 1: Experiments Feature Not Enabled
Solution:
- Go to ShahiLandin → Settings → Features
- Find A/B Testing Experiments
- Check Enable Experiments
- Click Save Changes
- Page will reload with experiments functionality available
- Only administrators and editors can create experiments by default
- Check your user role in Users → Your Profile
- If you need to grant permissions to other roles:
- Experiments require a published parent landing page
- Go to Landing Pages
- Ensure the landing page is published (not draft)
- Try creating experiment again
- Experiment data stored in
wpshahilandinexperimentstable - Check if table exists in phpMyAdmin
- If missing, run migrations:
- Contact support if issue persists
- Go to Landing Pages → Experiments
- Find your experiment
- Check Status column
- If “Draft” or “Scheduled”, click Start Experiment
- Confirm starting the test
- Edit experiment
- Check Traffic Allocation section
- Ensure traffic split is configured:
- Update experiment
- Test in incognito window
- Variants assigned based on cookie/session
- If cache is too aggressive, same version always shown
- Exclude experiments from page cache:
- Clear all caches:
- You’ll see the same variant consistently
- To test different variants:
- Or disable sticky sessions temporarily:
- Go to Settings → Analytics
- Ensure Enable Analytics Tracking is checked
- Save Changes
- Statistics should start recording within minutes
- Verify landing page is receiving traffic:
- Drive traffic to landing page:
- Wait for statistical significance (see below)
- Disable page caching for experiments:
- For W3 Total Cache:
- For WP Rocket:
- Experiment tracking uses cookies for variant assignment
- Respect user consent:
- Alternative: Use server-side assignment (advanced, requires customization)
- Insufficient statistical significance:
- Check experiment dashboard:
- Manual winner declaration (override):
- After declaring winner, implement the winning variant:
- ShahiLandin doesn’t auto-replace content (by design)
- You control when/how to implement winning changes
- Edit experiment
- Set Conversion Goal:
- Update experiment
- Ensure landing page has conversion tracking:
Problem 2: Insufficient Permissions
Symptom: “You do not have permission to create experiments” error.
Solution:
– Add to theme’s functions.php:
`php
addfilter(‘shahilandinexperiment_capability’, function($cap) {
return ‘edit_posts’; // Or any capability
});
`
Problem 3: Parent Landing Page Not Published
Symptom: Can’t select landing page for experiment.
Solution:
Problem 4: Database Tables Missing
Symptom: General error when creating experiment.
Solution:
– Deactivate and reactivate plugin
– Or use WP-CLI: wp shahilandin migrate
Variants Not Displaying
Symptom
Created experiment with variants but visitors only see original version.
Solutions
Problem 1: Experiment Not Started
Solution:
Problem 2: Traffic Split Not Configured
Symptom: All traffic goes to control (original).
Solution:
– Control: 50%
– Variant A: 50%
– (Or any distribution totaling 100%)
Problem 3: Variant Assignment Logic Issue
Solution:
– Settings → Performance
– Uncheck Cache Experiment Pages
– Or add to caching plugin exclusions
– Browser cache
– Plugin cache
– CDN cache
Problem 4: Testing While Logged In
Symptom: Always see same variant when logged in.
Solution:
By default, logged-in admins are “sticky” to prevent skewing results:
– Test in different browsers
– Use incognito/private windows
– Log out and clear cookies
`php
addfilter(‘shahilandinexperimentstickyassignment’, ‘_returnfalse’);
`
Statistics Not Recording
Symptom
Experiment running but no statistics being collected.
Solutions
Problem 1: Analytics Disabled
Solution:
Experiments depend on analytics tracking:
Problem 2: Insufficient Traffic
Symptom: Experiment shows zeros or very low numbers.
Solution:
– Check landing page statistics separately
– If no traffic, experiment can’t collect data
– Share on social media
– Run ads
– Send email campaign
Problem 3: Cache Preventing Tracking
Symptom: Views tracked on regular pages but not experiment variants.
Solution:
– Caching plugins often cache experiment pages
– Add experiment URLs to exclusions
– Example URL pattern: /landing-page/?variant=*
– Performance → Page Cache → Advanced
– Never cache the following pages:
`
/landing-page/
`
– Settings → Advanced Rules
– Never Cache URLs:
`
/landing-page/(.*)
`
Problem 4: Cookie Consent Blocking
Symptom: Users who decline cookies not tracked.
Solution:
– Users who decline may not be included in experiment
Winner Declaration Issues
Problem 1: Cannot Declare Winner
Symptom: “Declare Winner” button disabled or not available.
Solution:
– Need minimum sample size and confidence level
– ShahiLandin requires:
– At least 100 views per variant
– 95% confidence level
– Detectable difference between variants
– View experiment details
– Look for “Statistical Significance” indicator
– If not reached, continue running experiment
`bash
wp shahilandin experiment declare-winner
`
Problem 2: Winner Declared But Nothing Changes
Symptom: Declared winner but original version still shows.
Solution:
– Edit parent landing page
– Replace content with winning variant content
– Publish changes
Conversion Tracking Not Working
Symptom
Views tracked but conversions show zero for all variants.
Solutions
Problem 1: Conversion Goals Not Defined
Solution:
– Goal Name: e.g., “Form Submit”
– Goal Type: Click, Form Submit, or Custom Event
`html
`
Problem 2: Conversion Tracking Code Missing
Solution:
Add conversion tracking manually to landing page:
`html
`
Problem 3: Conversion Goal Mismatch
Symptom: Tracking conversions but not showing in experiment stats.
Solution:
Ensure goal names match exactly:
form_submitform_submitVariant Content Issues
Problem 1: Variants Look Identical
Symptom: Created different variants but they look the same on frontend.
Solution:
– Edit experiment
– Check each variant’s content
– Ensure changes are substantial enough to notice
– Browser cache
– Plugin cache
– CDN cache
– Open multiple incognito windows
– Each should show different variant
– Look for the differences you configured
Problem 2: Cannot Edit Variant Content
Symptom: Variant editor doesn’t save changes.
Solution:
`sql
SELECT * FROM wpshahilandinexperiments WHERE id =
`
Problem 3: Variant HTML/CSS Broken
Symptom: Variant displays but layout is broken.
Solution:
– CSS changes should be scoped
– HTML changes should maintain structure
– Add ?variant=variant-a to URL
– Check if variant displays correctly
– Fix HTML/CSS issues in variant editor
Traffic Distribution Problems
Problem 1: Uneven Traffic Split
Symptom: 50/50 split configured but one variant gets 70% of traffic.
Solution:
– Small sample sizes show uneven distribution
– Distribution evens out over time
– Need at least 1000+ total visitors
– Use WP-CLI to verify:
`bash
wp shahilandin experiment stats
`
– If page cached, same variant served repeatedly
– Disable caching for experiment pages (see above)
Problem 2: Everyone Gets Same Variant
Symptom: No distribution happening at all.
Solution:
– Users assigned to variant via cookie
– Same user always sees same variant (by design)
– Test with different browsers/devices
– Check experiment status (must be “Running”)
– Verify traffic split adds up to 100%
`javascript
// Add to landing page temporarily
console.log(‘Assigned Variant:’, shahilandinExperiment.getCurrentVariant());
`
Duration and Timing Issues
Problem 1: Experiment Runs Too Long
Symptom: Experiment running for weeks with no clear winner.
Solution:
– Calculate required sample size
– Use calculator: https://www.optimizely.com/sample-size-calculator/
– If traffic is too low, either:
– Run longer
– Drive more traffic
– Declare manual winner
– If variants are very similar, harder to detect winner
– Consider more dramatic changes
`bash
Stop experiment after 30 days regardless
wp shahilandin experiment schedule-stop
`
Problem 2: Experiment Stops Automatically
Symptom: Experiment stops before reaching significance.
Solution:
– View experiment in admin
– Look for error messages
`bash
wp shahilandin experiment start
`
Data and Reporting Issues
Problem 1: Confidence Level Not Showing
Symptom: Statistics show but no confidence indicator.
Solution:
– Need minimum 100 views per variant
– Need at least some conversions
Problem 2: Conflicting Results
Symptom: ShahiLandin shows different winner than external tools.
Solution:
Different tools may use different statistical methods:
- ShahiLandin: Chi-square test, 95% confidence
- Google Optimize: Bayesian inference
- VWO: Frequentist approach
- ShahiLandin focuses on simple A/B testing
- For multivariate testing:
- Don’t run experiments on same page:
- If both needed:
- Different tracking methods:
- Check tracking implementation:
- Accept small differences as normal
- ✅ Set clear hypothesis before starting experiment
- ✅ Calculate required sample size before starting
- ✅ Disable caching for experiment pages
- ✅ Test one change at a time for clear results
- ✅ Run until statistical significance reached
- ✅ Monitor regularly for issues
- ✅ Document results for future reference
- ✅ Implement winner promptly after declaring
- ✅ Archive completed experiments to keep data clean
- ✅ Don’t stop early even if one variant seems to win
- ✅ Statistical significance reached (95% confidence)
- ✅ Minimum sample size achieved (100+ per variant)
- ✅ Clear winner emerged
- ✅ Maximum duration reached (e.g., 30 days)
- ✅ Business needs require decision
- ❌ One variant ahead after first few visitors
- ❌ Daily traffic too low (wait for more data)
- ❌ Results fluctuating day-to-day
- Check experiment status in admin dashboard
- Review experiment logs (if debug enabled)
- Test in isolation (disable other plugins)
- Verify analytics working on regular landing pages first
- Export data and share with support
- Provide details:
- A/B Testing Experiments Feature Guide
- Analytics Tracking Issues
- Cache and Plugin Conflicts
Results may vary slightly. Trust the tool you’re primarily using.
Problem 3: Cannot Export Data
Symptom: Want to export experiment data for external analysis.
Solution:
Use WP-CLI to export:
`bash
Export experiment data to CSV
wp shahilandin experiment export
Get detailed statistics
wp shahilandin experiment stats
`
Multivariate Testing Issues
Problem: Testing Multiple Changes Simultaneously
Symptom: Want to test headline AND button color but ShahiLandin only supports A/B testing.
Solution:
– Run sequential tests:
– Test headline first (A vs B)
– Implement winner
– Then test button color (A vs B)
– Create combined variants:
– Variant A: New headline + Blue button
– Variant B: New headline + Red button
– Variant C: Old headline + Blue button
– (Creates full factorial design)
Integration with Other Tools
Problem 1: Google Optimize Conflict
Symptom: Running both ShahiLandin experiments and Google Optimize causes issues.
Solution:
– Use ShahiLandin OR Google Optimize per page
– Not both simultaneously
– Disable ShahiLandin experiments for specific pages
– Add to page meta or use filter:
`php
addfilter(‘shahilandindisableexperiments’, function($disabled, $postid) {
if ($post_id == 123) { // Page with Google Optimize
return true;
}
return $disabled;
}, 10, 2);
`
Problem 2: Analytics Discrepancy
Symptom: ShahiLandin shows different numbers than Google Analytics.
Solution:
– ShahiLandin: First-party tracking
– GA: May be blocked by ad blockers
– Ensure GA tracking also sends variant data
– Add custom dimension in GA for variant
Advanced Troubleshooting
Enable Experiment Debug Mode
Add to landing page HTML (testing only):
`html
`
This logs all experiment decisions to browser console.
Check Experiment Data in Database
`sql
— Get experiment details
SELECT * FROM wpshahilandinexperiments WHERE id =
— Get variant assignments
SELECT variant_id, COUNT(*) as assignments
FROM wpshahilandinanalytics
WHERE postid =
GROUP BY variant_id;
— Get conversions by variant
SELECT variant_id, COUNT(*) as conversions
FROM wpshahilandinanalytics
WHERE post_id =
AND experiment_id =
AND goal IS NOT NULL
GROUP BY variant_id;
`
Use WP-CLI for Experiment Management
`bash
List all experiments
wp shahilandin experiment list
Get experiment details
wp shahilandin experiment get
Start experiment
wp shahilandin experiment start
Stop experiment
wp shahilandin experiment stop
Delete experiment
wp shahilandin experiment delete
Get statistics
wp shahilandin experiment stats
Declare winner
wp shahilandin experiment declare-winner
Delete all variants
wp shahilandin experiment delete-variants
`
Best Practices for Reliable Experiments
To avoid common issues:
When to Stop an Experiment
Stop an experiment when:
Don’t stop when:
Getting Help
If experiment issues persist:
– Experiment ID
– Expected behavior vs actual
– Sample size and duration
– Screenshots of configuration
—
Related Articles:
Share this article
Still need help?
Our support team is ready to assist you with personalized guidance for your workspace.