AB Test Pages Management Guide

This directory contains AB test variants of main pages located in /_pages. When a user requests to "revert the AB pages back to control", follow these steps:

Revert Process

When reverting AB pages to control versions:

Step 1: Find Corresponding Control File

For each AB file in /ab-pages/, locate its corresponding control file in /_pages/ using the mapping table above.

Step 2: Compare Files

Check if the AB variant and control file have identical content:

Step 3: Copy Control to AB Variant

If files differ, copy the entire content from the control file (/_pages/filename.njk) to the AB variant file (/ab-pages/filename.njk).

Important Notes:

Common Differences to Watch For

  1. Brand Order: AB tests often test different brand rankings
  2. Brand Properties: Some brands may have additional properties like type or benefits
  3. Special Flags: AB variants may have unique configuration flags
  4. Content Structure: FAQs, descriptions, or other content may vary

Example Process

# 1. Compare files
diff _pages/top10hybrid.njk _pages/ab-pages/top10hybrid.njk

# 2. If different, copy control to AB variant
cp _pages/top10hybrid.njk _pages/ab-pages/top10hybrid.njk

# 3. Verify the copy was successful
diff _pages/top10hybrid.njk _pages/ab-pages/top10hybrid.njk