Change WordPress Theme automatically for A/B test

The way we did it was by setting up separate WordPress setups on subdomains:

  • theme1.ourcompany.org
  • theme2.ourcompany.org
  • theme3.ourcompany.org

We used a server script cooked up by the IT Administrator to route users at random to either one of the subdomains. The difference in domain names made for a clear distinction between datasets when we compiled the analytics.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)