Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

page visit metrics #114

Closed
clyne opened this issue Jun 17, 2021 · 13 comments · Fixed by #120
Closed

page visit metrics #114

clyne opened this issue Jun 17, 2021 · 13 comments · Fixed by #120
Labels
infrastructure Infrastructure related issue

Comments

@clyne
Copy link
Contributor

clyne commented Jun 17, 2021

We need to be able to gather metrics on visits to Project Pythia. Ideally this would be done in a way that allows us to spot trends over time and the breadth of pythia content. I.e. tracking the number of visits to each page on a daily or weekly basis.

@clyne clyne added the infrastructure Infrastructure related issue label Jun 17, 2021
@brian-rose
Copy link
Member

I was thinking the same thing. A simple way to do this is with Google analytics. Straightforward to add this to our sites, e.g.
https://jupyterbook.org/customize/config.html
shows how/where to set the google_analytics_id in our Foundations config

@clyne
Copy link
Contributor Author

clyne commented Jun 17, 2021

I think the GeoCAT team, cc'ing @erogluorhan, has experience with this.

@kmpaul
Copy link
Collaborator

kmpaul commented Jun 22, 2021

I have experience with this, too. I've done it for the Xdev sites. I can do it for the projectpythia.org sites, too.

@kmpaul
Copy link
Collaborator

kmpaul commented Jun 22, 2021

@brian-rose @clyne

Ok. So, it turns out that I already enabled Google Analytics to the Portal site. It was done by simply adding a layout.html file to the /contents/_templates/ directory that added the correct HTML metadata tags and scripting to the site when Sphinx builds it. The same thing would need to be done for the Foundations page.

When I created the new landing page (#115), though, I forgot about this. So, I just opened PR #120 to fix this.

@kmpaul
Copy link
Collaborator

kmpaul commented Jun 22, 2021

@clyne @dopplershift: I have added both of your (using your UCAR Google addresses) to have access to the Pythia Portal Google Analytics page. You should receive an email with instructions for access.

@brian-rose @ktyle: I think I need to find your Google account email addresses to add the both of you. I will try to find them and add them shortly.

@dopplershift
Copy link
Contributor

Thanks @kmpaul

@kmpaul
Copy link
Collaborator

kmpaul commented Jun 22, 2021

@brian-rose @ktyle: For some reason, when I add the same email address that are on the Project Pythia Google Calendar events, the Google Analytics page says "Failed to register new users." Do you both have separate Google accounts that are not tied to your Albany accounts that I can add to the Google Analytics project? If so, send them to me in a separate email.

@kmpaul
Copy link
Collaborator

kmpaul commented Jun 22, 2021

@ktyle: Turns out that when I try to add your Albany email address, it changes it to a Gmail address saying that the Albany address was found as a "secondary address for another Google Account." So, I hope that you get an email to your Gmail address (I won't post it here) and find you now have access to the Google Analytics account.

@brian-rose: I think I will need a Google account to give you access.

@ProjectPythia/education @ProjectPythia/core @ProjectPythia/infrastructure: Anyone else want access to the Google Analytics account?

@brian-rose
Copy link
Member

@kmpaul I just emailed you my google account details

@ktyle
Copy link
Contributor

ktyle commented Jun 22, 2021

@kmpaul I got it!

@kmpaul
Copy link
Collaborator

kmpaul commented Jun 22, 2021

@clyne @dopplershift @brian-rose @ktyle: Ok. You all have administrative privileges on the Project Pythia Google Analytics account. So, you should be able to see all of the analytics data.

We need to do something similar for the Foundations page.

@clyne
Copy link
Contributor Author

clyne commented Jul 2, 2021

@kmpaul how do we access the analytics page (I did not receive an email)? Thanks.

@dopplershift
Copy link
Contributor

https://analytics.google.com/ should get you there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure Infrastructure related issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants