Converting the Drupal 7 version of the Optimizely module to Drupal 8