Configure the tracker submit queue
When the tracker submits a session to xConnect, but xConnect is temporarily unavailable, the tracker classifies this as a transient error (meaning it assumes xConnect becomes available later). The tracker adds the session to a submit queue that, by default, serializes the session to disk. The submit queue service later re-submits the session to xConnect at configurable intervals.
Disable or enable the submit queue
The submit queue is enabled by default. You can disable the submit queue, but this means you might lose data if xConnect is unavailable.
To disable the submit queue:
-
Go to the
\App_Config\Sitecore\Marketing.Tracking\Sitecore.Analytics.Tracking.configfile. -
Configure the
Analytics.UseSubmitQueuesetting tofalse.RequestResponse<setting name="Analytics.UseSubmitQueue" value="false" />
Choose the submit queue implementation
The submit queue is stored on disk by default. You can choose where on the disk the queue is stored, or you can choose another type of storage.
To choose the submit queue implementation:
-
Go to the
\App_Config\Sitecore\Marketing.Tracking\Sitecore.Analytics.Tracking.configfile. -
Locate the
submitQueue,queuesetting. -
Configure the
typeattribute toSitecore.Analytics.Data.DataAccess.SubmitQueue.FileSubmitQueueto have the submit queue stored on disk. Configure theparamchild setting to a disk location.RequestResponse<submitQueue> <queue type="Sitecore.Analytics.Data.DataAccess.SubmitQueue.FileSubmitQueue, Sitecore.Analytics" singleInstance="true"> <param desc="folderPath">$(dataFolder)/Submit Queue</param> </queue> </submitQueue>
Sitecore only offers the FileSubmitQueue option for storing the submit queue, but you can create your own storage options and configure them here.
Configure the re-submit interval
You can choose how often you want the submit queue service to re-submit queued data to xConnect:
-
Go to the
\App_Config\Sitecore\Marketing.Tracking\Sitecore.Analytics.Tracking.Database.configfile. -
Locate the
submitQueue,backgroundService,Intervalsetting. -
Enter the number of seconds between each time the submit queue service must re-submit queued data to xConnect.
RequestResponse<submitQueue> <backgroundService type="Sitecore.Analytics.SubmitQueueService, Sitecore.Analytics"> <!-- Service wakeup interval in seconds. --> <Interval>60</Interval> </backgroundService> </submitQueue>