Needinfo'ing Les and Luke.
Note that we don't need live values. Values updated monthly or even quarterly are perfectly fine.
Yes, there's a way and we should be able to re-use code like SUMO has for this: https://github.com/mozilla/kitsune/blob/master/kitsune/sumo/googleanalytics.py
You will need to file an WebOps bug to get PyOpenSSL==0.13 installed on the servers. The fun part is that RHEL has 0.10 installed and WebOps will need to jump through some hoops for you. See all the gory details we went through in bug 830496
5 years ago
After (quickly) digging into kitsune's code, found the basic bricks for GA/metrics there: 1. getting GA data in  (see #3) : This uses OAuth2client  (see #4 from :rrosario on this). Fecthing is done on different periods : 7 days / 30 days / 90 days / since the beginning. Only the en-US views are counted (this may be enough based on the hypothesis that en-US pages are the most visited pages and "give" the trends) (see also  and ) 2. storing this data in the database in the table 'dashboards_wikidocumentvisits' () 3. querying/creating a view for the content (the query uses info like tags, removes non-relevant pages ) ( and ) This allows to - give a ratio dashboard ala "top 100/50/20" gauge to the final user for l10n - give a freshness dashboard to English speaking contributors (see picture attachments after) needinfo'ing Luke for the following: - is GA data available in a self-made kuma environment (i.e. one that I could make out of github and so on)? - are we collecting GA data about things like "someone went to the [locale] version of the page but was redirected to the en-US version" or simply views per locale for a page?  https://github.com/mozilla/kitsune/blob/master/kitsune/sumo/googleanalytics.py  https://pypi.python.org/pypi/oauth2client  https://github.com/mozilla/kitsune/blob/master/kitsune/dashboards/cron.py  https://github.com/mozilla/kitsune/blob/master/kitsune/dashboards/models.py  https://github.com/mozilla/kitsune/blob/master/scripts/schema.sql (goto dashboards_wikidocumentvisits definition)  https://github.com/mozilla/kitsune/blob/master/kitsune/dashboards/readouts.py  https://github.com/mozilla/kitsune/blob/master/kitsune/dashboards/views.py
(In reply to Jean-Yves Perrier [:teoli] from comment #2) > Note that we don't need live values. Values updated monthly or even > quarterly are perfectly fine. Do we want absolute values like 'nb of visits since forever' and/or also 'fresh visits' (like last 30 days) to react on "hot" pages? I don't know if this is relevant...
> needinfo'ing Luke for the following: lorchard is not luke :)
Flags: needinfo?(lorchard) → needinfo?(lcrouch)
(In reply to Les Orchard [:lorchard] from comment #9) > > needinfo'ing Luke for the following: > > lorchard is not luke :) mea culpa maxima :$ ^^
(In reply to Julien G from comment #8) > (In reply to Jean-Yves Perrier [:teoli] from comment #2) > > Note that we don't need live values. Values updated monthly or even > > quarterly are perfectly fine. > > Do we want absolute values like 'nb of visits since forever' and/or also > 'fresh visits' (like last 30 days) to react on "hot" pages? I don't know if > this is relevant... Visits over the last month (either 1st - 1st or sliding month, whatever is the most easy for the devs) is enough here (last = last at the point of the latest update, as we don't need live values)
You need to log in before you can comment on or make changes to this bug.