|
Posted by Geoff Berrow on 10/09/06 23:52
Message-ID: <1160435253.194506.321650@e3g2000cwe.googlegroups.com> from
Robertcode contained the following:
>Hey all, I'm trying to create a custom stats script for my site, I'm
>new to php and I'm just wondering is there a way to tell what link
>someone clicked to leave my site?
>
>So if I've got links to section a, section b, section c, google, yahoo,
>msn and someone clicks on google I can record that.
>
I think you'll have to organise your links differently.
Instead of having links in the form of
<a href='http://www.google.com'>Google</a>
you could have:
<a href='links.php?http://www.google.com'>Google</a>
Then in links.php
<?php
$link=$_SERVER['QUERY_STRING'];
//Insert code to record link clicked here in db or file
header("Location: $link");
?>
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Navigation:
[Reply to this message]
|