homepage Welcome to WebmasterWorld Guest from 54.196.196.62
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / WebmasterWorld / Website Analytics - Tracking and Logging
Forum Library, Charter, Moderators: Receptional & mademetop

Website Analytics - Tracking and Logging Forum

    
Counting outgoing clicks
orgaseo




msg:905897
 11:43 am on Nov 25, 2004 (gmt 0)

I'd like to count clicks outgoing links.

Is this a search engine friendly way in PHP?


<?
$sql="insert into track (date, link) values(now(),'http://foo.bar');
$r=mysql_db_query($db,"$sql",$connect);
header("http://foo.bar");
?>

 

MichaelBluejay




msg:905898
 3:04 am on Nov 29, 2004 (gmt 0)

I don't know PHP but I'll assume your code is functional, looks like it would be.

If by "search engine friendly" you mean "Will the spiders follow the link?", then it depends on what your link looks like, but if it's something like <A href="clicks.php?adnumber=5>The Ad Text</A> then yes, the spiders will follow it.

If by "search engine friendly" you mean that you want the link to pass PR to the destination, then no, it won't. I don't know a way to track outbound clicks from your site and still have a clean, direct link to the destination. Maybe there's such a thing and I just don't know about it, though.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Website Analytics - Tracking and Logging
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved