Hi team, I have a query <w.r.to> merging clevertap...
# support
e
Hi team, I have a query w.r.to merging clevertap profiles created via the app and webview in the app. we are using device mode integration for clevertap so setAnonymousId does not work do you know if there is an alternative to merge the profiles created by both clients
q
@enough-telephone-15935 can you check if this solves your problem https://www.rudderstack.com/docs/sources/event-streams/sdks/rudderstack-android-sdk/#anonymous-id
e
Hey @quiet-wolf-72320 , Thanks for responding. we want the website (with CleverTap added as Device mode integration) to use the app's CleverTap ID (generated from the CleverTap SDK)
q
@enough-telephone-15935 you had a similar query few months back . What is the difference in your current issue? https://rudderstack.slack.com/archives/C01E4PLB135/p1664882719764629?thread_ts=1664803766.388829&cid=C01E4PLB135
e
@quiet-wolf-72320 the difference is now the clevertap integration is device mode
there are two things in action here. 1. mobile app 2. the website that gets rendered in the react-native-webview mobile app has the react-native-clevertap sdk installed. This SDK generates a clevertap id. website has the rudderstack sdk integration with clevertap as a destination via device mode now, we want the user's tracking data to be available on the clevertap dashboard under one profile. we want the website to use the app's clevertap id to log events.
k
@enough-telephone-15935 , making the identify call with same userId from both the website as well as app isn't merging the profiles at clevertap ?
e
we don't log the user in in the website
basically we want to merge two anonymous profiles
k
So basically you need to retrieve the clevertap id from clevertap RN SDK and then pass it to the clevertap JS SDK right ?
🚀 1
e
yass
every event call made form the clevertap device mode sdk in the website should reach to the clevertap profile generated by the Mobile App
k
Are you using Clevertap Device Mode by Rudderstack on the React Native End ?
e
no
k
You are using their SDK directly ?
e
yes
but I am using Rudderstack with Device mode integration of CleverTap on website
which is where I need your help
is there any way to achieve what we need?
k
You can use this api to get the clevertap Id from their RN SDK but I don’t think you can set it in their JS SDK
e
I have the CT id, i want to know if i can set it in clevertap
k
Because they are retrieiving it directly using Device Manager as shown here
e
yes
k
We cannot override, the only way I can see to achieve this here is to make an identify call
e
but this would mean to make an identify call for an anonymous user
k
So you re-direct to the website from your app right ? And that is why you wanted to link both of them right ?
e
yes
the redirection is inside the app on react-native-webview
k
They seem to have the support for tracking the events happening in the case of webview for both Android and iOS SDK’s but not the RN SDK. Please refer their documentation here
e
we are now working with postMessage only. but that approach is not scalable. Thanks for sharing the link.
k
I see, then I guess in this case this question can be better answered by Clevertap team itself, but one other idea which I could think of is leveraging the multiple identities support for a profile by clevertap to merge these two profiles. But I am not sure if this would be the best way to achieve it.
👍 1
e
leveraging the multiple identities support for a profile by clevertap
any doc on this?
k
Here is a doc regarding the user profiles in detail.