Hello,
I want to know if there is a way to get the time spent by each user on each page created in a Django Project.
If there is how do I implement it?
Thank you
Could you give me an example of how it works in step as I am new to Javascript after adding the Javascript above to each template?
- ahmed.hisham87 4 years, 5 months ago@ahmed above is an example , just try to use the above example in your code and it should work.
- Vengatas this ticket more specific to question and its already answered. Can you close the ticket?
- Vengat
We can achieve this by using some Javascript library,
Find below the high level draft version you can use it,And one more thing which is not related to Django Project alone, we can apply the same concept in any backend framework,
We can write our own Javascript like below,
Or another approach is using TimeJS library to handle it
and push the data to Django backend using above Jquery POST call