-
Notifications
You must be signed in to change notification settings - Fork 970
Ledger timer resetting #3696
Comments
I can confirm this issue. (Have been screenshotting my ledger to keep an eye on changes.) I’ve only seen it happen to websites with less than 1 minute on record. Not sure if that is significant. It started happening right after midnight local time (CEST). Some of the sites I’d visited the previous day started dropping out on subsequent visits. No clear pattern. Update: It seems to be related to aborting page loads, or navigating away from a page very quickly after it has been loaded. |
For me, there is one site that I visit a lot. It should have a few hours on the timer, but right now it's showing 48 seconds. There is another site that I visited once a couple days ago, but then put my computer to sleep with the site open for a couple hours. That one is still there, showing 2h 23min. |
@msp1111111 & @Aeyoun -- hmmm. i think i may have tracked that down. when we push a new beta, is it OK to point you both at it to try it out? thanks! |
I’m glad to hear that. Hope you’ll release a new beta soon. I’m game for a 64-bit RPM build. Can dig up a Mac or Win PC if need be, but it will get less testing. |
we have a linux build too! |
@Aeyoun & @msp1111111 - can you check out the builds on https://github.com/brave/browser-laptop/releases/tag/0.12.0dev and see if you are still seeing this issue? @Aeyoun - can you also see if #3716 is addressed by this as well? thanks and good luck! |
Yes, thanks for the super-quick response! Date: Tue, 6 Sep 2016 12:32:20 -0700 @Aeyoun & @msp1111111 - can you check out the builds on https://github.com/brave/browser-laptop/releases/tag/0.12.0dev and see if you are still seeing this issue? @Aeyoun - can you also see if #3716 is addressed by this as well? thanks and good luck! — |
@msp1111111 - sorry, couldn't quite parse your note. just checking: are you able to run the new release? thanks (and sorry for the confusion) |
Oh, look at that. I’ve seen mentions of favicons in the code, but now they show up on the ledger list too. It also counts +1 view per page view, didn’t do that before (wasn’t sure it was expected to either!) I don’t like that it’s counting every time I switch back and forth between two tabs a “view”. “A pageview” in every other context is one loaded page, and not literally how many times the loaded page is displayed in a tab without a round-trip to a server. Maybe I’m old fashioned that way. #3716 seems to be resolved as well. |
@Aeyoun - thanks. i am sensitive to your issue about whether switch tabs back and forth should count as a view or not (though i suspect we agree that the timer should keep running). let me look into that... |
Please make sure to add a concise outline of the steps for QA to confirm any changes. Thanks! |
I have just a few moments ago updated to 0.12.0. I'll keep an eye on the site timer and see if anything gets reset again. Date: Tue, 6 Sep 2016 15:00:55 -0700 @msp1111111 - sorry, couldn't quite parse your note. just checking: are you able to run the new release? if so, does it fix this issue? thanks (and sorry for the confusion) — |
@mrose17 , the timer should run when the tab is in the foreground, and the view count counter should only increment once after the page has loaded when the tab becomes focused for the first time. I.e. load Site 1 in Tab A, and Site 2 in Tab 2. That should be one view per tab regardless of how often I switch between them. Only count views on load. Background tabs should only be counted as a view when/if they’re brought to the foreground. (I may close a background tab without ever activating it if I change my mind about reading it.) The same goes for session restores during start-up, I think. Don’t count tabs from a restored session as an additional view. How people think of this stuff may be different from person to person, but the above seems logical to me and how I use the browser. |
Hm, noticing a problem but not sure if it’s the same, new, or different issue. So I have 29 sec on record and 1 visit for NPR.org. When I visit NPR.org and wait a 50 seconds, and then go back to check the ledger it will still display 29 sec and 1 visit. I can restart Brave and try again, but NPR.org remains listed with just that one visit of 29 seconds regardless of how many times I visit them and how long I stay. LEDGER_PUBLISHER_DEBUG output provided here. I’ve noticed the same issue with six other domains. The majority of websites seems to work now, however. |
As far as I can tell, the timer is working for me now correctly on the blogs that I visit. There is a video site, viki.com, that I watch entire hour-long episodes on and that doesn't time correctly. Perhaps the timer excludes media playing? |
@msp1111111 - thanks. i am able to watch a video on viki -- dramaworld -- and it looks like that it is being counted... still investigating. |
also, just fyi: if you want to check to see if a URL is considered a publisher, go here and enter the URL. |
@msp1111111 - just a thought (that @bridiver can confirm). i believe that tabs have a maximum duration associated with them (akin to an inactivity timer). so here's my question: did viki.com show up at all or just for 30s or something like that? thanks! |
@msp1111111 can you set an environment variable to help collect more info? We need to set: LEDGER_PUBLISHER_DEBUG=true You probably already know how to set environment variables, but just in case:
Thanks 😄 |
there is an idle timer that stops the clock if you lock your computer or have no mouse/keyboard activity for 15 minutes. The inactivity monitor applies to the entire OS, not just Brave |
@bridiver - so, we'd expect 15m to be the maximum unless the mouse is being moved? |
Yep, but we may want to increase that time if the page is displaying video and only stop the timer on screen lock |
@Aeyoun - thanks, so there is one very interesting thing going on here. when i go to that URL, my logging looks like this:
which indicates that the URL was recognized as being associated with a publisher. your logging doesn't show that. since (i know) that we haven't changed the status of NPR on the ledger, and since this shows that NPR is considered a publisher, the only explanation is that the javascript that does the publisher lookup is blowing up. we can check for that! let's try an experiment: run your test again, do an 'inspect element' in that tab and look at the console. any errors there relating to if you see |
@mrose17 I watched viki yesterday for about an hour total. The timer shows about 5 min. I believe the page count is correct, however. @bsclifton I set that environment variable as you instructed, but am not sure how to access the log, sorry. Also, just a thought -- viki shows their ads within their videos (which are blocked by Brave), not on the page in general, if that makes any difference. |
I’ve seen the 15 minute idle timer, and haven’t said anything. I personally feel no more than 3–5 minuets inactivity of Brave (except when in fullscreen API for media playback) should stop the counter. I feel like I have to actively open a new blank tab before going to the bathroom or change to another program. Stressful micro-management that I really shouldn’t have to deal with. (I’ve worked with and made several browser extensions that tracker users activity per-domain in the past. User feedback was always that the timer should stop after no more than 90 seconds of tab inactivity.) |
No such error. pageInformation.js doesn’t show up in the devtools:source tab either, but it doesn’t for any other tab either. Assuming it’s been hidden or something. |
well, i don't know why "it works for me, but not for you". the "tell" is the lack of publisher information in the logging. i'll add some more logging to the next version and perhaps we can get a better understanding. |
i like the idea of 90s timer. |
the 15 minute timer only applies if Brave is in the foreground so it's basically a Brave activity timer. We're not set on 15 minutes either, it just seemed like a reasonable place to start |
closed due to lack of focus. |
My ledger timer resets every once in a while, so some of the time I've spent on certain sites is gone. Also, some of the sites that I marked to not include are back. I don't see an obvious pattern to the sites that have been reset and the sites that are not.
Win7
ver 0.11.6
Did you search for similar issues before submitting this one?
Describe the issue you encountered:
Expected behavior:
1.
2.
3.
The text was updated successfully, but these errors were encountered: