using A/B theme testing with wpengine caching

We have made some changes in the plugin to have it working with GA universal sending theme name as a custom dimension. It is running fine on our dev installation but it is not working on the production site. The only difference between both installations is the host.

Dev site is on our dedicated server without any caching plugin whereas the production site is on wpengine enterprise plan with page caching.

It is not lettign the cookie work properly so theme gets switched randomly on each page refresh.

Is there anything which can be done to resolve this issue? May be using javascript insead of php to handle cookies.

Would appreciate your help.

  • Ash

    Hello @chodhry

    I hope you are well today and thanks for asking the question.

    Unfortunately, this plugin was not designed to work with caching plugins, due to the type of plugin. It needs to be able to switch themes on-the-fly, so it can't show a cached version as that just wouldn't work correctly.

    WPEngine uses server cache to cache the web pages, so it doesn't matter if you use js or php cookie.

    Would you please consider to ask WPEngine support about this issue? They maybe able to use any rule to exclude this from caching.

    Cheers
    Ash

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.