@momo-kits/foundation 0.121.3-tracking.1 → 0.121.3-tracking.3

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.
@@ -187,7 +187,7 @@ const StackScreen: React.FC<ScreenParams> = props => {
187
187
  /**
188
188
  * tracking for first interaction by user
189
189
  */
190
- const onFirstInteraction = () => {
190
+ const onFirstInteraction = (action: string) => {
191
191
  if (!tracking.current?.releaseUserInteraction) {
192
192
  let timeLoad = tracking.current.timeLoad;
193
193
  if (timeLoad === 0) {
@@ -197,8 +197,9 @@ const StackScreen: React.FC<ScreenParams> = props => {
197
197
  ...context,
198
198
  screenName,
199
199
  componentName: 'Screen',
200
- state: 'load',
200
+ state: 'interaction',
201
201
  duration: timeLoad,
202
+ action,
202
203
  });
203
204
  tracking.current.releaseUserInteraction = true;
204
205
 
@@ -267,7 +268,7 @@ const StackScreen: React.FC<ScreenParams> = props => {
267
268
  if (data?.interaction) {
268
269
  onScreenLoad();
269
270
  onScreenInteraction();
270
- onFirstInteraction();
271
+ onFirstInteraction(data?.action);
271
272
  }
272
273
  /**
273
274
  * timeout for handle tracking screen
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.121.3-tracking.1",
3
+ "version": "0.121.3-tracking.3",
4
4
  "minimumDeployTarget": 32,
5
5
  "deploymentTarget": 121,
6
6
  "description": "React Native Component Kits",