diff --git a/src/providers/consoleRenderer/consoleRenderer.ts b/src/providers/consoleRenderer/consoleRenderer.ts index 2a133e0..dfdfcfd 100644 --- a/src/providers/consoleRenderer/consoleRenderer.ts +++ b/src/providers/consoleRenderer/consoleRenderer.ts @@ -4,6 +4,7 @@ import { ctxErrorLogger } from 'src/utils/errorLogger'; import { cMap } from 'src/utils/array'; import { has } from 'src/utils/object'; import { isString } from 'src/utils/string'; +import { globalMemoWin } from 'src/utils/function'; import { debugEnabled } from '../debugConsole/debugEnabled'; import { getEvents } from '../debugEvents'; import { CONSOLE_DICTIONARY, variableRegex } from './dictionary'; @@ -66,4 +67,7 @@ export const useConsoleRendererRaw = (ctx: Window) => { }); }; -export const useConsoleRenderer = ctxErrorLogger('cr', useConsoleRendererRaw); +export const useConsoleRenderer = ctxErrorLogger( + 'cr', + globalMemoWin('conr', useConsoleRendererRaw), +); diff --git a/src/providers/submitTracking/submitTracking.ts b/src/providers/submitTracking/submitTracking.ts index 5e8c520..2e51e13 100644 --- a/src/providers/submitTracking/submitTracking.ts +++ b/src/providers/submitTracking/submitTracking.ts @@ -50,7 +50,7 @@ export const log = ( ctx: Window, counterOptions: CounterOptions, message: string, - variables?: Record, + variables?: Record, ) => shouldLogCheck(ctx, counterOptions).then( pipe( @@ -199,7 +199,9 @@ export const useSubmitTracking = ctxErrorLogger( ), ); - log(ctx, counterOptions, FORM_GOALS_INIT_CONSOLE_MESSAGE); + log(ctx, counterOptions, FORM_GOALS_INIT_CONSOLE_MESSAGE, { + ['id']: counterOptions.id, + }); return bindArgs([callFirstArgument, unsubscribeMethodsList], cForEach); },