From 0265ca8c6a2cda246ad9d7ebedfe1b61f04ec5cc Mon Sep 17 00:00:00 2001 From: Ethan Jaffee Date: Tue, 7 Nov 2023 19:34:39 -0500 Subject: [PATCH] fix function call --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 97a8fcb4..721ebea3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,7 +1,7 @@ import { AnalyticsConfig } from './AnalyticsConfig'; import { AnalyticsEventReporter } from './AnalyticsEventReporter'; import { AnalyticsEventService } from './AnalyticsEventService'; -import { convertTypesGTM } from './convertStringToValue'; +import { convertStringToValue } from './convertStringToValue'; /** * The Yext Analytics Events SDK. @@ -24,7 +24,7 @@ export function analyticsGTM(): Promise { const data = gtmPayload[1][1] as Record; if (config) { const reporter = new AnalyticsEventReporter(config); - const correctedData = convertTypesGTM(data); + const correctedData = convertStringToValue(data); response = reporter.report(correctedData); } else { response = Promise.reject('No config found in payload.');