Click or drag to resize
ApplicationBuilderExtensionsUseEmailTracking Method
Enables the opened email and email link tracking feature.

Namespace: Kentico.Newsletters.Web.Mvc
Assembly: Kentico.OnlineMarketing.Web.Mvc (in Kentico.OnlineMarketing.Web.Mvc.dll) Version: 13.0.131
Syntax
C#
public static void UseEmailTracking(
	this IFeaturesBuilder builder,
	EmailTrackingOptions options = null
)

Parameters

builder
Type: Kentico.Web.MvcIFeaturesBuilder
The application builder.
options (Optional)
Type: Kentico.Newsletters.Web.MvcEmailTrackingOptions
Email tracking options.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IFeaturesBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
Enabling the opened email and email link tracking feature prepares routes to be mapped once MapRoutes(RouteBuilderExtensionPoint) is called. Inherently this method must be called prior to system routes mapping.
See Also