Print execution logic to your browser's console.
Syntax
window["optimizely"].push(log);
Parameters
Parameter and Type | Child Attribute | Description |
---|---|---|
log | An object with the | |
type | Child attribute of type LogObject | The argument indicating that you're using the log function. Required. |
level | Child attribute of type LogObject | One of the following: |
Example Call
window["optimizely"].push({
"type": "log",
"level": "INFO"
});
Description
Tell Optimizely to output its log to the browser's console log (default is OFF
).
You can also do this by using the query parameter optimizely_log={level}
.
If you set the level
to the currently configured log level, this function has no effect other than generating a warning.
Updated about 3 years ago