Hi Rudderstack Team. I found problem in android si...
# support
h
Hi Rudderstack Team. I found problem in android side, when i added external id in rudder option it’s not work.
m
Hey There! 👋 Your message has been received by the RudderStack team. Our standard customer support hours are 9-6 PM EST, but we will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
k
Hey @helpful-guitar-80887 , Can you share the SDK you are using and the code snippet for setting the Rudder Options ?
h
Yep
image.png
image.png
image.png
But in realtime monitor not attach this external id.
image.png
@kind-carpenter-27609 this information for you.
k
Hey @helpful-guitar-80887, I was able to see that the externalId’s are properly set in the debugging screenshots you had shared, can you also share logs including the payloads sent to ensure that the externalIds are properly sent from the SDK’s end ?
Hey @helpful-guitar-80887, Did you get a chance to take a look at the logs, if yes, can you please share them with us ?
k
@acceptable-xylophone-96258 here
h
@kind-carpenter-27609 This live event log.
image.png
{ “anonymousId”: “6edc22a00aaab005", “channel”: “mobile”, “context”: { “app”: { “build”: “481", “name”: “Pi Financial”, “namespace”: “th.co.pi.financial”, “version”: “1.2.3" }, “device”: { “id”: “6edc22a00aaab005”, “manufacturer”: “OnePlus”, “model”: “ONEPLUS A6003”, “name”: “OnePlus6”, “type”: “Android” }, “library”: { “name”: “com.rudderstack.android.sdk.core”, “version”: “1.7.1" }, “locale”: “en-US”, “network”: { “carrier”: “”, “cellular”: false, “wifi”: true }, “os”: { “name”: “Android”, “version”: “11" }, “screen”: { “density”: 450, “height”: 2156, “width”: 1080 }, “timezone”: “Asia/Bangkok”, “traits”: { “anonymousId”: “6edc22a00aaab005” }, “userAgent”: “Dalvik/2.1.0 (Linux; U; Android 11; ONEPLUS A6003 Build/RKQ1.201217.002)” }, “event”: “button_tap”, “integrations”: { “All”: true }, “messageId”: “1678432341777-59f7195d-9b51-40dd-b810-7ed28af50216”, “originalTimestamp”: “2023-03-10T071221.781Z”, “properties”: { “button_name”: “log_in”, “screen_name”: “login_password” }, “rudderId”: “f1df9534-f553-4825-a4b2-1cadf8e6a781", “sentAt”: “2023-03-10T071225.888Z”, “type”: “track” }
k
Hey @helpful-guitar-80887, ExternalId’s are accepted on Identify calls only, can you try sending them once with an identify call and see if this works ?
CC <!subteam^S04QT1G74Q3|@sdk-team>
h
Hum, but iOS is always send when use track.
k
Even in the case of iOS as well, externalIds are accepted from an identify call and cleared by a reset call, and persisted and attached with every call made between identify and reset.
if the calls are made in the below sequence: identify(u1, t1, externalId1) -> track(event1) -> track(event2) -> reset() -> track(event3)
event1
and
event2
would have
externalId1
present in their payload, where as
event3
would not have them
h
Then i need to call identify one time when opened app and call track normally right?
k
need not to, externalIds are persisted by the SDK and attached to the every event made from the moment you made an identify call and till the reset call is made. These are persisted across the application launches just like user traits
Hey @helpful-guitar-80887, Did you tried it with the identify call and were you able to resolve the issue ?
Hey @helpful-guitar-80887, Did you get a chance to try with the identify call ?
Hey @helpful-guitar-80887, We are closing this for now, but if you still see the issue happening even after trying with identify call, let us know and we will help you get this sorted
h
Now it's work when i called identify before track anything. Thank you guy.
k
Awesome, great to know that