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)); ?>
This is an overview of your name ?> experiment.
Edit experiment
|
Delete experiment
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.
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() ?>
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.
| 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) { ?> % - |
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 |