stubarny Posted October 11, 2007 Share Posted October 11, 2007 Good evening, I'm writing some php code to count the number of clicks that a link receives. Once the extra click has been counted it will redirect the user to the target webpage. However - it must also allow the user to click the back button once on her browser in order to return to the first page (as oposed to going back to the redirect page which will then instantly send the user to the website that I'm linking to). Sounds tricky to me but indeed.com have managed it. If you click on one of the jobs links on the following webpage you will be taken to a redirect page and then the target webpage. And... if you then use the back button in your browser you will go straight back to the search results, bypassing indeed's redirect page and so keeping navigation easy for the user: http://www.indeed.co.uk/jobs?q=engineer&l= How do they do that?! Thanks everyone, Stu Quote Link to comment https://forums.phpfreaks.com/topic/72836-solved-counting-external-link-clicks-whilst-maintaining-ease-of-navigation/ 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.