Split Dashboard

<% if @experiments.any? %>

The list below contains all the registered experiments along with the number of test participants, completed and conversion rate currently in the system.

<% @experiments.each do |experiment| %>

<%= experiment.name %>

" method='post' class='reset' onclick="return confirmReset()">
<% total_participants = total_completed = 0 %> <% experiment.alternatives.each do |alternative| %> <% total_participants += alternative.participant_count %> <% total_completed += alternative.completed_count %> <% end %>
Alternative Name Participants Non-finished Completed Conversion Rate Z-Score Winner
<%= alternative.name %> <%= alternative.participant_count %> <%= alternative.participant_count - alternative.completed_count %> <%= alternative.completed_count %> <%= number_to_percentage(alternative.conversion_rate) %>% <% if experiment.control.conversion_rate > 0 && !alternative.control? %> <% if alternative.conversion_rate > experiment.control.conversion_rate %> +<%= number_to_percentage((alternative.conversion_rate/experiment.control.conversion_rate)-1) %>% <% elsif alternative.conversion_rate < experiment.control.conversion_rate %> <%= number_to_percentage((alternative.conversion_rate/experiment.control.conversion_rate)-1) %>% <% end %> <% end %> <%= round(alternative.z_score, 3) %> <% if experiment.winner %> <% if experiment.winner.name == alternative.name %> Winner <% else %> Loser <% end %> <% else %>
<% end %>
Totals <%= total_participants %> <%= total_participants - total_completed %> <%= total_completed %> N/A N/A N/A
<% end %> <% else %>

No experiments have started yet, you need to define them in your code and introduce them to your users.

Check out the Readme for more help getting started.

<% end %>