php - Tracking browsing pattern of website user -


i own website (typical registration , various links.made in cakephp, mysql).

i want track every user browsing pattern without hurting speed of website.

i tried following db.

-------------------------------------------------------------------------- user_id      |     source_link       | destination_link   |  time_spent(second) -------------------------------------------------------------------------- 1              wwww.../link1       ww..///link2             300 2              link3               \link4                   160 ....... 

then store row in db whenever user click url. in right direction.

if practical how can implement this. if not please suggest me better way that.

depends on how large traffic is.

if want follow pattern best way use google analytics funnels.

if want process traffic process access_log files using hive or dedicated tool.

i not save traffic directly in database (it's not cheap scale high traffic). maybe can save traffic in csv file on disk , insert in mysql using cron , load data syntax faster.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -