A/B testing: This is quite similar to trials, except that users are selected randomly within a controlled experiment. This method is quite common in web design and is used to identify which changes can increase the conversion rates. The following is how such a view can be written: def my_view(request): if sample_is_active(request, 'new_design'): # Behavior for test sample.