JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
Mar 18, 2021 06:53
JS time-on-site tracker new version github.com/saleemkce/timeonsite/releases/tag/v1.1.0 has been released for you to play around. It uses setInterval & setTimout functions extensively and uses localstorage intelligently in near real-time to compute time on site accurately. Should be great for learning time/date functions & newbies. A real-time demo can be seen here saleemkce.github.io/timeonsite
Jul 4, 2020 15:05
we implemented time-on-site tracking for web. saleemkce.github.io/timeonsite Here is a demo that works purely based on JavaScript API for this time criritical component. Ideas are welcome.
Jul 7, 2018 16:13
The project is there on github github.com/saleemkce/timeonsite and real-time time on site demo is available at saleemkce.github.io/timeonsite Thanks guys for encouraging with some stars on the project.
Jul 7, 2018 16:10
Hi all, is there a way to popularize a key project on github? This tries to address time metrics problem in analytics.
May 6, 2018 16:35
yes.
May 6, 2018 16:34
We initially used Navigator.sendBeacon() for timeonsitetracker. But due to a bug in this API, posting JSON data is not possible or compatible in major browsers. Hope to use this API again soon.
May 6, 2018 16:32
@BenjaminGruenbaum that's really good suggestion.
May 6, 2018 16:28
you mean, we send periodic data to server by using socket?
May 6, 2018 16:27
Further data manipulation at this point will block browser from closing or reload.
May 6, 2018 16:26
@BenjaminGruenbaum yes, we can store the current time on page/site data in local storage/cookies. There is time only for this. You got it right!
May 6, 2018 16:25
yes, :)
May 6, 2018 16:24
@MadaraUchiha Do you suggest the font?
May 6, 2018 16:24
When browser closes, we immediately track page close time.
May 6, 2018 16:24
Just open the browser and check in devtools: Tos.getTimeOnPage() you can see useful information.
May 6, 2018 16:22
yea, I agree.
May 6, 2018 16:22
"users with extensions that mess up with time measurements", I consider timeonsite tracker isolated. It doesn't mess with other extensions in browser.
May 6, 2018 16:21
@BenjaminGruenbaum I hope the current implementation is doing the job really great. Hope to optimize it and make it powerful. Yes, I agree with your list. I would say hibernate is highly complicated so far. Others addressed well.
May 6, 2018 16:18
timeonsitetracker.js - its prime goal is to make accurate calculation of time on site/time on page and be greatly useful for web analytics.
May 6, 2018 16:14
"devtools text" is loaded with 6 different colors. Each time, it may show differently on page laod.
May 6, 2018 16:13
:)
May 6, 2018 16:12
you mean, you like the devtools text??
May 6, 2018 16:12
yes, the licence key is dummy.
May 6, 2018 16:10
@Zirak thanks.
May 6, 2018 16:09
We released timeonsite-tracker recently to track time on site metrics for web analytics with some great features. What do you think we can improve in this web tracker saleemkce.github.io/timeonsite ?
 

[iOS][Android][ChaosOverFlow]

Join to become part of the community, not to simply ask questi...
Mar 18, 2021 06:04
And thanks for your help.
Mar 18, 2021 06:03
I need a help. As seen in this issues page github.com/saleemkce/timeonsite/issues/7 Time on site is not persistent on Safari 12, 14 or recent version. If you have that browser, could you open this demo page saleemkce.github.io/timeonsite and confirm that "time-on-site" parameter stays persistent while "time-on-page" resets counter on each page load. It's simple test. Let me know your observations.
 

iOS Dev

Here you can discuss problems and share new hacks about code
Jul 4, 2020 15:19
we implemented time-on-site tracking for web overcoming the problems in web unload events in IOS browsers. saleemkce.github.io/timeonsite Here is a demo that works purely based on JavaScript API for this time critical component. Ideas are welcome on how to improve in IOS browsers tracking time on site metrics.
 

PHP

Support group for those afflicted with PHP. Don't ask to ask, ...
Dec 14, 2018 16:47
No issues. I'm just looking for more suggestions on improving time on page measures saleemkce.github.io/timeonsite
Dec 14, 2018 16:43
instead of mongo-node duo.
Dec 14, 2018 16:43
No, I am not interested to switch to mongodb. But planning to provide stable development in MySQL-PHP itself.
Dec 14, 2018 16:41
project page itself contains some SQL queries for calculating time metrics. I wonder if these can be rewritten in MongoDB easily.
Dec 14, 2018 16:39
That's why timeonstie tracker's analytics is enitrely based on MySQL github.com/saleemkce/timeonsite_analytics I don't know if these queries are written in Mongo directly.
Dec 14, 2018 16:36
@Tiffany Yes, I like that idea greatly.
Dec 14, 2018 16:35
For saving time metrics data instantly, I always thought MySQL to be good fit since PHP supports many drivers for this like PDO, Mysqli etc.
Dec 14, 2018 16:34
I think of dropping support of MongoDB since that's updating itself too fast all the time. It tracks data instantly just like MySQL but not that stable.
Dec 14, 2018 16:32
yes it's intentional because we measure only active time spent on time. I initially planned to create it entirely on LAMP stack since I like PHP and MySQL very much.
Dec 14, 2018 16:30
that's metrics precision.
Dec 14, 2018 16:29
sorry by PHP, I meant Mysql only.
Dec 14, 2018 16:27
I recently created a tracker for web analytics intended for metrics and accuracy. saleemkce.github.io/timeonsite Thinking about stable backend to be utilized to be PHP or Mongodb.
Dec 16, 2014 07:16
A preview of the app I am talking about could be found here (osipage.com) but the new app will be much more elegant, public and useful.
Dec 16, 2014 07:14
I have plans for creating a big application in PHP that helps in accessing web pages in a smarter way. I am able to create this script myself but I think it's a common scenario so I don't want to reinvent the wheel or waste time rewriting the whole logic. A script is already available here php-ease.com/classes/sitemap.html but it does not update URL with count 1 at a time. Any help greatly appreciated.
Dec 16, 2014 06:49
it would be great if this is done with XML reader/writer because they are more efficient than the above approach. This is example site that talks about this: stackoverflow.com/questions/20234072/…
Dec 16, 2014 06:46
I have a problem generating dynamic sitemap for the site. I could find numerous PHP scripts that does this job. But, the problem is, they just fetch 1000s of URLs from DB table and create the intended sitemap.xml at once. And I want to just update the existing sitemap 1 URL at the time. I don't want to rewrite the whole XML file for just 1 URL update. Do you have any link or script that does this job?
Dec 16, 2014 06:40
hi everybody..
 

SQL

Got a SQL question? Any SQL flavor here, just ask. Indicate yo...
Jul 7, 2018 16:11
This is interesting for those loving to find session duration analytics in MySQL database comprising 100k records. medium.com/swlh/… What do you think? how can we optimize the queries?