show_errors(); $id = (int)$_GET['id']; $exp = $wpdb->get_row($wpdb->prepare("SELECT * FROM ".$wpdb->prefix."abtest_experiments WHERE id=%d", $id)); $variation_stats = $wpdb->get_results($wpdb->prepare(" SELECT *, (SELECT COUNT(DISTINCT session_id) FROM ".$wpdb->prefix."abtest_variation_views WHERE variation_id=".$wpdb->prefix."abtest_variations.id AND ip NOT IN (SELECT ip FROM ".$wpdb->prefix."abtest_ip_filters)) AS views, (SELECT COUNT(DISTINCT ".$wpdb->prefix."abtest_variation_views.session_id) FROM ".$wpdb->prefix."abtest_variation_views INNER JOIN ".$wpdb->prefix."abtest_goal_hits ON ".$wpdb->prefix."abtest_goal_hits.session_id=".$wpdb->prefix."abtest_variation_views.session_id INNER JOIN ".$wpdb->prefix."abtest_goals ON ".$wpdb->prefix."abtest_goals.id=".$wpdb->prefix."abtest_goal_hits.goal_id WHERE ".$wpdb->prefix."abtest_variation_views.variation_id=".$wpdb->prefix."abtest_variations.id AND ".$wpdb->prefix."abtest_goals.experiment_id=".$wpdb->prefix."abtest_variations.experiment_id AND ".$wpdb->prefix."abtest_variation_views.ip NOT IN (SELECT ip FROM ".$wpdb->prefix."abtest_ip_filters) ) AS goal_hits FROM ".$wpdb->prefix."abtest_variations WHERE experiment_id=%d ORDER BY name ", $id)); $variations = $wpdb->get_results($wpdb->prepare("SELECT * FROM ".$wpdb->prefix."abtest_variations WHERE experiment_id=%d", $id)); $goals = $wpdb->get_results($wpdb->prepare("SELECT * FROM ".$wpdb->prefix."abtest_goals WHERE experiment_id=%d", $id)); ?>

Experiment

This is an overview of your name ?> experiment.
Edit experiment | Delete experiment

views > 0) { $rate = ($var->goal_hits / $var->views) * 100; if ($rate > $best_rate) { $best_rate = $rate; $best = $var; } if ($rate < $worst_rate) { $worst_rate = $rate; $worst = $var; } } } if ($best_rate == $worst_rate) { $worst = NULL; } ?>

Current statistics

name ?> is the best performing with a conversion rate of %.
name ?> is the worst performing performing with a conversion rate of %.

There is currently not enough data to display statistics.

How to use this experiment

This is a type ?> experiment.

type == 'content') { ?>

In posts, pages, or widgets, insert this code: [abtest experiment=""]
Or, as PHP code in themes etc.: <?php abtest_experiment() ?> or <?php echo abtest_get_experiment() ?>

type == 'stylesheet') { ?>

This experiment is automatically inserted into the stylesheet.

type == 'javascript') { ?>

This experiment is automatically inserted into the javascript.

To insert the name of the variation currently being displayed (e.g. in tracking etc.), insert this code: [abtest experiment="" variable="name"]
Or, as PHP code in themes etc.: <?php abtest_name() ?> or <?php echo abtest_get_name() ?>

For information on tracking goals, click Get tracking code below each goal below.

Variations

views; $goal_hits += $var->goal_hits; ?>
Variation Views Goal hits Conversion rate
name ?> active) { ?> (disabled)
Edit | active) { ?> Disable Enable | Delete
views ?> goal_hits ?> views > 0) { ?> goal_hits / $var->views) * 100, 2) ?>% -
Total 0) { ?> % -

Goals

The WordPress A/B Test plugin currently only supports showing statistics for one goal. You can, however, add more goals and these will be tracked for future use.

Goal
name ?>
Get tracking code | Edit | Delete

« Back to experiments