RConsortium / censusguide

https://rconsortium.github.io/censusguide/
Other
84 stars 14 forks source link

Add google analytics to project #20

Closed arilamstein closed 6 years ago

arilamstein commented 6 years ago

Having an accurate traffic count will probably wind up being useful.

arilamstein commented 6 years ago

I am reopening this because it seems like a key metric for success of the project.

See https://twitter.com/AriLamstein/status/1058394584823160832.

I set up a separate GA account:

UA-63439615-4

The default URL in GA is set to: https://rconsortium.github.io/censusguide/

arilamstein commented 6 years ago

I believe that I have this set up correctly now. Although it is peculiar that while the cayman theme puts the GA code at the top of the head (where it's suppose to be): https://github.com/pages-themes/cayman/blob/master/_layouts/default.html, it is actually on the bottom of the page.

Oddly, at first this broke the jekyl build, but it seems to be working now.

GA is also not registering the pageviews. Although according to their support this might take a few hours. I will not close this until that is working.

arilamstein commented 6 years ago

It's done. GA is now recording visits.