Using Google Analytics to Track Clicks on Selectinput, Radio buttons, and check boxes

Hi,

Are there any resources available to track events such as clicks on selectinput, radio buttons, check boxes, etc. using google analytics. I used the following resources to set up google analytics to shinyapps and they were very useful.

https://shiny.rstudio.com/articles/usage-metrics.html
https://shiny.rstudio.com/articles/google-analytics.html

However, I was not able to get events to work with changes in selectinput, radio buttons, or check boxes. It seems shiny:inputchanged does not detect changes in these inputs.

Any help is greatly appreciated.
Thanks a lot.

Best,
Gibran

I figured it out and am putting it here for future reference.
The js code that Google now gives does not work with the event trackers mentioned in the above examples. You would need to use analytics.js (old) method as was used in the examples. More information about that here:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.