Interface IEmailActivityTrackingEvaluator
- Namespace
- Kentico.OnlineMarketing.Web.Mvc
- Assembly
- Kentico.OnlineMarketing.Web.Mvc.dll
Interface for a service that evaluates whether it is possible to track an email activity for a contact (e.g., based on consents, personal data protection regulations, etc.).
public interface IEmailActivityTrackingEvaluator
- Extension Methods
Methods
IsTrackingAllowed(ContactInfo, EmailConfigurationInfo)
Determines whether the email activities can be tracked for the contact.
Task<bool> IsTrackingAllowed(ContactInfo contact, EmailConfigurationInfo emailConfiguration)
Parameters
contactContactInfoContact info of the recipient.
emailConfigurationEmailConfigurationInfoEmail configuration info.
Returns
- Task<bool>
True if the email activity can be tracked for the contact, otherwise false.
Remarks
If this method throws an exception, error is logged in the event log and, it is assumed by the system that tracking is not allowed.