Count distinct users on Using IOS and Android Tracker

Hi!

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:

Thanks!

@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: https://docs.snowplowanalytics.com/open-source/snowplow/trackers/objective-c-tracker/1.0.0/objective-c-tracker/#session-context
IDFA Tracking: https://docs.snowplowanalytics.com/snowplow-insights/trackers/objective-c-tracker/1.2.0/#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 https://docs.snowplowanalytics.com/search/?q=AAID&check_keywords=yes&area=default

Hi,
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:
.mobileContext(true)

2 Likes