Set SDK Environment

Setting up the environment for your application is critical. We strongly recommend you to use this setting carefully. The default environment is set to production, which means that the VWO SDK will send events to the VWO server for tracking visitors and conversions along with actions like bucketing variation, checking eligibility of a user to become part of a campaign, assigning a variation to a user, and so on.

EnvironmentTypeDefault
isDevelopmentModeBooleanfalse

🚧

NOTE

You must set the environment to isDevelopmentMode: true if you're experimenting with the SDK.

var settingsFile = await vwoSDK.getSettingsFile(accountId, sdkKey);

var vwoClientInstance = vwoSDK.launch({
  isDevelopmentMode: true, // Set this for DEVELOPMENT
  settingsFile: settingsFile
});
<?php

require_once('vendor/autoload.php');

use vwo\VWO;

$settingsFile = VWO::getSettingsFile($accountId, $sdkKey);

$config=[
  'settingsFile'=>$settingsFile,
  'isDevelopmentMode'=>true // Set this for DEVELOPMENT
];
$vwoClientInstance = new VWO($config);
import vwo

settings_file = vwo.get_settings_file(account_id, sdk_key)

vwo_client_instance = vwo.launch(settings_file, is_development_mode=True)
using VWOSdk;

Settings settingsFile = VWO.GetSettings(accountId, sdkKey);
IVWOClient vwoClient = VWO.Instantiate(settingsFile, isDevelopmentMode: true);
import com.vwo.VWO;

String settingsFile = VWO.getSettingsFile(accountId, sdkKey);

VWO vwoInstance = VWO.launch(settingsFile)
                  .withDevelopmentMode(true)
                  .build();
is_development_mode = true

vwo_client_instance = VWO.new(account_id, sdk_key, custom_logger, UserStorage.new, is_development_mode, settings_file)
settingsFile := vwo.GetSettingsFile("accountId", "sdkKey")

// Instance with custom options
instance, err := vwo.Launch(settingsFile, api.WithDevelopmentMode())
if err != nil {
	//handle err
}