Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sitecore Tracker.Current is not initialized

I'm having this issue related with Tracker.

[InvalidOperationException: Tracker.Current is not initialized]
   Sitecore.Analytics.Pipelines.StartAnalytics.StartTracking.Process(PipelineArgs args) +304
   (Object , Object[] ) +74
   Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +484
   Sitecore.Analytics.Pipelines.StartAnalytics.StartAnalyticsPipeline.Run() +293
   Sitecore.Mvc.Analytics.Pipelines.MvcEvents.RequestBegin.StartTracking.Process(RequestBeginArgs args) +139
   (Object , Object[] ) +74
   Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +484
   Sitecore.Mvc.Pipelines.PipelineService.RunPipeline(String pipelineName, TArgs args) +184
   Sitecore.Mvc.Routing.RouteHttpHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) +74
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +923
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +157

In the web.config I've the

enableTracking="true"

If I set to false it works but there's no Tracking

like image 728
Ricardo Azeitona Avatar asked Oct 21 '16 11:10

Ricardo Azeitona


2 Answers

There are multiple factors that can contribute to the issue you are experiencing. To simplify and summarize comments given previously, you need to be sure that:

  1. MongoDB is running
  2. Your Connection Strings properly set
  3. Sitecore License has xDB added
  4. Xdb.Enabled and Xdb.Tracking.Enabled are both set to "true"
  5. Analytics.ClusterName in Sitecore.Analytics.Tracking.config is a proper hostname
  6. Verify you have VisitorIdentification tag added (to weed out robots)
like image 56
Sasha Avatar answered Nov 19 '22 11:11

Sasha


The first thing we need to check is to make sure Mongo DB is installed and Mongo DB service is started.This fixed the issue on my machine.

like image 20
Rama Krshna Ila Avatar answered Nov 19 '22 12:11

Rama Krshna Ila