Count distinct users on Using IOS and Android Tracker


I’m analyst from market place. We have Web and IOS, ANDROID APPS
We have already implemented snow plow JS tracker on web.

And now we are trying to set up OBJ-C tracker. And i have a question how we can count distinct users on IOS devices? Shall we use network_userid? i didn’t see any other identificator like domain_userid on web.

And one more question: where can i read how network_userid is generated after enrich?

We used data structure from it:


@rodion_zhukov, the network_userid and domain_userid are specific to web tracking. Their values come from the cookies set on the browser. The value of network_userid is set by the collector whereas domain_userid is set by the Javascript tracker.

When it comes to mobile tracking you would rely on the unique device attributes like IDFA, IDFV.

1 Like

@rodion_zhukov if you enable the session context when building SPTracker (by calling setSessionContext) then you will have a user_id UUID available via the session context (iglu:com.snowplowanalytics.snowplow/client_session/jsonschema/1-0-1) that is appended to each event. This UUID should only be regenerated if the application is uninstalled and reinstalled, or the applications data is cleared.

If you wish to only count users by device, then you will need to utilise the IDFA support as @ihor suggested.

You can read more in our docs:
Session Context:
IDFA Tracking:

1 Like

Thanks for the answers.
And one more question:
Should i user AAID for Android like ADFA for IOS?

I can’t find topic about AAID there

You should find this in the com.snowplowanalytics.snowplow/mobile_context/jsonschema/1-0-1 context, in the androidIdfa field.

You’ll need to enable mobile context on tracker initialisation too: