This article will help you:
  • Integrate Delacon and Optimizely so that phone call conversions can be attributed to Optimizely experiments
  • Create a custom event so that Delacon can track conversion types
Delacon is a call-tracking platform that allows you to attribute phone call conversions to Optimizely experiments.

Thanks to Delacon for providing the relevant code, instructions, and screenshots in their Optimizely Setup Guide!

You can configure Optimizely and Delacon to work together so that you can see "offline" phone conversions alongside online conversions. This article will show you how to set up the integration.

  1. Log in to Optimizely and create a new experiment
  2. Copy and paste the following code into the Experiment Javascript section of your experiment:
    /* _optimizely_evaluate=force */
     window.exTrStr = JSON.stringify(window.optimizely.variationNamesMap);
    /* _optimizely_evaluate=safe */

  3. In the Optimizely Editor, click the Goals icon () and then Create a New Goal. Select Custom Events and add "delacon_call" as your custom event value.

  4. Log in to Delacon
  5. Click the Integrations tab and select Optimizely

  6. Select your c_ID

  7. Make sure you hit save!
  8. In order to pick up the Optimizely value, you will also need to modify the Delacon call tracking code on your website from the standard implementation.

    You'll need to modify the two lines that set values for cids and extTrkStr. These should be changed from:

    cids = "12345";
     extTrkStr = "whatever";


    window['optimizely'] = window['optimizely'] || []; window['optimizely'].push({ type: 'integration', OAuthClientId: '5371465072' });
    cids = cids || "12345";
    extTrkStr = extTrkStr || "whatever";
  9. You are all set! If someone calls the number on your page, a conversion will be created for the Delacon call goal you have set up in Optimizely. The Results Page will look like this: