ShahiLanding

A/B Testing and Experiments Issues

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:

  1. Go to ShahiLandin → Settings → Features
  2. Find A/B Testing Experiments
  3. Check Enable Experiments
  4. Click Save Changes
  5. Page will reload with experiments functionality available
  6. Problem 2: Insufficient Permissions

    Symptom: “You do not have permission to create experiments” error.

    Solution:

  7. Only administrators and editors can create experiments by default
  8. Check your user role in Users → Your Profile
  9. If you need to grant permissions to other roles:
  10. – 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:

  11. Experiments require a published parent landing page
  12. Go to Landing Pages
  13. Ensure the landing page is published (not draft)
  14. Try creating experiment again
  15. Problem 4: Database Tables Missing

    Symptom: General error when creating experiment.

    Solution:

  16. Experiment data stored in wpshahilandinexperiments table
  17. Check if table exists in phpMyAdmin
  18. If missing, run migrations:
  19. – Deactivate and reactivate plugin
    – Or use WP-CLI: wp shahilandin migrate

  20. Contact support if issue persists
  21. Variants Not Displaying

    Symptom

    Created experiment with variants but visitors only see original version.

    Solutions

    Problem 1: Experiment Not Started

    Solution:

  22. Go to Landing Pages → Experiments
  23. Find your experiment
  24. Check Status column
  25. If “Draft” or “Scheduled”, click Start Experiment
  26. Confirm starting the test
  27. Problem 2: Traffic Split Not Configured

    Symptom: All traffic goes to control (original).

    Solution:

  28. Edit experiment
  29. Check Traffic Allocation section
  30. Ensure traffic split is configured:
  31. – Control: 50%
    – Variant A: 50%
    – (Or any distribution totaling 100%)

  32. Update experiment
  33. Test in incognito window
  34. Problem 3: Variant Assignment Logic Issue

    Solution:

  35. Variants assigned based on cookie/session
  36. If cache is too aggressive, same version always shown
  37. Exclude experiments from page cache:
  38. – Settings → Performance
    – Uncheck Cache Experiment Pages
    – Or add to caching plugin exclusions

  39. Clear all caches:
  40. – 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:

  41. You’ll see the same variant consistently
  42. To test different variants:
  43. – Test in different browsers
    – Use incognito/private windows
    – Log out and clear cookies

  44. Or disable sticky sessions temporarily:
  45. `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:

  46. Go to Settings → Analytics
  47. Ensure Enable Analytics Tracking is checked
  48. Save Changes
  49. Statistics should start recording within minutes
  50. Problem 2: Insufficient Traffic

    Symptom: Experiment shows zeros or very low numbers.

    Solution:

  51. Verify landing page is receiving traffic:
  52. – Check landing page statistics separately
    – If no traffic, experiment can’t collect data

  53. Drive traffic to landing page:
  54. – Share on social media
    – Run ads
    – Send email campaign

  55. Wait for statistical significance (see below)
  56. Problem 3: Cache Preventing Tracking

    Symptom: Views tracked on regular pages but not experiment variants.

    Solution:

  57. Disable page caching for experiments:
  58. – Caching plugins often cache experiment pages
    – Add experiment URLs to exclusions
    – Example URL pattern: /landing-page/?variant=*

  59. For W3 Total Cache:
  60. – Performance → Page Cache → Advanced
    – Never cache the following pages:
    `
    /landing-page/
    `

  61. For WP Rocket:
  62. – Settings → Advanced Rules
    – Never Cache URLs:
    `
    /landing-page/(.*)
    `

    Problem 4: Cookie Consent Blocking

    Symptom: Users who decline cookies not tracked.

    Solution:

  63. Experiment tracking uses cookies for variant assignment
  64. Respect user consent:
  65. – Users who decline may not be included in experiment

  66. Alternative: Use server-side assignment (advanced, requires customization)
  67. Winner Declaration Issues

    Problem 1: Cannot Declare Winner

    Symptom: “Declare Winner” button disabled or not available.

    Solution:

  68. Insufficient statistical significance:
  69. – Need minimum sample size and confidence level
    – ShahiLandin requires:
    – At least 100 views per variant
    – 95% confidence level
    – Detectable difference between variants

  70. Check experiment dashboard:
  71. – View experiment details
    – Look for “Statistical Significance” indicator
    – If not reached, continue running experiment

  72. Manual winner declaration (override):
  73. `bash
    wp shahilandin experiment declare-winner
    `

    Problem 2: Winner Declared But Nothing Changes

    Symptom: Declared winner but original version still shows.

    Solution:

  74. After declaring winner, implement the winning variant:
  75. – Edit parent landing page
    – Replace content with winning variant content
    – Publish changes

  76. ShahiLandin doesn’t auto-replace content (by design)
  77. You control when/how to implement winning changes
  78. Conversion Tracking Not Working

    Symptom

    Views tracked but conversions show zero for all variants.

    Solutions

    Problem 1: Conversion Goals Not Defined

    Solution:

  79. Edit experiment
  80. Set Conversion Goal:
  81. – Goal Name: e.g., “Form Submit”
    – Goal Type: Click, Form Submit, or Custom Event

  82. Update experiment
  83. Ensure landing page has conversion tracking:
  84. `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:

  85. Experiment goal name: form_submit
  86. Tracking code goal name: form_submit
  87. Case-sensitive, must match exactly
  88. Variant Content Issues

    Problem 1: Variants Look Identical

    Symptom: Created different variants but they look the same on frontend.

    Solution:

  89. Verify variant differences:
  90. – Edit experiment
    – Check each variant’s content
    – Ensure changes are substantial enough to notice

  91. Clear cache:
  92. – Browser cache
    – Plugin cache
    – CDN cache

  93. Test in incognito:
  94. – 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:

  95. Check browser console (F12) for JavaScript errors
  96. Disable other plugins temporarily (conflict test)
  97. Ensure sufficient permissions (admin/editor role)
  98. Try different browser
  99. If using custom variant storage, check database:
  100. `sql
    SELECT * FROM wpshahilandinexperiments WHERE id = ;
    `

    Problem 3: Variant HTML/CSS Broken

    Symptom: Variant displays but layout is broken.

    Solution:

  101. Each variant inherits parent page structure
  102. Make sure variant changes are compatible:
  103. – CSS changes should be scoped
    – HTML changes should maintain structure

  104. Test variant individually:
  105. – 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:

  106. Statistical variance is normal:
  107. – Small sample sizes show uneven distribution
    – Distribution evens out over time
    – Need at least 1000+ total visitors

  108. Check assignment logic:
  109. – Use WP-CLI to verify:
    `bash
    wp shahilandin experiment stats
    `

  110. Cache issues:
  111. – 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:

  112. Cookie persistence:
  113. – Users assigned to variant via cookie
    – Same user always sees same variant (by design)
    – Test with different browsers/devices

  114. Assignment logic disabled:
  115. – Check experiment status (must be “Running”)
    – Verify traffic split adds up to 100%

  116. Debug assignment:
  117. `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:

  118. Need more traffic:
  119. – 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

  120. Differences too small:
  121. – If variants are very similar, harder to detect winner
    – Consider more dramatic changes

  122. Set maximum duration:
  123. `bash

    Stop experiment after 30 days regardless

    wp shahilandin experiment schedule-stop –days=30
    `

    Problem 2: Experiment Stops Automatically

    Symptom: Experiment stops before reaching significance.

    Solution:

  124. Check if maximum duration was set
  125. Check if error occurred:
  126. – View experiment in admin
    – Look for error messages

  127. Restart experiment:
  128. `bash
    wp shahilandin experiment start
    `

    Data and Reporting Issues

    Problem 1: Confidence Level Not Showing

    Symptom: Statistics show but no confidence indicator.

    Solution:

  129. Insufficient data:
  130. – Need minimum 100 views per variant
    – Need at least some conversions

  131. Wait for more data or drive additional traffic
  132. 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
    • 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 –format=csv > experiment-data.csv

      Get detailed statistics

      wp shahilandin experiment stats –format=json
      `

      Multivariate Testing Issues

      Problem: Testing Multiple Changes Simultaneously

      Symptom: Want to test headline AND button color but ShahiLandin only supports A/B testing.

      Solution:

    • ShahiLandin focuses on simple A/B testing
    • For multivariate testing:
    • 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:

    • Don’t run experiments on same page:
    • – Use ShahiLandin OR Google Optimize per page
      – Not both simultaneously

    • If both needed:
    • – 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:

    • Different tracking methods:
    • – ShahiLandin: First-party tracking
      – GA: May be blocked by ad blockers

    • Check tracking implementation:
    • – Ensure GA tracking also sends variant data
      – Add custom dimension in GA for variant

    • Accept small differences as normal
    • 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 = AND experimentid =
      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:

    • 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
    • When to Stop an Experiment

      Stop an experiment when:

    • ✅ 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
    • Don’t stop when:

    • ❌ One variant ahead after first few visitors
    • ❌ Daily traffic too low (wait for more data)
    • ❌ Results fluctuating day-to-day
    • Getting Help

      If experiment issues persist:

    • 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:
    • – Experiment ID
      – Expected behavior vs actual
      – Sample size and duration
      – Screenshots of configuration

      Related Articles:

    • A/B Testing Experiments Feature Guide
    • Analytics Tracking Issues
    • Cache and Plugin Conflicts

Share this article

Was this article helpful?

Help us improve our documentation

Still need help?

Our support team is ready to assist you with personalized guidance for your workspace.

Submit a support ticket