Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Steven Vachon

    (@prometh)

    Something like this could be added to optimizely.php:

    if (get_post_meta(get_the_ID(), 'optimizely_experiment_status', true) != 'Running') {
    
    }

    …but such changes would be lost on the next update.

    Plugin Author moravemj

    (@moravemj)

    We can’t know if an experiment is running on the page until after the Optimizely script is downloaded and run. This is because we evaluate on every page load whether to run the experiment or not.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Conditional script enqueue per page?’ is closed to new replies.