Referrer through android or IOS SDK

is there any way to populate referrer automatically in Android or IOS?

Here is the documentation for referrer from the documentation. in which we are giving manually referrer for every track.

t1.track(PageView.builder()
.pageUrl(“www.example.com”)
.pageTitle(“example”)
.referrer(“www.referrer.com”)
.build());

Thank you and appreciated.

The referer field is generally only available on the Page View events as that is the only event type where the referer field really makes sense, it’s mainly designed for Web Page Views rather than Mobile.You might find the Screen View event better represents what is happening on Mobile.

However, if you do want the referer on every event, you could create a custom schema context and then leverage Global Contexts to attach the referer context to every event.

1 Like

thank you and appreciate your help.