Landing page optimization is a process that involves improving elements on a website to increase conversions. In the context of Statsig, it usually involves running A/B tests between multiple versions of landing pages to understand which version performs better in terms of user engagement and conversion.
The process starts with creating an experiment on the Statsig console. You then add parameters to the experiment, which in this case would be the URLs of the landing pages you want to test. Once the experiment is set up, you start it and copy the API key and experiment name for later use.
Next, you add an HTML snippet to the head section of your landing pages. This snippet includes the API key and experiment name you copied earlier. When a user lands on either of the landing pages, Statsig will automatically redirect them to the one they are allocated to as part of the experiment, ensuring an even split of traffic between the two pages.
You can monitor the setup in real time through the Diagnostics Tab in your experiment. This shows a stream of the page loads along with the variant they were allocated. You can also interpret the results of the experiment by going to the Pulse Results tab, where you can add metrics you want to monitor and verify which variant is performing better.
Statsig also supports running experiments with more than two variants (ABC or ABn tests) and using layers to run multiple landing page experiments sequentially. To run experiments as part of a layer, you update the script to specify the layer ID instead of the experiment ID.
Finally, to add the script in a CMS like Webflow or Contentful, you open the Pages tab, click the 'Settings' gear icon next to the landing page, and add the script snippet in the 'Custom Code' section.