Recording clicks in a webpage

Hy
I have a web page with lots of links on it, is there any way to record
clicks made on theese links to a database?
For now a use a "redirect,php?url=http://blabla.bla......" Are there
any other solutions? I dont like that the user can see the redirect in
the status-bar when he has the mouse over it. I was thinking about
using javascript to change the href of the link on the onClick event.
quamis [ Mo, 28 Mai 2007 10:43 ] [ ID #1724549 ]

Re: Recording clicks in a webpage

Why not just use Google Analytics:
http://www.google.com/analytics/

--
Chris
http://www.veign.com / http://www.veign.com/blog
--
"_q_u_a_m_i_s's" <quamis [at] gmail.com> wrote in message
news:1180341817.368403.187950 [at] q75g2000hsh.googlegroups.com.. .
> Hy
> I have a web page with lots of links on it, is there any way to record
> clicks made on theese links to a database?
> For now a use a "redirect,php?url=http://blabla.bla......" Are there
> any other solutions? I dont like that the user can see the redirect in
> the status-bar when he has the mouse over it. I was thinking about
> using javascript to change the href of the link on the onClick event.
>
Veign [ Mo, 28 Mai 2007 17:09 ] [ ID #1724557 ]

Re: Recording clicks in a webpage

On May 28, 6:09 pm, "Veign" <NOSPAMvei... [at] gmail.com> wrote:
> Why not just use Google Analytics:http://www.google.com/analytics/
>
> --
> Chrishttp://www.veign.com/http://www.veign.com/blog
> --"_q_u_a_m_i_s's" <qua... [at] gmail.com> wrote in message
>
> news:1180341817.368403.187950 [at] q75g2000hsh.googlegroups.com.. .
>
> > Hy
> > I have a web page with lots of links on it, is there any way to record
> > clicks made on theese links to a database?
> > For now a use a "redirect,php?url=http://blabla.bla......" Are there
> > any other solutions? I dont like that the user can see the redirect in
> > the status-bar when he has the mouse over it. I was thinking about
> > using javascript to change the href of the link on the onClick event.

Beucause i need to calculate the ranking of each link... something
digg.com`ish.... so i need to know when a user clicks on something.
quamis [ Fr, 01 Juni 2007 22:32 ] [ ID #1728039 ]

Re: Recording clicks in a webpage

> Beucause i need to calculate the ranking of each link... something
> digg.com`ish.... so i need to know when a user clicks on something.
>

Analytics has the option to add a piece of code to each link and when
clicked it tracks how many times its been clicked and of course all the
other good information that comes with analytics.

Heres the code,

onClick="javascript:urchinTracker('/outgoing/ebay_com');"

You can name these whatever you want and group them how you want like this:

onClick="javascript:urchinTracker('/electronic/anylink_here' );"
onClick="javascript:urchinTracker('/electronic/craigslist_or g');"
onClick="javascript:urchinTracker('/electronic/ebay_com');"

onClick="javascript:urchinTracker('/another_category/somethi ng_else_net');"
onClick="javascript:urchinTracker('/another_category/somethi ng_else_org');"
onClick="javascript:urchinTracker('/another_category/somethi ng_else_com');"


Of course each of the pieces of code above would be placed in each link.
For example, if you have a link to ebay you would use it like:

<a href="http://ebay.com"
onClick="javascript:urchinTracker('/electronic/ebay_com');" >check out
ebay</a>

It will appear in your Analytics content sections just like any other
page but you can then sort them using filters: Hers what it will look like:
Pageviews Unique Pageviews
/outgoing/ebay_com 13 11


However there are some benefits to storing it in a mysql database such
as the option to sort links each time a page is loaded based on the
popularity of each link or display the number of clicks each link has
had. However I'm new to php so I'm not exactly sure how to do this.

Hope this helps.
zach [ Sa, 02 Juni 2007 09:02 ] [ ID #1728616 ]

Re: Recording clicks in a webpage

zach a écrit :
>
>> Beucause i need to calculate the ranking of each link... something
>> digg.com`ish.... so i need to know when a user clicks on something.
>>
>
> Analytics has the option to add a piece of code to each link and when
> clicked it tracks how many times its been clicked and of course all the
> other good information that comes with analytics.
>
> Heres the code,
>
> onClick="javascript:urchinTracker('/outgoing/ebay_com');"
>
> You can name these whatever you want and group them how you want like this:
>
> onClick="javascript:urchinTracker('/electronic/anylink_here' );"
> onClick="javascript:urchinTracker('/electronic/craigslist_or g');"
> onClick="javascript:urchinTracker('/electronic/ebay_com');"
>
> onClick="javascript:urchinTracker('/another_category/somethi ng_else_net');"
> onClick="javascript:urchinTracker('/another_category/somethi ng_else_org');"
> onClick="javascript:urchinTracker('/another_category/somethi ng_else_com');"
>
>
> Of course each of the pieces of code above would be placed in each link.
> For example, if you have a link to ebay you would use it like:
>
> <a href="http://ebay.com"
> onClick="javascript:urchinTracker('/electronic/ebay_com');" >check out
> ebay</a>
>
> It will appear in your Analytics content sections just like any other
> page but you can then sort them using filters: Hers what it will look like:
> Pageviews Unique Pageviews
> /outgoing/ebay_com 13 11
>
>
> However there are some benefits to storing it in a mysql database such
> as the option to sort links each time a page is loaded based on the
> popularity of each link or display the number of clicks each link has
> had. However I'm new to php so I'm not exactly sure how to do this.
>
> Hope this helps.

You could also have a look at ClickHeat, that traces all clicks on your
page (links or not) and give you a heat map :

http://www.labsmedia.com/clickheat/index.html


--
Julien CROUZET
CTO - Directeur Technique
julien [at] theoconcept.com - (+33)6 50 09 52 24
Julien CROUZET [ Sa, 02 Juni 2007 14:36 ] [ ID #1728617 ]

Re: Recording clicks in a webpage

Analytics does that too but they call it "site overlay"...well at least
its similar.
>
> You could also have a look at ClickHeat, that traces all clicks on your
> page (links or not) and give you a heat map :
>
> http://www.labsmedia.com/clickheat/index.html
>
>
zach [ Do, 07 Juni 2007 08:36 ] [ ID #1732528 ]

Re: Recording clicks in a webpage

I don`t want to use google or any other web based counter, beucause i
need real-time acces to the links "hits", so i can reorder them in the
page. Those links will be mostly links to external sites(very simmilar
to digg.com) and i dont really care about them being indexed &
monitored by google analytics.

I used the variant i was thinking about in the begining, so that it
will work on browsers with js disabled too, and the href`s will remain
intact so a web spider will be able to index it(like google`s spider).
I do something like this:

<a href="blabla.com" onclick="this.href='recordClick.php?
redirect=blabla.com'>click here</a>

The heatmap thing is very interesting..but the pages i`ll generate
will be completly dynamic in theyr arrangement(based on number of
votes & clicks 7 comments for each link), so dosen`t really apply
here.

On Jun 7, 9:36 am, zach <wackzi... [at] gmail.com> wrote:
> Analytics does that too but they call it "site overlay"...well at least
> its similar.
>
>
>
> > You could also have a look at ClickHeat, that traces all clicks on your
> > page (links or not) and give you a heat map :
>
> >http://www.labsmedia.com/clickheat/index.html
quamis [ Do, 07 Juni 2007 18:30 ] [ ID #1732529 ]

Re: Recording clicks in a webpage

Did you look into Pligg:
http://www.pligg.com/

Since you mention a Digg like website this might be a good start.

--
Chris
http://www.veign.com / http://www.veign.com/blog
--
"_q_u_a_m_i_s's" <quamis [at] gmail.com> wrote in message
news:1181233844.401516.94580 [at] k79g2000hse.googlegroups.com...
>I don`t want to use google or any other web based counter, beucause i
> need real-time acces to the links "hits", so i can reorder them in the
> page. Those links will be mostly links to external sites(very simmilar
> to digg.com) and i dont really care about them being indexed &
> monitored by google analytics.
>
> I used the variant i was thinking about in the begining, so that it
> will work on browsers with js disabled too, and the href`s will remain
> intact so a web spider will be able to index it(like google`s spider).
> I do something like this:
>
> <a href="blabla.com" onclick="this.href='recordClick.php?
> redirect=blabla.com'>click here</a>
>
> The heatmap thing is very interesting..but the pages i`ll generate
> will be completly dynamic in theyr arrangement(based on number of
> votes & clicks 7 comments for each link), so dosen`t really apply
> here.
>
> On Jun 7, 9:36 am, zach <wackzi... [at] gmail.com> wrote:
>> Analytics does that too but they call it "site overlay"...well at least
>> its similar.
>>
>>
>>
>> > You could also have a look at ClickHeat, that traces all clicks on your
>> > page (links or not) and give you a heat map :
>>
>> >http://www.labsmedia.com/clickheat/index.html
>
>
Veign [ Do, 07 Juni 2007 21:30 ] [ ID #1732530 ]

Re: Recording clicks in a webpage

On Jun 7, 10:30 pm, "Veign" <NOSPAMvei... [at] gmail.com> wrote:
> Did you look into Pligg:http://www.pligg.com/
>
> Since you mention a Digg like website this might be a good start.
>
> --
> Chrishttp://www.veign.com/http://www.veign.com/blog
> --"_q_u_a_m_i_s's" <qua... [at] gmail.com> wrote in message
>
> news:1181233844.401516.94580 [at] k79g2000hse.googlegroups.com...
>
> >I don`t want to use google or any other web based counter, beucause i
> > need real-time acces to the links "hits", so i can reorder them in the
> > page. Those links will be mostly links to external sites(very simmilar
> > to digg.com) and i dont really care about them being indexed &
> > monitored by google analytics.
>
> > I used the variant i was thinking about in the begining, so that it
> > will work on browsers with js disabled too, and the href`s will remain
> > intact so a web spider will be able to index it(like google`s spider).
> > I do something like this:
>
> > <a href="blabla.com" onclick="this.href='recordClick.php?
> > redirect=blabla.com'>click here</a>
>
> > The heatmap thing is very interesting..but the pages i`ll generate
> > will be completly dynamic in theyr arrangement(based on number of
> > votes & clicks 7 comments for each link), so dosen`t really apply
> > here.
>
> > On Jun 7, 9:36 am, zach <wackzi... [at] gmail.com> wrote:
> >> Analytics does that too but they call it "site overlay"...well at least
> >> its similar.
>
> >> > You could also have a look at ClickHeat, that traces all clicks on your
> >> > page (links or not) and give you a heat map :
>
> >> >http://www.labsmedia.com/clickheat/index.html

Thanx, the pligg seems interesting:)
quamis [ Di, 12 Juni 2007 10:16 ] [ ID #1735950 ]
PHP » alt.php » Recording clicks in a webpage

Vorheriges Thema: Re: Sexual fascism and the Mark Foley scandel
Nächstes Thema: mail sent; is posssible to have a list?