Rich-text Reply

Switching pages in SPA - window.optimizely.push(["activate"]) does no changes

vasanthk 02-23-16

Switching pages in SPA - window.optimizely.push(["activate"]) does no changes

Hi,

 

I am using a single page app framework and I trigger a button color change.

It seems to work fine on first load. But, when I switch betwen pages and get bakc to the same page, I do call 

window.optimizely.push(["activate", EXPERIMENT_ID]);

 

but nothing changes and it looks liek the optimizely.activeExperiments array is also set to empty.

Really doesn't seem to work the ay the docs mention. Any help on this would greatly help us in adopting Optimizely.

 

Thanks,

Vasanth

Level 2

DavidS 02-24-16
 

Re: Switching pages in SPA - window.optimizely.push(["activate"]) does no changes

Hi vasanthk,

 

Thanks for reaching out!

 

I understand that you are experiencing an issue with the activate call not firing after a couple pageviews on an AngularJS app. 

 

Would you mind posting a link to your website so I can have a look?  If you don't want to share the URL publicly, you can pm me directly the link.

 

Can you please also send me a link to the docs you are referring to? 

 

Best regards,

David

 

Optimizely