Running tests server side makes it possible to run experiments on pricing or other aspects handled by your back-end. It’s also a great way to make sure there is no blinking at all for large changes.
To run a server-side test, simply:
1. Create an experiment in SiteGainer
2. Create the variations you intend to have ( you can leave them empty, or add some additional code that you might want to run in combination with your server-side changes )
3. Set your Goals
4. In Audience – choose manual activation ( at the top ). The audience will not be used with server-side testing.
5. Start the test
When this is done, run this basic logic in you server side code ( This example is in PHP ):
<?php // Set the project ID ( Found in the SiteGainer dashboard $sg_project_id = 19221323; // Randomize varitation | rand(0, 2) = 3 variations | 0 is always Original $sg_variation_id = rand(0, 2); ?>
When running SiteGainer, pass the variation like this:
A psuedo-code example:
Please contact us for further assistance with server-side testing!