Integration with Analytics MS fails due to missing alias


Integration with Analytics Microservices fails, providing a stack trace like this:

DotNetNuke.Services.Exceptions.Exceptions - System.ArgumentNullException: Value cannot be null.
 Parameter name: primary
 at Evoq.Analytics.Components.AnalyticsRemoteManager.Activate(Int32 portalId)
 at Polly.Policy.<>c__DisplayClass8_0`1.<Execute>b__0()
 at Polly.Retry.RetryEngine.Implementation(Action action, IEnumerable`1 shouldRetryPredicates, Func`1 policyStateFactory)
 at Polly.Policy.Execute[TResult](Func`1 action, Context context)
 at Evoq.Analytics.Components.AnalyticsRemoteRetryManager.Activate(Int32 portalId)
 at Evoq.Analytics.AnalyticsModule.InjectAnalyticsJs(Page page)


The primary alias has not been set for the site, so it is unable to activate the library analytics.js


  1. Follow the steps in the article Add Site Alias and set the primary alias.
  2. Run the same steps that led to the failure mentioned above, and confirm that the integration with Analytics MS now works fine.



Please sign in to leave a comment.