Vasiliauskas / Gappalytics

Gappalytics is a library for google analytics based page tracking for any desktop or mobile application
7 stars 1 forks source link

Random Number for User Session #5

Closed cdesch closed 7 years ago

cdesch commented 7 years ago

Can the userRandomNumber associated with the

    public AnalyticsSession(string domain, string trackingCode, int userRandomNumber, int visitCount, DateTime? firstVisitTimeStamp)

be used as the User's Id instead?

Vasiliauskas commented 7 years ago

It can, but it will affect the sessions state if you for instance close app and run it again with same number it will be treated as same session if not timed out.

cdesch commented 7 years ago

Okay. Is there a way to track the user with each session?

On Tue, Jul 4, 2017, 11:16 Vidas Vasiliauskas notifications@github.com wrote:

It can, but it will affect the sessions state if you for instance close app and run it again with same number it will be treated as same session if not timed out.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Vasiliauskas/Gappalytics/issues/5#issuecomment-312902398, or mute the thread https://github.com/notifications/unsubscribe-auth/ABJt81lajjbcYRvb4HZmJaXig6eAi-29ks5sKldkgaJpZM4ONdNg .

Vasiliauskas commented 7 years ago

That is a question I have no answer yet. I would suggest reading up at google api docs: https://support.google.com/analytics/answer/3123662?hl=en also, feel free to do a pull request if changes are needed to the lib

cdesch commented 7 years ago

I'll see what I can do as I try leveraging the library. Thank you @Vasiliauskas