diff --git a/src/providers/submitTracking/submitTracking.ts b/src/providers/submitTracking/submitTracking.ts index 44b903e..5e8c520 100644 --- a/src/providers/submitTracking/submitTracking.ts +++ b/src/providers/submitTracking/submitTracking.ts @@ -50,16 +50,12 @@ export const log = ( ctx: Window, counterOptions: CounterOptions, message: string, + variables?: Record, ) => shouldLogCheck(ctx, counterOptions).then( pipe( bindArgs( - [ - getLoggerFn(ctx, counterOptions, message, { - ['id']: counterOptions.id, - }), - noop, - ], + [getLoggerFn(ctx, counterOptions, message, variables), noop], ternary, ), call,