HighDots Forums  

How do I log who links away from me?

Search Engine Optimization Discussion about SEO/Search Engine Optimization (alt.internet.search-engines)


Discuss How do I log who links away from me? in the Search Engine Optimization forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Big Bill
 
Posts: n/a

Default How do I log who links away from me? - 06-09-2005 , 06:56 PM






If I have a link from my site A to someone else's site B, How can I
determine who has got to site B through my link on site A? This would
be without any co-operation from site B, by the way.

BB
--
www.kruse.co.uk/ seo (AT) kruse (DOT) demon.co.uk
seo that watches the river flow...
--

Reply With Quote
  #2  
Old   
John Bokma
 
Posts: n/a

Default Re: How do I log who links away from me? - 06-09-2005 , 07:05 PM






Big Bill wrote:

Quote:
If I have a link from my site A to someone else's site B, How can I
determine who has got to site B through my link on site A? This would
be without any co-operation from site B, by the way.
By using a redirection script, maybe:

<a href="http://siteB.invalid/" onClick="gotoB()">goto B</a>

Exact measurement is difficult but it will give you an idea.

gotoB must be something that is hard to get the URL to siteB from, and must
call a cgi script on your site that does a redirect to the actual site.

--
John Perl SEO tools: http://johnbokma.com/perl/
Experienced (web) developer: http://castleamber.com/
Get a SEO report of your site for just 100 USD:
http://johnbokma.com/websitedesign/seo-expert-help.html


Reply With Quote
  #3  
Old   
Chris Hope
 
Posts: n/a

Default Re: How do I log who links away from me? - 06-09-2005 , 07:15 PM



Big Bill wrote:

Quote:
If I have a link from my site A to someone else's site B, How can I
determine who has got to site B through my link on site A? This would
be without any co-operation from site B, by the way.
You'd need to log it via scripting.

There's a couple of ways to do this:

<a href="/redirect.php?url=www.domain.com">text</a>
<a href="/redirect.php?id=1">text</a>

In the first example above we just redirect to the domain passed in
after logging it. In the second example we pass an id number which is
then looked up in the database (or even stored in the script) and then
redirect to the appropriate url after logging it.

A second approach is like this:

<a href="http://www.domain.com" onclick="foo(this); return
false;">text</a>

and then the "foo" function would look something like this:

function foo(a) {
window.location = "/redirect.php?url=" + escape(a.href);
}

This preserves the direct link to the other site for search engines but
invokes the onclick event which sends the user first to our redirect
script for logging purposes. If they don't have javascript then they'll
still be redirected but there won't be any logging.

Using the "id" idea you could do it like this in javascript instead:

<a href="http://www.domain.com" onclick="foo(1); return
false;">text</a>

function foo(id) {
window.location = "/redirect.php?id=" + id;
}

--
Chris Hope | www.electrictoolbox.com | www.linuxcdmall.com


Reply With Quote
  #4  
Old   
Big Bill
 
Posts: n/a

Default Re: How do I log who links away from me? - 06-10-2005 , 01:01 AM



On Fri, 10 Jun 2005 11:15:34 +1200, Chris Hope
<blackhole (AT) electrictoolbox (DOT) com> wrote:

Quote:
Big Bill wrote:

If I have a link from my site A to someone else's site B, How can I
determine who has got to site B through my link on site A? This would
be without any co-operation from site B, by the way.

You'd need to log it via scripting.

There's a couple of ways to do this:

a href="/redirect.php?url=www.domain.com">text</a
a href="/redirect.php?id=1">text</a

In the first example above we just redirect to the domain passed in
after logging it. In the second example we pass an id number which is
then looked up in the database (or even stored in the script) and then
redirect to the appropriate url after logging it.

A second approach is like this:

a href="http://www.domain.com" onclick="foo(this); return
false;">text</a

and then the "foo" function would look something like this:

function foo(a) {
window.location = "/redirect.php?url=" + escape(a.href);
}

This preserves the direct link to the other site for search engines but
invokes the onclick event which sends the user first to our redirect
script for logging purposes. If they don't have javascript then they'll
still be redirected but there won't be any logging.

Using the "id" idea you could do it like this in javascript instead:

a href="http://www.domain.com" onclick="foo(1); return
false;">text</a

function foo(id) {
window.location = "/redirect.php?id=" + id;
}
Thanks Chris I don't know if I can run php. I'll ask.

BB
--
www.kruse.co.uk/ seo (AT) kruse (DOT) demon.co.uk
seo that watches the river flow...
--


Reply With Quote
  #5  
Old   
Chris Hope
 
Posts: n/a

Default Re: How do I log who links away from me? - 06-10-2005 , 01:05 AM



Big Bill wrote:

Quote:
On Fri, 10 Jun 2005 11:15:34 +1200, Chris Hope
blackhole (AT) electrictoolbox (DOT) com> wrote:

Big Bill wrote:

If I have a link from my site A to someone else's site B, How can I
determine who has got to site B through my link on site A? This
would be without any co-operation from site B, by the way.

You'd need to log it via scripting.

There's a couple of ways to do this:

a href="/redirect.php?url=www.domain.com">text</a
a href="/redirect.php?id=1">text</a

In the first example above we just redirect to the domain passed in
after logging it. In the second example we pass an id number which is
then looked up in the database (or even stored in the script) and then
redirect to the appropriate url after logging it.

A second approach is like this:

a href="http://www.domain.com" onclick="foo(this); return
false;">text</a

and then the "foo" function would look something like this:

function foo(a) {
window.location = "/redirect.php?url=" + escape(a.href);
}

This preserves the direct link to the other site for search engines
but invokes the onclick event which sends the user first to our
redirect script for logging purposes. If they don't have javascript
then they'll still be redirected but there won't be any logging.

Using the "id" idea you could do it like this in javascript instead:

a href="http://www.domain.com" onclick="foo(1); return
false;">text</a

function foo(id) {
window.location = "/redirect.php?id=" + id;
}

Thanks Chris I don't know if I can run php. I'll ask.
Doesn't have to be php - I just needed some sort of extension in my
filenames You could use asp, perl or whatever you are comfortable /
able to use.

--
Chris Hope | www.electrictoolbox.com | www.linuxcdmall.com


Reply With Quote
  #6  
Old   
Big Bill
 
Posts: n/a

Default Re: How do I log who links away from me? - 06-10-2005 , 02:25 AM



On Fri, 10 Jun 2005 17:05:44 +1200, Chris Hope
<blackhole (AT) electrictoolbox (DOT) com> wrote:


Quote:
Thanks Chris I don't know if I can run php. I'll ask.

Doesn't have to be php - I just needed some sort of extension in my
filenames You could use asp, perl or whatever you are comfortable /
able to use.
I'm comfortable with none of them actually, just don't have time to
learn. So I may be getting one of you guys to do me a script some day.

BB
--
www.kruse.co.uk/ seo (AT) kruse (DOT) demon.co.uk
seo that watches the river flow...
--


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.