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.




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

settingsFile := vwo.GetSettingsFile("accountId", "sdkKey")

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