LogForVariation | logForVariation method
Collapse the table of content
Expand the table of content

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.

Note  Events that you log using this method also appear in the Custom events section of the Usage report in Dev Center.
 

Requirements

Minimum supported client

Windows 10

Minimum supported server

None supported

Minimum supported phone

Windows 10 Mobile

Namespace

Microsoft.Services.Store.Engagement
Microsoft::Services::Store::Engagement [C++]

Metadata

Microsoft.Services.Store.Engagement.winmd

See also

Code your experiment in your app
StoreServicesCustomEventLogger

 

 

Show:
© 2017 Microsoft