Closed MathewBiddle closed 3 years ago
@ocefpaf and @mwengren, I've poked around and think this is all we need to do to get tracking setup. If that is not correct, please point me to the appropriate documentation and I can make whatever other changes are necessary.
@mwengren good call. I'll spin it up locally and see what I find.
@mwengren No clue if this is right but after deploying locally I see this javascript piece with that identifier in it:
FWIW, I've documented what I did to run the website locally in this wiki page.
Looks promising. I'm not sure how GA works exactly - I doubt you'll be able to see any metrics on the dashboard because it's running on your localhost in dev mode. You'll probably have to deploy to the ioos.github.io URL to know if it actually works or not.
@ocefpaf I'll let you take a look and see if I broke anything before we merge.
That should do it. Let's merge it!
I'm poking around the GA overview and not seeing any data sent in. In another tab in browsing the site https://ioos.github.io/notebooks_demos/ to see if my browsing appears in the analytics, still no dice.
I wonder if the provider in _config.yml should be google-universal
?
Google Analytics changed so much since the last time I used it that I have no idea. I'm OK to just tests things out. However, I do remember that it took a few weeks for the first streams of data to appear. Did you check it again recently? Do we have any data?
adding google analytics measurement ID
closes https://github.com/ioos/notebooks_demos/issues/190