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: 12.0.0
Syntax
C#
public static void UseEmailTracking(
	this IApplicationBuilder builder,
	EmailTrackingOptions options
)

Parameters

builder
Type: Kentico.Web.MvcIApplicationBuilder
The application builder.
options
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 IApplicationBuilder. 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(ExtensionPointRouteCollection) is called. Inherently this method must be called prior to system routes mapping.
See Also