¿Cuáles son parámetros útiles a la tienda cuando el seguimiento de páginas vistas? [cerrado]

StackOverflow https://stackoverflow.com/questions/4477949

  •  11-10-2019
  •  | 
  •  

Pregunta

Quiero implementar una sencilla tabla de la casa que la página pistas usuario ve en mi sitio web. Sin la orientación alguna hipótesis específica, lo que es útil para los datos de tienda? Con el tiempo voy a utilizar para construir gráficos o árboles de decisión a conocer mejor nuestra base de usuarios. Este es estática (sin javascript).

Las cosas que puedo pensar en:

  • URL accedida
  • HTTP referirse [r] er
  • HTTP Accept Idioma
  • Navegador-agente
  • ID de sesión
  • Identificación del usuario (si está conectado)
  • Tiempo visitó
¿Fue útil?

Solución

It depends on how public your site is. If your site requires authentication you can have more controlled statistics because you can trace the user (visitors) history. In the case the user does not require authentication you are limited to the information provided by the SERVER VARIABLES: HTTP_USER_AGENT; REMOTE_USER; REMOTE_ADDR; REMOTE_HOST; REMOTE_PORT; HTTP_COOKIE; HTTP_USER_AGENT.

I have implemented something like this for some non-public site each time the user logs on to the site, the information I'm storing looks like:

  • User Key
  • Remote host IP
  • Date Logon
  • Last Request Datetime
  • Total time connected (minutes)
  • Last Request Minutes
  • Event/Action performed

Otros consejos

Sounds like a good start,

I'd be inclined to store visitor IP address, and derived from that via a geo ip lookup the location of the visitor.

Also you could consider reverse dns'ing the IP to get an idea of the isp you're user is on, you might never use it but then again it could be useful if you have a report of downstream caching causing problems.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top