Closed
Bug 484106
Opened 16 years ago
Closed 16 years ago
Easy way to collect stats for Spread Firefox?
Categories
(Websites Graveyard :: spreadfirefox.com, defect)
Websites Graveyard
spreadfirefox.com
Tracking
(Not tracked)
VERIFIED
FIXED
3.0.4
People
(Reporter: mary, Assigned: abuchanan)
References
()
Details
(Whiteboard: metrics)
Hi folks: Is there a script we can create or module that would help give me an average daily view of:
* # of New nodes created (comments & groups)
* # of New accounts
* # of Sign-ins
* # of new replies
* # of new affiliates
I'd like to be able to assess this pre-launch and then on an-ongoing basis with SFx.
Let me know what you think!
*
Comment 1•16 years ago
|
||
Once you figure how to extract this data, we can consider integrating it into the Mozilla dashboard (metrics.mozilla.com).
Mary Access log settings is most of what your asking for is part of drupal
Top visitors in the past 3 days = /admin/logs/visitors "Mary this can be changed up to 16 weeks
Top search phrases = admin/logs/search
Recent hits = admin/logs/hits
Spam module logs = admin/logs/spam
Users Watchdog = admin/user/user = Username / Status / Roles /Member for / Last access Operations
Settings for the statistical information that Drupal will keep about the site was Disabled it is now Enabled to show the past 3 days
* # of new replies
new content = admin/content/comment
new content = admin/content/node
* # of new affiliates maybe something that needs to be added to the Spreadfirefox affiliates module
I looking on drupal now for a fancier type of module
Comment 3•16 years ago
|
||
It should be possible to a create a "view" of all this information in D6.
http://drupal.org/project/views
http://store.lullabot.com/products/learning-views
Cool. In the meantime - Alex: who should I ping about doing a manual scrape of this in IT?
Thanks!
Per our meeting today, Alex is going to deliver the queries we'll need to run to gather this info today.
| Assignee | ||
Comment 6•16 years ago
|
||
> * # of New nodes created (comments & groups)
> * # of New accounts
> * # of Sign-ins
> * # of new replies
> * # of new affiliates
I can add a function that can count any stats daily in 3.1
Here are some counts I ran on today's DB (3.26.09)
* number of users: 254,617
- select count(*) from users;
* number of users that have never logged in: 21,7401
- select count(*) from users where login = 0;
* number of nodes: 2,388
- select count(*) from node;
* number of comments: 3,846
- select count(*) from comments;
* number of affiliates: 88,051
- select count(*) from affiliates_referrals
- (this query will change with affiliates v2)
* number of nodes per type:
mysql> select type, count(*) from node group by type;
+-----------+----------+
| type | count(*) |
+-----------+----------+
| blog | 57 |
| document | 210 |
| event | 164 |
| feeditems | 665 |
| forum | 923 |
| group | 246 |
| image | 109 |
| page | 3 |
| poll | 1 |
| story | 5 |
| tasks | 1 |
| webform | 4 |
+-----------+----------+
Hope that helps!
There is lots and lots of room for growth here, and I think we should make use of simple stat tracking for every part of the site (private messages, contact us form submits, tell a friend submits, affiliates traffic stats, etc) We can use daily totals to build trends over time too. cool stuff.
Hey there: Awesome!
A few questions:
- It is possible to see how many people signed in on a given day?
- Does the node count have a timeframe or is this since the beginning?
- Does the comment count include replies?
Thanks!
| Assignee | ||
Comment 8•16 years ago
|
||
(In reply to comment #7)
> Hey there: Awesome!
>
> A few questions:
>
> - It is possible to see how many people signed in on a given day?
User logins for March 26th: 18
- select count(*) from users where login > 1238050800 and login < 1238137140;
User logins for March 22nd: 60
- select count(*) from users where login > 1237705200 and login < 1237791540;
Since these are more spread out (and a pain to run the queries by hand) I'll have to write a small script to aggregate daily numbers for a whole month. I'll get back to you on that.
> - Does the node count have a timeframe or is this since the beginning?
Since the beginning
> - Does the comment count include replies?
Not sure what you mean here, replies to comments? Comment count means all comments on all nodes on the site.
Hey there: On the last question. That is replies to comments - so sounds like your number encompasses that.
Thanks and looking forward to the script.
| Reporter | ||
Comment 10•16 years ago
|
||
Also, is it possible to get a historical look on users so I can get a sense of growth. In particular it would be good to see what the number of users was as of Jan. 1, 2009 so I can see how it's grown over the quarter. Thanks!
| Reporter | ||
Comment 11•16 years ago
|
||
Hey there: Per our meeting today it would be great to see these numbers day by day for the last quarter or at least on Jan 1, Feb 1, March 1 and April 1.
Thanks!
| Assignee | ||
Comment 12•16 years ago
|
||
r24618 commits a simple module for collecting and displaying the following historical stats...
- # of new nodes per day,
- # of new comments per day,
- # of new users per day
# of user logins per day isn't possible to find historic data for, because Drupal doesn't keep any record of this. I'll try to add some simple code to track this going forward if it's not much work, but I'd like to work with the metrics team to set up a more permanent solution for tracking and reporting this stat.
# of new affiliates is the same story. Nothing exists currently to track this, so no historical data. I can write a temp. solution, but this is another good opportunity to bring in the metrics team.
# of new replies is included in # of new comments (per comment #8 & #9)
Comment 13•16 years ago
|
||
copying the metrics team...
| Reporter | ||
Comment 14•16 years ago
|
||
Hey there: Where is this located? Thanks!
| Assignee | ||
Comment 15•16 years ago
|
||
(In reply to comment #14)
> Hey there: Where is this located? Thanks!
oops, sorry.
spreadfirefox.authstage.mozilla.com/admin/stats
Comment 16•16 years ago
|
||
I'd like to suggest that we meet at the all hands and talk a bit about this. I had the chance to talk briefly with alex in irc and I think we can help you get some metrics in mmc
| Assignee | ||
Comment 17•16 years ago
|
||
(In reply to comment #16)
> I'd like to suggest that we meet at the all hands and talk a bit about this. I
> had the chance to talk briefly with alex in irc and I think we can help you get
> some metrics in mmc
agreed. that would be awesome. does someone want to tackle finding a time when we can all meet?
| Assignee | ||
Comment 18•16 years ago
|
||
r24742 commits code to count and display user logins daily
counting affiliates is also done and will committed along with other affiliates updates
| Assignee | ||
Comment 19•16 years ago
|
||
the code for this is causing perf. problems. I've turned off the module for now. I'll have to figure out the problem and refactor some code
| Assignee | ||
Comment 20•16 years ago
|
||
r24800 fixes the perf. problem. turning this back on.
| Reporter | ||
Comment 21•16 years ago
|
||
This is great btw :)
| Assignee | ||
Comment 22•16 years ago
|
||
r24962 checks in the daily new affiliates counting code. i think i just need to make a page to display this info, and that should close this bug out.
| Assignee | ||
Comment 23•16 years ago
|
||
moving this to 3.1 to create the affiliates stats display page
Severity: blocker → normal
Target Milestone: 3.0 → 3.1
| Assignee | ||
Updated•16 years ago
|
Whiteboard: metrics
| Assignee | ||
Updated•16 years ago
|
Target Milestone: 3.1 → 3.0.2
Comment 24•16 years ago
|
||
| Assignee | ||
Updated•16 years ago
|
OS: Mac OS X → All
| Assignee | ||
Updated•16 years ago
|
Hardware: x86 → All
Target Milestone: 3.0.2 → 3.0.3
| Assignee | ||
Updated•16 years ago
|
Target Milestone: 3.0.3 → 3.0.4
| Assignee | ||
Comment 25•16 years ago
|
||
I've worked on a basic stats dashboard on stage,
https://spreadfirefox.authstage.mozilla.com/admin/stats
It's still a little rough around the edges, but the framework is there. I'll be working on few things to clean it up, and this should make it a lot easier to add new data in the future.
Also, note the data on stage is out of date, so the graphs might show some missing data. I'm working on that.
| Assignee | ||
Comment 26•16 years ago
|
||
If you're on VPN, you can see a demo with updated production data here, http://abuchanan-sfx.khan.mozilla.org/admin/stats
you can log in as 'test.admin' with the password 'test.admin'
| Assignee | ||
Comment 27•16 years ago
|
||
Ok, this is on stage at https://spreadfirefox.authstage.mozilla.com/admin/stats
It's still a rough around the edges, but it's a great improvement over the tables of data we had.
We can file new bugs for improvements to that dashboard.
A couple notes...
* you can drag on both the full and summary views to zoom in
* The points data seems wrong, I'm looking into that
* the graphs pull all-time data at first, and you have to zoom in to more recent data. I want to change this to load only a week at first.
Comment 28•16 years ago
|
||
Can we see it? It's asking for user/pass...
| Assignee | ||
Comment 29•16 years ago
|
||
the user / pass for stage is sfx / sfx
Comment 30•16 years ago
|
||
tried that, but I get a page that says Access denied.
Do I have to create a SpreadFirefox account to see it?
http://screencast.com/t/W0Kesym8TwdU
| Assignee | ||
Comment 31•16 years ago
|
||
oh yes, it's an admin panel, so you need an account, and I'll need to add that account to the admin role
| Assignee | ||
Comment 32•16 years ago
|
||
I'm going to close this bug and file new bugs for anything remaining.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 33•16 years ago
|
||
btw, i should mention here, that if you want to log in on stage to see the stats panel, you can use the account
username: test.admin
password: pass
per https://wiki.mozilla.org/Spreadfirefox#Spreadfirefox.stage
Updated•16 years ago
|
Assignee: nobody → buchanae
Comment 34•16 years ago
|
||
verified fixed on https://spreadfirefox.authstage.mozilla.com/admin/stats
Status: RESOLVED → VERIFIED
Updated•14 years ago
|
Product: Websites → Websites Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•