sk121506 Posted April 13, 2008 Share Posted April 13, 2008 any possible way without tracking by ip address? i want to track which specific users, who are logged into the site, click a certain link. Quote Link to comment https://forums.phpfreaks.com/topic/100921-tracking-who-specifically-clicks-a-link/ Share on other sites More sharing options...
Daniel0 Posted April 13, 2008 Share Posted April 13, 2008 Just log the username instead of the IP address? Quote Link to comment https://forums.phpfreaks.com/topic/100921-tracking-who-specifically-clicks-a-link/#findComment-516102 Share on other sites More sharing options...
sk121506 Posted April 13, 2008 Author Share Posted April 13, 2008 i don't know if that is what i'm exactly looking for. let me try to clarify myself in case i may have missed something. i have a link on my site. i want to track (record in a mysql db) the username that is logged in if they click the link. Quote Link to comment https://forums.phpfreaks.com/topic/100921-tracking-who-specifically-clicks-a-link/#findComment-516112 Share on other sites More sharing options...
dark_mirage Posted April 13, 2008 Share Posted April 13, 2008 On the page that the link goes to, just have a script that adds the user's username to the table you want. I don't know if you wanted someone to supply a script aswell, or just an explenation. So theres the explanation, ask if you need help with the script. Quote Link to comment https://forums.phpfreaks.com/topic/100921-tracking-who-specifically-clicks-a-link/#findComment-516168 Share on other sites More sharing options...
sk121506 Posted April 13, 2008 Author Share Posted April 13, 2008 problem with that is i have no control over the code the link is directed to Quote Link to comment https://forums.phpfreaks.com/topic/100921-tracking-who-specifically-clicks-a-link/#findComment-516170 Share on other sites More sharing options...
dark_mirage Posted April 13, 2008 Share Posted April 13, 2008 ah right, umm in that case, couldn't you link to a page which you do have control over, and then, on that page, run your script, and then automatically redirect to the page you want using the header function? there may be an easier way than this, but that's probably what i'd do. Quote Link to comment https://forums.phpfreaks.com/topic/100921-tracking-who-specifically-clicks-a-link/#findComment-516172 Share on other sites More sharing options...
laffin Posted April 13, 2008 Share Posted April 13, 2008 Thats the way id do it as well <?php // Code for Link tracking header("Location: http://www.external.link"); Quote Link to comment https://forums.phpfreaks.com/topic/100921-tracking-who-specifically-clicks-a-link/#findComment-516197 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.