Use Optimizely with UserZoom

Learn how to use Optimizely with UserZoom.

Plan Availability: Essentials, Professional, International, and Premium
👥 User roles: Owner, Admins, and Researchers
For more information, see our article on how to find your plan and user role.


On this page:



About Optimizely

  • Optimizely adds cookies to the participant’s browser, depending on the website variant displayed.
  • These cookies allow you to:
    • Find which variant was viewed.
    • Trigger different Site Intercepts for each variant.
  • When used in conjunction with UserZoom Manager, you can ask participants specific questions about their experience based on the variant they see.



Recruiting & Data Segmentation

  1. Your first step is determining which recruiting method will fit your needs:
  2. To segment results, your best bet is to create one unique study and have multiple segments. This allows you to analyze the results together and/or apply filters.
  3. Alternatively, depending on your needs, you can either create different tasks in the same study or create different studies.
  4. Site Intercepts, Feedback Tabs, or Invitation Links are unique per study and per segment, so there will always be a way to identify where participants were intercepted.



Site Intercept / Feedback Tab (Recommended)

  1. Create one study with a unique Navigation task.
  2. Add the segments with Site Intercept or Feedback Tab as the collector type. Create one segment per variant to be tested.
  3. Get the javascript code for either the Site Intercept or Feedback Tab.
  4. In Optimizely, select your experiment and open it.
  5. Once in your experiment, choose the variant to edit.
  6. Click on the Variation Code Editor, situated on the top right side.
  7. Insert the Site Intercept javascript code specific for that segment (make sure you are in the Javascript tab).
  8. Choose the option "Asynchronous timing".
  9. Save & Apply.
  10. You can also make sure visitors only get intercepted once, regardless of the variant they see, by unchecking Use a different cookie for each collector segment or manually change the cookie name.




Invitation Links

These steps require some degree of coding experience. Contact Oracle Maxymiser support if further assistance is needed.

  1. Create a study with multiple Navigation tasks.
  2. Add an initial URL for each variant by inserting the extra URL parameter
    • How to find the Experiment ID?
      1. In Optimizely, go to your experiments.
      2. Click the one you are working on.
      3. Scroll to the bottom to see the ID it the bottom right side.
    • How to find the Variation Index? 
      The Variation Index parameter is the number of variations. (For example,
  3. Randomize tasks so only one of them is shown.
    • This prevents you from analyzing the results of all tasks together.
    • If you want to apply filters through segments or if you want to analyze the results of all variants together, Advanced Tracking is required.



Advanced Tracking

  • When websites share the same URLs, the clickstream displays participant paths together, and doesn't separate them based on the website shown (variant A or B).
  • To analyze the paths (if variant A or website B was shown) both together and separated when no other data segmentation was applied, use the _UZ_trackPageURL_ variable to uniquely identify each page.
  • To do so, follow these steps:
    1. Replace the original URL with the value of the variable.
      • This new parameter the one the UserZoom platform collects and displays in the Clickstream.
      • For example, by modifying the original URL (‘full URL’) with a fake one (‘Variant A Full URL).
    2. Add this javascript to each page of both websites:
      if (typeof(optimizely) != "undefined" && optimizely.variationMap.hasOwnProperty(EXPERIMENTID)) {
      variationIndex = optimizely.variationMap[EXPERIMENTID];
      _UZ_trackPageURL_ = "https://URLExperiment/variation" + variationIndex + ".com";
    3. Replace ‘Full URL’ with the actual URL you want to send back to the UserZoom platform.
      Keep in mind that the content of _UZ_trackPageURL_ must start with the ‘http(s)://’ protocol (For example, _UZ_trackPageURL_=”http(s)://<Variant A>”;)).


Please provide any feedback you have on this article. Your feedback will be used to improve the article and should take no more than 5 minutes to complete. Article evaluations will remain completely confidential unless you request a follow-up. 

Was this article helpful?
2 out of 2 found this helpful