Tracking Sessions/Users

1,488 views
Skip to first unread message

Haider Ali

unread,
Jan 22, 2013, 9:01:40 PM1/22/13
to shiny-...@googlegroups.com
I don't think this has been asked, but is it possible to track unique users in Shiny using either some sort of unique session id or even ip address of the client. Is there any undocumented feature that lets you print any such information.

I wouldn't even be averse to tracking it myself in R code, but question is how do you identify traffic to a given websocket connection. vs another

Appreciate any thoughts/suggestions.

-Haider

Joe Cheng

unread,
Jan 22, 2013, 9:18:26 PM1/22/13
to shiny-...@googlegroups.com
With Shiny Server you can either use access_log to write web server log files, or google_analytics_id to automatically add Google Analytics tracking code. I recommend the latter.

--
 
 


--
Sent from my phone

Haider Ali

unread,
Jan 22, 2013, 9:31:31 PM1/22/13
to shiny-...@googlegroups.com

I thought about Google analytics - but I wonder if that will work for a shiny application hosted on a private network. Don't you have to register the url on the Google analytics site?

--
 
 

Joe Cheng

unread,
Jan 23, 2013, 4:39:58 AM1/23/13
to shiny-...@googlegroups.com
I've never tried it but:


On Tuesday, January 22, 2013, Haider Ali wrote:

I thought about Google analytics - but I wonder if that will work for a shiny application hosted on a private network. Don't you have to register the url on the Google analytics site?

On Jan 22, 2013 9:18 PM, "Joe Cheng" <j...@rstudio.com> wrote:
With Shiny Server you can either use access_log to write web server log files, or google_analytics_id to automatically add Google Analytics tracking code. I recommend the latter.

http://htmlpreview.github.com/?https://github.com/rstudio/shiny-server/blob/master/config.html

On Tuesday, January 22, 2013, Haider Ali wrote:
I don't think this has been asked, but is it possible to track unique users in Shiny using either some sort of unique session id or even ip address of the client. Is there any undocumented feature that lets you print any such information.

I wouldn't even be averse to tracking it myself in R code, but question is how do you identify traffic to a given websocket connection. vs another

Appreciate any thoughts/suggestions.

-Haider

--
 
 


--
Sent from my phone

--
 
 

--
 
 

Christopher Peters

unread,
May 17, 2016, 1:42:46 PM5/17/16
to Shiny - Web Framework for R
Being able to grab the user's email address as context in an app would be useful. In my case, I've installed error handling that can log some form of user id. Being able to grab this from session$clientData context would let me log which user had an error.
Reply all
Reply to author
Forward
0 new messages