get_row($wpdb->prepare("SELECT * FROM ".$wpdb->prefix."abtest_goals WHERE id=%d", $id)); ?>

Tracking code

Here's information on how to track the goal name ?>.

To setup a goal page

If you have a destination page, post or widget for your experiment – like a product page, an order confirmation page etc. – insert the following code:

[abtest goal=""]

To track a link

If you want to track each time a user clicks on a link, insert a code on the link like this:

<a href="http://www.google.com" onclick="abtest.trackGoal(, this);">Go to Google</a>

To track manually

If you want to track the goal manually using JavaScript, insert the following code:

<script type="text/javascript">
  abtest.trackGoal();
</script>

« Back to experiment