3

I am considering a major adjustment to the search-input feature on a website.

This search feature appears on many pages.

I do have e-commerce operating in Google Analytics.

I have glanced at Google Analytics Experiments, but this seems to be more for individual pages and I am looking to measure the performance of a site-wide feature.

What is a clean way to A/B test this new search-input feature in Google Analytics, measured by e-commerce conversion rate?

1 Answer 1

1

A simple way to show one of two options is using PHP:

if ( rand(1, 2) == 1 ) {

  // show test feature
  // Google Analytics tag or event

}

else {

  // show default feature
  // Google Analytics tag or event

}

This will show each option evenly over time. Personally I would trigger Analytics events to track the results, but there are probably many tracking options available.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.