I'm trying to do some simple split testing on a category page, but W3 Cache is causing some issues.
To do the split testing, I randomly select a layout (either grid or horizontal), then I store it in a $_SESSION variable so that the page is the same for that user while they're on the site.
Then on the category-slug.php page, I just do an if statement to determine what layout to display based on the value in the $_SESSION variable.
It is all working fine, except W3 Cache is caching the page. So the $_SESSION will have a grid layout value, but a horizontal layout will actually be displayed. Obviously this skews my data.
I'd rather not disable W3 Cache since it helps reduce our page load time. Anyone have any ideas?