Domanda

Mi piace Questa domanda , desidero tenere traccia del numero di visualizzazioni di pagina.Tuttavia, a differenza di questa domanda, vorrei utilizzare MySQL per memorizzare i dati.Come proponi di configurare la mia tabella per dovere in modo efficiente i dati relativi a quella pagina specifica?

Vorrei anche applicare una "intelligenza" al contatore della pagina.Come posso tenere traccia delle uniche Pageviews (simili a così) in aggiunta alle Pageviews complete?Come dovrei modificare la tabella dall'alto per soddisfare queste modifiche?

Inoltre, potrei usare queste informazioni per tracciare la pubblicità "Viste"?Se é cosi, come?Se no, allora posterò volentieri come un'altra domanda.

Grazie.

È stato utile?

Soluzione

This could be the structure of the table you would record every-single-hit.

id | date | ip | user-cookie | agent

And then for performance reasons you could have another table that would be updated by a cron-job.

id | unique-hits

How to define a unique user?
This is a bit of a grey area where your own levels of paranoia kick in. A unique user can be a registered user and that should count as really one hit per user. You can follow the flawed one ip / one user. You can mix and match IP's and user agent's to try and better debunk unique users. Time can also be put into the mix, say every IP after x days will count as a new user.

Do you have a digital fingeprint?
Flash version, and other odities may cause your browser to be "different" from all other browsers creating a more unique view of yourself. Hit the great https://panopticlick.eff.org/ for a preview of what you may look like to a server.

How does Google Analytics does it?
Aparenttly they go cookie all the way.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top