StoreServicesCustomEventLogger.LogForVariation | logForVariation method
Logs a view or conversion event for an A/B test from your app to Windows Dev Center.
Syntax
public: void LogForVariation( StoreServicesExperimentVariation^ experimentVariation, String^ eventName )
Parameters
- experimentVariation
-
Type: StoreServicesExperimentVariation
An object that provides context about the experiment variation that your app is processing. Pass the StoreServicesExperimentVariation object that you retrieved via the GetCachedVariationAsync or GetRefreshedVariationAsync method.
- eventName
-
Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]
The name of the view or conversion event to send to Dev Center. This value must match the name of a view or conversion event that you associated with the current experiment in the Experiments page of the Dev Center dashboard.
Remarks
If you have configured an app experiment with A/B testing on the Dev Center dashboard, use the Log method to log data about view and conversion events from your app to the dashboard. For a code example that demonstrates how to use this method, see Code your experiment in your app.
Requirements
|
Minimum supported client |
Windows 10 |
|---|---|
|
Minimum supported server |
None supported |
|
Minimum supported phone |
Windows 10 Mobile |
|
Namespace |
|
|
Metadata |
|
See also