I'm looking to try and run my test through manual activation because there's a few ajax calls on the site.
And do I keep the original optimizely script if so?
These two codes:
it depends. You may add it to your ajax-scripting on your website, which means "outside" optimizely. Your ajaxComplete-function may probably fire to often, so be careful.
I usually add custom events to any ajax-function on the website, so i can add event-listeners within my variation or experiment-code, which trigger the execution of the variations.
As far as i know you can not "activate" an experiment from within an experiment which has not been activated.
It is a chicken-and-egg problem :-)