데이터가 MySQL 데이터베이스에 저장된 분석 기능이있는 페이지 카운터

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

문제

이 질문 , 페이지보기의 수를 추적하고 싶습니다.그러나 해당 질문과 달리 MySQL을 사용하여 데이터를 저장하고 싶습니다.그 특정 페이지와 관련된 데이터를 효율적으로 효율적으로 아프게하기 위해 테이블을 설정하여 어떻게 제안합니까?

페이지 카운터에 "인텔리전스"를 적용하고 싶습니다.전반적인 PageViews 외에도 고유 한 페이지 뷰 (유사)를 추적 할 수 있습니까?이러한 변경 사항에 맞게 위에서 테이블을 어떻게 수정해야합니까?

또한이 정보를 사용하여 광고 "뷰"를 추적 할 수 있습니까?그렇다면 어떻게?그렇지 않은 경우, 그걸 기꺼이 그것을 다른 질문으로 게시 할 것입니다.

감사합니다.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top