react-marketing-tools 0.3.9 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -140,7 +140,7 @@ React Marketing Tools are a set of tools to make it easier for you to implement
140
140
  eventNameInfo,
141
141
  analyticsType: analyticsPlatform.DATALAYER_PUSH,
142
142
  dataLayerCheck: true,
143
- userDataToHashKeyArray: null,
143
+ userDataKeysToHashArray: null,
144
144
  }
145
145
 
146
146
  await trackAnalyticsEvent(trackingData)
@@ -175,7 +175,7 @@ React Marketing Tools are a set of tools to make it easier for you to implement
175
175
  showJourneyPropsPayload: true,
176
176
  },
177
177
  dataLayerCheck: false,
178
- userDataToHashKeyArray: null,
178
+ userDataKeysToHashArray: null,
179
179
  }
180
180
 
181
181
  await trackAnalyticsEvent(trackingData)
@@ -203,7 +203,7 @@ React Marketing Tools are a set of tools to make it easier for you to implement
203
203
  },
204
204
  eventNameInfo,
205
205
  analyticsType: analyticsPlatform.GOOGLE,
206
- userDataToHashKeyArray: ['email', 'firstName', 'lastName'],
206
+ userDataKeysToHashArray: ['email', 'firstName', 'lastName'],
207
207
  consoleLogData: {
208
208
  showJourneyPropsPayload: true,
209
209
  },
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ReactNode, Context } from 'react';
2
2
  import type { ProviderStateProps, ProviderApiProps } from './types';
3
- export type { Event, GooglePayload, EventNameInfo, AllowedTypes, TrackAnalyticsEventOptions, GlobalVars, DataLayer, ConsoleLogData, AnalyticsTrackerDataOptions, HandleDataLayerPushOptions, ServerLocationData, IpInfo, Ga4GoogleAnalyticsEventTracking, Platform, AnalyticsPlatform, Tokens, Config, BuildConfigOptions, ProviderStateProps, ProviderApiProps, } from './types';
3
+ export type { Event, GooglePayload, EventNameInfo, AllowedTypes, TrackAnalyticsEventOptions, GlobalVars, DataLayer, ConsoleLogData, AnalyticsTrackerDataOptions, HandleDataLayerPushOptions, ServerLocationData, IpInfo, Ga4GoogleAnalyticsEventTracking, Platform, AnalyticsPlatform, Tokens, Config, BuildConfigOptions, ProviderStateProps, ProviderApiProps, AnalyticsEventActionPrefix, AnalyticsGlobalEventAction, } from './types';
4
4
  export { config, analyticsPlatform, buildConfig, showMeBuildInAnalyticsPlatform, showMeBuildInGlobalEventActionList, showMeBuildInEventActionPrefixList, } from './buildConfig';
5
5
  export { trackAnalyticsEvent } from './analytics/analyticsEventService';
6
6
  export declare const ContextState: Context<ProviderStateProps>;
@@ -12,9 +12,9 @@ export declare const ReactMarketingProvider: ({ children, }: ReactMarketingProvi
12
12
  /**
13
13
  * @property {string} appName
14
14
  * @property {string} appSessionCookieName
15
- * @property {object} analyticsPlatform
16
- * @property {object} eventActionPrefixList
17
- * @property {object} analyticsGlobalEventActionList
15
+ * @property {AnalyticsPlatform} analyticsPlatform
16
+ * @property {AnalyticsEventActionPrefix} eventActionPrefixList
17
+ * @property {AnalyticsGlobalEventAction} analyticsGlobalEventActionList
18
18
  */
19
19
  export declare const useMarketingState: () => ProviderStateProps;
20
20
  /**