substitute for ActivityEventBooking in Kentico 10

Srikanth Sharma asked on September 7, 2017 20:31

Hi,

We're currently migrating to Kentico 10 and have the below code is obsolete in 10. Please suggest alternative for the same.

Activity activity = new ActivityEventBooking(EventNode, EventNode.GetDocumentName(), eai, CMS.WebAnalytics.AnalyticsContext.ActivityEnvironmentVariables); activity.Log();

Recent Answers


Brenden Kehren answered on September 8, 2017 02:39 (last edited on September 8, 2017 03:21)

Looks like it's obsolete and you need to inherit from a different class.

http://devnet.kentico.com/docs/10_0/api/html/T_CMS_WebAnalytics_Activity.htm

Inherit from CustomActivityInitializerBase class or implement IActivityInitializer interface for creating custom activity

Means you need to create your own custom activity to track.

1 votesVote for this answer Mark as a Correct answer

Anna Bell answered on September 9, 2017 22:17

Good day! I want to sat thank you for so informative website. Today is a time, find the great and weill-informed website is not so easy. And I am happy that I can solve my problem with your recommendations and take part in the discussion.

Thanks, Anna

DissertationEditing

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.