You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: libraries/browser-tracker-core/src/tracker/out_queue.ts
+20-4Lines changed: 20 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,7 @@ export interface OutQueue {
63
63
* @param withCredentials - Sets the value of the withCredentials flag on XMLHttpRequest (GET and POST) requests
64
64
* @param retryStatusCodes – Failure HTTP response status codes from Collector for which sending events should be retried (they can override the `dontRetryStatusCodes`)
65
65
* @param dontRetryStatusCodes – Failure HTTP response status codes from Collector for which sending events should not be retried
66
+
* @param idService - Id service full URL. This URL will be added to the queue and will be called using a GET method.
66
67
* @returns object OutQueueManager instance
67
68
*/
68
69
exportfunctionOutQueueManager(
@@ -81,7 +82,8 @@ export function OutQueueManager(
81
82
customHeaders: Record<string,string>,
82
83
withCredentials: boolean,
83
84
retryStatusCodes: number[],
84
-
dontRetryStatusCodes: number[]
85
+
dontRetryStatusCodes: number[],
86
+
idService?: string
85
87
): OutQueue{
86
88
typePostEvent={
87
89
evt: Record<string,unknown>;
@@ -90,7 +92,8 @@ export function OutQueueManager(
* Id service full URL. This URL will be added to the queue and will be called using a GET method.
247
+
* This option is there to allow the service URL to be called in order to set any required identifiers e.g. extra cookies.
248
+
*
249
+
* The request respects the `anonymousTracking` option, including the SP-Anonymous header if needed, and any additional custom headers from the customHeaders option.
it('should first execute the idService request and in the same `enqueueRequest` the tracking request irregardless of failure of the idService endpoint',()=>{
it('should first execute the idService request and in the same `enqueueRequest` the tracking request irregardless of failure of the idService endpoint',()=>{
0 commit comments