use_findologic_with_google_analytics:a_b_testing_with_google_analytics

use_findologic_with_google_analytics:a_b_testing_with_google_analytics

This is an old revision of the document!


FINDOLOGIC offers the possibility to use A/B testing, so you can test the search of FINDOLOGIC in comparison to an alternative search engine.
By doing this you can easily compare metrics like revenue, bounce and many more between FINDOLOGIC and another search.


Requirements for A/B testing

Before reading this documentation make sure that

  • Google Analytics is running properly.
  • Basically you can use any A/B-testing-tool like Google Optimize, Optimizeley, AB Tasty, etc., which allows you to insert Javascript for a certain segment.
  • We recommend Google Optimize and the following documentation will show an example implementation using Google Optimize.
Direct Integration is required to be able to do A/B testing.

Implementation

Go to Google Optimize and click on Create Experiment:

Create Experiment


A sidebar should popup, where you have to set the following values:

  • Name: Does not matter, can be set to anything you like, e.g. FINDOLOGIC A/B.
  • URL: URL of the site to test, e.g. https://www.shop.com
  • Type: A/B test

After those values are set, click on Create.

Create AB test


In your A/B test, open the tab Targeting and click on the pencil next to Evaluate on page load.

Evaluate


A sidebar should popup, where you have to set the following values:

  • Evaluate on: Custom event
  • Event name: optimize.activate

After those values are set, click on Done.

Evaluate on custom event


Now click on Create Rule and afterwards on URLs. Now set the value to

After this value is set, click on Add.

URL rule


In your A/B test open the tab Objectives and select some objectives.

  • Objectives: some objectives, Recommended: page views, transactions

Objectives


As next step, contact the FINDOLOGIC Support (support@findologic.com) in order to activate A/B testing for your service.

After FINDOLOGIC has activated A/B testing for your service, create a New Variant in your Google Optimize account:

  • Variant: Non-FINDOLOGIC

Variant Non-FINDOLOGIC


Open the variant in the editor. Make sure the Google Optimize extension is installed in your Chrome browser.

Variant in editor


Next up select the head element, by clicking on the rectangle left at the top of the page and type head in the input field.
Afterwards click on Add Change and choose JavaScript.

Choose element


Now paste the following JavaScript code in there:

flRequire(["directIntegration", "flUtils"], function(directIntegration, flUtils) {
  flUtils.Logger.info("Disabling FINDOLOGIC for A/B Test");
  directIntegration.disableFindologic();
});

In the dropdown at the bottom, choose After opening tag and click on Apply.

Save JavaScript snippet


Last but not least, click on Save and Done to save the variant.

Start the experiment.