Closed wwieder closed 5 years ago
@brunj7 do you have any experience / suggestions for helping us track our data?
Julien told me that NCEAS has used Google Analytics for this in the past. It's probably best if you guys create the Google Analytics account, so you have total access to it.
I can get to work on the actual implementation, but I would need someone to do the first 2 steps of this tutorial: http://shiny.rstudio.com/articles/google-analytics.html, and then send over the code snippet that you get.
Created branch tracking
to set this up with some dummy javascript code.
I think I have it set up so that once we have a Google Analytics account, I can just copy/paste the code snippet into the right spot to get tracking to work
View count and download button tracking is now live!
A couple notes in case we want to track more things/edit what we already have tracked:
ga
to gtag
with slightly different syntax. see here: https://developers.google.com/analytics/devguides/collection/gtagjs/migrationdownloadButton
isn't really a button! It's a link. So I just had to go into the downloadButton
function and add an argument for onclick = ga(...)
to get it to track.@wwieder done with this issue? @nathanhwangbo 's honors to close?
yep. seems resolved.
On Fri, Sep 27, 2019 at 10:20 AM Derek Pierson notifications@github.com wrote:
@wwieder https://github.com/wwieder done with this issue? @nathanhwangbo https://github.com/nathanhwangbo 's honors to close?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/lter/lterwg-som-shiny/issues/9?email_source=notifications&email_token=AB5IWJF7KWCVFTSIOWF75Z3QLYXE5A5CNFSM4IXSZSB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7ZM7QQ#issuecomment-536006594, or mute the thread https://github.com/notifications/unsubscribe-auth/AB5IWJAEZ7JQTLRFB2EHGSLQLYXE5ANCNFSM4IXSZSBQ .
-- Will Wieder Project Scientist CGD, NCAR 303-497-1352
Can we keep track of how many hits (or who is using) the shiny and downloading data.