We ran these three experiments in Optimizely, and found that the produced good results. These experiments covered a variety of changes related to promotional offers.
The three experiments packaged here were named:
- WSL-16 | HP Promo Popup
- WSL-15 | $20-off Promo (HP Banner)
- WSL-14 | $20-off Promo (HP, PDP, Accessories, Cart)
WSL-16 Adds a popup promotion to the homepage. The promo looks like this.
WSL-15 Adds a promotional banner across the top of the HP (homepage). It looks like this.
WSL-14 Augments the price of the whistle product across multiple pages, subtracting a $20 discount and displaying a promotional code. It adds things like this.
Code samples below describe what we did to create these experiments.
Note to developers: Some of this code uses some basic ECMAScript 2015 features. Your final code may or may not make use of these features. Namely, we use Template Literals and Arrow Functions.
Please note: This code was created to run a lean, cost effective experiment. This should be used as a starting point to accelerate your efforts, not as something to directly copy/paste and deploy without running this through your standard production styleguide and QA processes.
We are happy to answer whatever questions you might have along the way!