Skip to content

Commit

Permalink
fix function call
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethan Jaffee committed Nov 8, 2023
1 parent f7da9a7 commit 0265ca8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -24,7 +24,7 @@ export function analyticsGTM(): Promise<string> {
const data = gtmPayload[1][1] as Record<string, unknown>;
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.');
Expand Down

0 comments on commit 0265ca8

Please sign in to comment.