SDK provides a method to instantiate a VWO client as an instance. The method accepts an object to configure the VWO client.
The only required parameter for instantiating the SDK is settings file. There are other optional parameters, which you could provide for overriding the default behavior or setting environment.
Below is the list of all parameters that can be used for configuring the VWO SDK.
|Object||The JSON representing your project and the campaign settings.|
|Boolean||Flag for experimenting the SDK on test-app/staging so that no impression is sent to the VWO server for tracking.|
|Object||The JSON representing the User Campaign Data Map. Used for sticky bucketing and deciding when to call Activate API vs. getVariationName API.|
|Object||Override default logger behaviour. Customise log-level, and implement your own log message.|
|String||If you want to track a particular goal across multiple campaigns(having the same identifier), use this flag to define which type of goal you would like to track i.e. conversion-only or revenue-only, or both. Defaults to ALL i.e. Conversion as well as Revenue goals.|
An instance of the VWO class, which can be referenced later for calling out different API methods.
import vwo settings_file = vwo.get_settings_file(account_id, sdk_key) vwo_client_instance = vwo.launch(settings_file)
Updated almost 2 years ago