Monday, November 6, 2017

Issue capturing non-numeric fields using piwik for Shiny

2 comments

I am trying to monitor users of my R/Shiny app using piwik as described in this tutorial https://shiny.rstudio.com/articles/usage-metrics.html

If the event.value is numeric, I can see the value selected in the Piwik dashboard, but if is a string nothing is shown. Is there

For example,

$(document).on('shiny:inputchanged', function(event) {   if (event.name === 'input_name') {     _paq.push(['trackEvent', 'input',                'updates', event.name, event.value]);     console.log(event.name);     console.log(event.value);   } });  

if the value of input_name is 1 the following will be in the visitor panel:

input - updates -input_name [1] 

if the value of input_name is "string" the following will be in the visitor panel:

input - updates -input_name  

Is there any way to get "string" to display in the panel, or for me to find it in the database or using the API?

0 Answers

If You Enjoyed This, Take 5 Seconds To Share It

2 comments: