add optimizely code to header