Try our conversational search powered by Generative AI!

Google analytics addon: cannot serialize AnalyticsInteraction


Hi all,

This is a problem was reported a long time ago ( but seems to still affect the latest stable version of the addon (v2.0.1). We are using an Episerver CMS / Commerce (11.5.4) installation with a Redis session provider and a Json serializer.

Any way of fixing the issue?



May 01, 2018 15:53

In the AnalyticsInteraction there is a attribute [Serializable], but it seems to be not enough in your case. Could you give me provide steps to reproduce in details, we will report a bug for fixing?

May 07, 2018 10:24

Hi Dac, thank you for your response.

We have the session provider configured to use a Redis instance on the Azure cloud. The configuration use a custom "redisSerializerType", a simple class doing serialization / deserialization using Newtonsoft.Json, rather than the default binary serializer that ships with the Microsoft.Web.Redis library.

The error occurs when you logout, the error message is:

Unable to find a constructor to use for type EPiServer.GoogleAnalytics.Web.Tracking.AnalyticsInteraction. A class should either have a default constructor, one constructor with arguments or a constructor marked with the JsonConstructor attribute. Path '$values[0].ContentLink', line 1, position 268.



May 08, 2018 13:23

I have created a bug here: We will look at it deeper.


May 09, 2018 6:17
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.