All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Support for Redis user storage
- Fixed issue with Advanced implementation of MEG
- Adding same goal identifier in goal identifier map
- Issue with multiple trigger goals and goals with where condition not getting triggered multiple times if user storage connected
- When a same user becomes part of multiple similar campaigns they should get different variations
- Send environment key for event arch accounts
- Check for user storage if campaign has MAB enabled
- Support for user IP Address and browser user agent to help with bot elimination, IP specific opt out and more options for post segmentation
- Modified the revenueProp logic to read from eventProperties for Data360 enabled accounts
- Updated the code to check for existence of eventProperties and access the revenueProp property accordingly
- Update bucketing logic so that variation remains unchanged even after changing campaign traffic distribution. Note: it will not cater the case when user was not part of campaign earlier but started becoming part of campaign after changing the campaign traffic distribution and vice versa.
- Added functionality for support for EU accounts
- Added new Mutually Exclusive Group implementation with Priority Campaigns and Traffic Allocation
- Fix
NullReferenceException
in case of using event-batching and not configuring custom logger
- Support for new operators >, <, >=, <= to be used in Targeting conditions using Custom Variables added to the SDK.
- fixed track revenue-goal issue, where
revenueValue
was being sent as null.
- Downgrade
Newtonsoft.Json
version from v13.0.1 to v12.0.2
- Update Newtonsoft.Json version from v11 to v13
- A tracking call wto VWO server was not being made when the feature was not enabled for the campaign's variation in case of
Feature Test
campaign. This was a bug and is fixed now. - Fixes a bug when User Storage Service is used and
isFeatureEnabled
API is called for the returning visitor, it was always returningfalse
. - Add missing log for returning visitor in case of
isFeatureEnabled
API
-
Support for pushing multiple custom dimensions at once. Earlier, you had to call
push
API multiple times for tracking multiple custom dimensions as follows:bool isSuccessful = vwoClient.Push("browser", "chrome", userId); bool isSuccessful = vwoClient.Push("price", "20", userId);
Now, you can pass a dictionary
public static Dictionary<string, dynamic> customDimensionMap = new Dictionary<string, dynamic>() { { "browser", "chrome" }, { "price", "10" } }; bool isSuccessful = vwoClient.Push(customDimensionMap, userId);
Multiple asynchronous tracking calls would be initiated in this case.
-
Pass meta information from APIs to the User Storage Service's
set
method.Dictionary<string, dynamic> Options = new Dictionary<string, dynamic>() {{ "metaData", new Dictionary<string, dynamic>() { { "extrainfo", "some data" } } }}; var variationName = vwoClient.Activate(campaignKey, userId, Options);
Same for other APIs -
GetVariationName
,Track
,IsFeatureEnabled
, andGetFeatureVariableValue
.
-
If Events Architecture is enabled for your VWO account, all the tracking calls being initiated from SDK would now be
POST
instead ofGET
and there would be single endpoint i.e./events/t
. This is done in order to bring events support and building advancded capabilities in future. -
For events architecture accounts, tracking same goal across multiple campaigns will not send multiple tracking calls. Instead one single
POST
call would be made to track the same goal across multiple different campaigns running on the same environment. -
Multiple custome dimension can be pushed via
push
API. For events architecture enabled account, only one single asynchronous call would be made to track multiple custom dimensions.public static Dictionary<string, dynamic> customDimensionMap = new Dictionary<string, dynamic>() { { "browser", "chrome" }, { "price", "10" } }; bool isSuccessful = vwoClient.Push(customDimensionMap, userId);
- Introducing support for Mutually Exclusive Campaigns. By creating Mutually Exclusive Groups in VWO Application, you can group multiple FullStack A/B campaigns together that are mutually exclusive. SDK will ensure that visitors do not overlap in multiple running mutually exclusive campaigns and the same visitor does not see the unrelated campaign variations. This eliminates the interaction effects that multiple campaigns could have with each other. You simply need to configure the group in the VWO application and the SDK will take care what to be shown to the visitor when you will call the
activate
API for a given user and a campaign.
- Remove
shouldTrackReturningVisitor
option as FullStack campaigns show unique visitors and conversions count. Duplicate visitors/conversions tracking calls would not be made if User Storage Service is used.
-
Feature Rollout and Feature Test campaigns now supports JSON type variable which can be created inside VWO Application. This will help in storing grouped and structured data.
-
Use Campaign ID along with User ID for bucketing a user in a campaign. This will ensure that a particular user gets different variation for different campaigns having similar settings i.e. same campaign-traffic, number of variations, and variation traffic.
-
Sending stats which are used for launching the SDK like storage service, logger, and integrations, etc. in tracking calls(track-user and batch-event). This is solely for debugging purpose. We are only sending whether a particular key(feature) is used not the actual value of the key
-
Sending visitor tracking call for Feature Rollout campaign when
isFeatureEnabled
API is used. This will help in visualizing the overall traffic for the respective campaign's report in the VWO application. -
Removed sending user-id, that is provided in the various APIs, in the tracking calls to VWO server as it might contain sensitive PII data.
-
SDK Key will not be logged in any log message, for example, tracking call logs.
campaignName
will be available in integrations callback, if callback is defined.
- Expose lifecycle hook events. This feature allows sending VWO data to third party integrations.
internal class HookCallback : IntegrationEventListener
{
public void onEvent(Dictionary<string, dynamic> properties)
{
string payLoad = JsonConvert.SerializeObject(properties);
CustomLogger logger = new CustomLogger();
logger.WriteLog(LogLevel.DEBUG, "onEvent call from SDK: " + payLoad);
}
}
VWO.Launch(SettingsFile, integrations: new HookManager() { HookCallback = new HookCallback() });
-
Send environment token in every network call initiated from SDK to the VWO server. This will help in viewing campaign reports on the basis of environment.
-
If User Storage Service is provided, do not track same visitor multiple times. You can pass
shouldTrackReturningUser
as true in case you prefer to track duplicate visitors.
VWOClient = VWO.Launch(SettingsFile, userStorageService: new UserStorageService(),
shouldTrackReturningUser: true);
- Introduce
integrations
param inLaunch
API to enable receiving hooks for the third party integrations.
-
Webhooks support
- New API
GetAndUpdateSettingsFile
to fetch and update settings-file in case of webhook-trigger
- New API
-
Added support for batching of events sent to VWO server
- Intoduced
batchData
config in launch API for setting when to send batched events - Added
FlushEvents
API to manually flush the batch events queue whne batchEvents config is passed. Note: batchData config i.e.EventsPerRequest
andRequestTimeInterval
won't be considered while manually flushing
- Intoduced
Settings settingsFile = VWO.GetSettingsFile(accountId, sdkKey);
BatchEventData batchData = new BatchEventData();
batchData.EventsPerRequest = 100;
batchData.RequestTimeInterval = 86400;
batchData.FlushCallback = new FlushCallback();
IVWOClient vwoClientInstance = VWO.Launch(settingsFile, batchData = batchData);
userStorageData
key can be passed in options parameter for utilizing already fetched storage data. It also helps in implementing the asynchronous nature of the User Storage Service's get method. For more info read this.
- Update track API to handle duplicate and unique conversions and corresponding changes in
Launch
API - Update track API to track a goal globally across campaigns with the same
goalIdentififer
and corresponding changes inLaunch
API
// it will track goal having `goalIdentifier` of campaign having `campaignKey` for the user having `userId` as id.
vwoClientInstance.Track(campaignKey, userId, goalIdentifier, options);
// it will track goal having `goalIdentifier` of campaigns having `campaignKey1` and `campaignKey2` for the user having `userId` as id.
vwoClientInstance.Track(new List<string>() { campaignKey1, campaignKey2 }, userId, goalIdentifier, options);
// it will track goal having `goalIdentifier` of all the campaigns
vwoClientInstance.Track(userId, goalIdentifier, options);
//Read more about configuration and usage - https://developers.vwo.com/reference#server-side-sdk-track
- When there is no campaign running,
GetSettingsFileFile
API does not output correct result. This is now handled by validating it.
Forced Variation capabilites
- Introduced
Forced Variation
to force certain users into specific variation. Forcing can be based on User IDs or custom variables defined.
- All existing APIs to handle custom-targeting-variables as an option for forcing variation
- Code refactored to support Whitelisting.
- variationTargetingVariables argument support added in APIs:
activate
,getVariationName
,track
,isFeatureEnabled
, andgetFeatureVariableValue
.
Dictionary<string, dynamic> options = new Dictionary<string, dynamic>()
{
{
"custom_variables": new Dictionary<string, dynamic>()
{
{"value", 10}
}
}
};
Dictionary<string, dynamic> options = new Dictionary<string, dynamic>()
{
{
"customVariables", new Dictionary<string, dynamic>()
{
{"price", 100.1}
},
"variationTargetingVariables", new Dictionary<string, dynamic>()
{
{"team", "qa-internal"}
}
}
};
CreateInstance
API is renamed toLaunch
API.custom_variables
key inside options is renamed tocustomVariables
revenue_value
key inside options is renamed torevenueValue
GetVariation
can be used as an alternative forGetVariationName
for backward compatibility.GetVariationName
API does not send any impression
To prevent ordered arguments and increasing use-cases, we are moving all optional arguments to be passed via options
.
- customVariables argument in APIs:
Activate
,GetVariation
,Track
,IsFeatureEnabled
, andGetFeatureVariableValue
viaoptions
argument. revenueValue
parameter intrack
API inoptions
argument
// Activae API
string variationName = vwoClientInstance.Activate(campaignKey, userId);
// GetVariation API
string variationName = vwoClientInstance.GetVariation(campaignKey, userId);
// Track API
bool isSuccessful = vwoClientInstance.Track(campaignKey, userId, goalIdentifier, revenueValue);
// Activate API
// With Custom Variables
Dictionary<string, dynamic> options = new Dictionary<string, dynamic>()
{
{
"custom_variables": new Dictionary<string, dynamic>()
{
{"value", 10}
}
}
};
// Without Custom Variables
Dictionary<string, dynamic> options = new Dictionary<string, dynamic>()
{};
// Activate API
string variationName = vwoClientInstance.Activate(campaignKey, userId, options);
// GetVariationName API
string variationName = vwoClientInstance.GetVariationName(campaignKey, userId, options);
// for backward compatibility
string variationName = vwoClientInstance.GetVariation(campaignKey, userId, options);
// Track API
bool isSuccessful = vwoClientInstance.Track(campaignKey, userId, goalIdentifier, options)
// With Revenue Value
Dictionary<string, dynamic> options = new Dictionary<string, dynamic>()
{
{ "revenue_value", 10.2 },
};
bool isSuccessful = vwoClient.Track(campaignKey, userId, goalIdentifier, options);
- Feature Rollout and Feature Test capabilities
- Pre and Post segmentation capabilites Introduced new Segmentation service to evaluate whether user is eligible for campaign based on campaign pre-segmentation conditions and passed custom-variables
- Existing APIs to handle new type of campaigns i.e. feature-rollout and feature-test
- All existing APIs to handle custom-variables for tageting audience
- Code refactored to support feature-rollout, feature-test, campaign tageting and post segmentation
- Change MIT License to Apache-2.0
- Added apache copyright-header in each file
- Add NOTICE.txt file complying with Apache LICENSE
- Give attribution to the third-party libraries being used and mention StackOverflow
- Downgrade dependency i.e.
Newtonsoft.Json
to11.0.2
so it won;t conflict with other user-defined deps having this as dep.
- Test cases integration via
.travis.yml
and coveralls.
- First beta release with Server-side A/B capabilities