When updating a customer statistic via the CustomerStatisticUpdater class, a customer statistic will be automatically created, if it does not currently exist for the specified customer. If you need to manually create a customer statistic for another scenario, see the example below. For more information about the CustomerStatisticUpdater class, see For developers: Update the customer statistic.
To create a customer statistic, you have to perform the following:
Use the following code sample:
Sign up for our free beginner training. Boost your credentials through advanced courses and certification. Register for Sitefinity training and certification.
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important