optimizely.push("log") is returning undefined
I am trying to see the Optimizely log, but when I execute optimizely.push("log") in the browser console, is returning "undefined".
Any idea why it's not working?
1- Verify that optimizely is on the page you are looking at.
2- If it is, try just "optimizely" to make sure it is defined. If it is not, then there may be an issue with your snippet (I have never seen a corrupted Optimizely snippet, just speaking theoretically).
thanks for your answer, the optimizely Object exists, but not the push("log"). Maybe is a problem with the quotation mark, because if I paste the code that is shown in the data object guide
optimizely.push(“log”) I get a syntax error. So I try different quotations marks, but no works ("" and '')
PD: optimizely object exists
Your console message has smart-quotes in it
Rather than pasting it in, type it in by hand.
Also, if you click on the word "Object" you can view all of the contents of the optimizely object so as to verify if the .push() method exists or not.
Hi @Harrison_Krat the url is this one:
Experiment ID: Experiment 3874071286
@nap0leon I also tried to write manually, but I got the same error.
optimizely.push('log') works fine for me:
on the page, I was placed into the experiment/variation:
"Room Display COM: rewards message save 5% instead of price - save 5% message"