enableDebug
Enables debug mode, which will output console logs to help verify changes made.
RebuyExperiments.enableDebug()
disableDebug
Disables debug mode, which will silence console logs.
RebuyExperiments.disableDebug()
run
Runs an experiment and applies the provided changes immediately. This method accepts two arguments experiment
and useCookie
.
RebuyExperiments.run(experiment, useCookie)
Argument | Description |
---|---|
experiment | Required. This can be a string identifying an object to enable such as 'smart cart' or '12345'. Alternatively, this can be an object with two mandatory properties ( |
useCookie | Optional. Boolean flag to use a session based cookie to automatically apply the experiment on subsequent page loads. This defaults to |