clevertap-react-native icon indicating copy to clipboard operation
clevertap-react-native copied to clipboard

Android: "UTM Visited" event not logged when clicking link while app is backgrounded

Open marcshilling opened this issue 1 month ago • 0 comments

I am trying to set up UTM tracking for my app so that we can measure clicks across iOS/Android (universal links) and web.

To test this, I can just refresh my user on the CleverTap dashboard and see the event come in almost instantly: image

This seems to be working well in all cases, except when the Android app is already "alive" in the background. The "UTM Visted" event is sent properly when the app is quit and does a cold boot, but if I background the app and click the link it is not sent. On iOS, the event is sent properly in both cases.

More info:

  • clevertap-react-native v2.2.1
  • I've added implementation 'com.android.installreferrer:installreferrer:2.2' to my build.gradle per the docs (this was necessary to get the cold-boot tracking to work)

marcshilling avatar Jul 11 '24 14:07 marcshilling