Coder Social home page Coder Social logo

Comments (7)

will123195 avatar will123195 commented on July 2, 2024

+1 condor should probably save a cookie and push a unique cookieId for each user with every log

from condor.

kesla avatar kesla commented on July 2, 2024

Does that really belong here? You can set/read cookies on the server, so we could do it here and then reduce the amount of data needed to be sent from condor.

from condor.

will123195 avatar will123195 commented on July 2, 2024

Currently I can't tell from the logs if one user clicked 10 times, or if multiple users were on the same page at the same time.

I think we do need a visitorId column. It can be a small incrementing base62 number so we're only adding a few bytes.

from condor.

will123195 avatar will123195 commented on July 2, 2024

And also visitorSessionId could increment after 30 minutes of inactivity. So we can determine Unique Visitors vs Visits.

from condor.

kesla avatar kesla commented on July 2, 2024

@will123195 I didn't question the need to be able to identify a user, what I did question is if it's something that should be done here since we could do it in the server. But now that I come to think about it there's a potential race-condition in setting it on the server, so let's go with a cookie in the frontend.

I guess we could create a sessionId on the client, even though we also can get it from the logs... But it might be one of those things that would be fairly simple to add through a session cookie in here and then make getting data from the logs a lot eaiser.

from condor.

will123195 avatar will123195 commented on July 2, 2024

@kesla ah i missed what you meant before. agreed.

from condor.

kesla avatar kesla commented on July 2, 2024

@will123195 Alright, but like I wrote I changed my mind so let's add it here. I'd gladly review a PR if you have the bandwidth for it, otherwise I could take a look at adding it a bit later.

from condor.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.