Print execution logic to your browser's console.
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 emitting a warning.
Note
Only affects tracking snippet logs, not edge-decider/microsnippet which only can be delivered via
?optimizely_log
.
window.optimizelyEdge.push(log);
window.optimizelyEdge.push({
"type": "log",
"level": "INFO"
});
Parameters
This table provides general information about required and optional parameters.
Parameter | Type | Description |
---|---|---|
Log | object | An object with the |
Log.type | string | The argument indicating that you are using the log function. |
Log.level | string | One of the following:
|