mga_ka_php Posted April 1, 2009 Share Posted April 1, 2009 how do i track returning visitors? how will i know if the user is a returning visitor? i stored their ip address but ip address always changes. Link to comment https://forums.phpfreaks.com/topic/152017-track-returning-visitors/ Share on other sites More sharing options...
chmpdog Posted April 1, 2009 Share Posted April 1, 2009 I use google analytics, they have everything to track traffic. But regarding the ip address, they only change if the user changes computer; making it a fairly good way to track them. Link to comment https://forums.phpfreaks.com/topic/152017-track-returning-visitors/#findComment-798353 Share on other sites More sharing options...
Maq Posted April 1, 2009 Share Posted April 1, 2009 I use google analytics, they have everything to track traffic. But regarding the ip address, they only change if the user changes computer; making it a fairly good way to track them. EDIT: Read the question wrong, cookies is what you want. Link to comment https://forums.phpfreaks.com/topic/152017-track-returning-visitors/#findComment-798354 Share on other sites More sharing options...
Philip Posted April 1, 2009 Share Posted April 1, 2009 You can use cookies Link to comment https://forums.phpfreaks.com/topic/152017-track-returning-visitors/#findComment-798355 Share on other sites More sharing options...
chmpdog Posted April 1, 2009 Share Posted April 1, 2009 $Yummy = $_COOKIE['choc_chip']; Haha... I like your sig. but back to the topic, I would only recommend using cookies if you have something that isnt really important to track, because the user can just clear cookies.. and well it goes down hill from there. Link to comment https://forums.phpfreaks.com/topic/152017-track-returning-visitors/#findComment-798357 Share on other sites More sharing options...
mga_ka_php Posted April 1, 2009 Author Share Posted April 1, 2009 but not all users enable their cookies? Link to comment https://forums.phpfreaks.com/topic/152017-track-returning-visitors/#findComment-798366 Share on other sites More sharing options...
Maq Posted April 1, 2009 Share Posted April 1, 2009 but not all users enable their cookies? And you can clear your cookies. What exactly is this for? Link to comment https://forums.phpfreaks.com/topic/152017-track-returning-visitors/#findComment-798372 Share on other sites More sharing options...
Philip Posted April 1, 2009 Share Posted April 1, 2009 No matter what the OP does there will be a work around, as with well, pretty much everything in the programming world it seems. Cookies - you can clear them Sessions - destroyed when the browser closes IP - Dynamic IPs etc Link to comment https://forums.phpfreaks.com/topic/152017-track-returning-visitors/#findComment-798379 Share on other sites More sharing options...
mga_ka_php Posted April 1, 2009 Author Share Posted April 1, 2009 what im trying to accomplish is that i have a website which some parts are restricted but users can view that restricted page 5 times.if more than 5, they need to register to access the restricted page. But how do i track the returning visitors? Currently, i used the ip address, but its not a solution because ip changes. how do i accomplish this type of setup? Link to comment https://forums.phpfreaks.com/topic/152017-track-returning-visitors/#findComment-798384 Share on other sites More sharing options...
mga_ka_php Posted April 1, 2009 Author Share Posted April 1, 2009 can i get the mac address? Link to comment https://forums.phpfreaks.com/topic/152017-track-returning-visitors/#findComment-798385 Share on other sites More sharing options...
Philip Posted April 1, 2009 Share Posted April 1, 2009 It is not possible to get the mac address. Link to comment https://forums.phpfreaks.com/topic/152017-track-returning-visitors/#findComment-798388 Share on other sites More sharing options...
chmpdog Posted April 1, 2009 Share Posted April 1, 2009 what im trying to accomplish is that i have a website which some parts are restricted but users can view that restricted page 5 times.if more than 5, they need to register to access the restricted page. Based on past experience I have found it is a bad business plan to "force" users to sign up. Make them "want" to sign up by giving them extended benefits. Link to comment https://forums.phpfreaks.com/topic/152017-track-returning-visitors/#findComment-799061 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.