Welcome, Guest. Please login or register.
March 21, 2010, 10:24:43 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
110577 Posts in 15968 Topics by 9313 Members
Latest Member: Gudrun
* Home Help Search Login Register
+  WebsiteBaker Community Forum
|-+  English
| |-+  Modules (Moderators: Argos, BerndJM)
| | |-+  Link counter?
Pages: [1] Go Down Print
Author Topic: Link counter?  (Read 86 times)
Roych

Offline Offline

Posts: 41


« on: March 10, 2010, 09:43:17 PM »

Hi

Maybe this was already asked but anyway!

I need a counter that would count clicked links by thier names.
Some kind of a link counter.

It would be great if the every link on the page would have been counted as separate, so if the name of the link (even if more links would be on the same page and both are linked to the same destination) would be LINK and or CONTACT the counting would be something like this...

Hits on LINK: 23
Hits on CONTACT: 12

I tried chcounter and mini_counter but they are both no good!

Is there a way to do this?

Hope you understand!

Thank you in advance! Wink
Logged
crnogorac081

Offline Offline

Posts: 1163



« Reply #1 on: March 10, 2010, 10:56:14 PM »

Hi,

As far as I know, there is no such module..

you would have to code it yourself, or hire a coder to it for you.

cheers
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
dbs

Offline Offline

Posts: 909


tioz4ever


WWW
« Reply #2 on: March 10, 2010, 11:12:25 PM »

i try at the moment this counter. http://getclicky.com/
with link-count. wink

dbs
Logged
Ruud
Development Team
******
Offline Offline

Posts: 1273


[[droplets]]


WWW
« Reply #3 on: March 10, 2010, 11:20:11 PM »

Clicking a link is something that happens in your browser. The website will not know if there are clicks done.
The only way to count clicks is by sending all links to a counter script and redirect to the requested link after it has been registered.

This would mean you cannot use any editor or script to generate links, because they will all need to be formatted in a non-standard way.

In theory something could be built in jQuery (outside the WB framework), maybe google can help here.
Logged

Roych

Offline Offline

Posts: 41


« Reply #4 on: March 10, 2010, 11:38:04 PM »

Ok I found it! Just the thing I needed!

I case someone find this usefull!!
http://www.phpjunkyard.com/php-click-counter.php

R.


___________________ ______________
crnogorac081

May I ask where are you from? Cause crna gora is not so far from where I come.
Im from slovenia. If so maybe I can understand your language... Wink

cheers
Logged
crnogorac081

Offline Offline

Posts: 1163



« Reply #5 on: March 10, 2010, 11:51:50 PM »

Hi,
here is something I just found, it is called CCount:

Quote
» Using PHP Click Counter

Not sure how to use CCount to count click? Here is a sample setup:

   1. You want to count how many times the link to Yahoo.com has been clicked from your website. You have the link pointing to http://www.yahoo.com and this is the HTML code on your website:
      <a href="http://www.yahoo.com">Go to Yahoo!</a>
   2. Login into the CCount Admin panel. Open
      http://www.yourdomain.com/ccount
      and enter your admin password.
   3. Find the form titled Add a link. In the Link URL: enter the link you want to count clicks on. In this example you would enter
      http://www.yahoo.com

      Optionally you can also choose a name for your link (for example Link to Yahoo from homepage) and the number you want to start counting from (if you want to start counting from 100 enter 100 in the box).
   4. Click the Add link button and the link will be added to CCount.

      You will be given a link ending with click.php?id=ID where ID is a number, for example:
      http://www.yourdomain.com/ccount/click.php?id=1

      This is called a tracking link.
   5. Now instead of linking directly to the link you are counting clicks on, you need to link to your tracking link instead! In our example instead of linking directly to http://www.yahoo.com, you must link to
      http://www.yourdomain.com/ccount/click.php?id=1

      The HTML code you would use for your link is for example
      <a href="http://www.yourdomain.com/ccount/click.php?id=1">Go to Yahoo!</a>

      When someone clicks on the tracking link CCount will count click on the link and then redirect your visitor to http://www.yahoo.com


So, based on this idea, you would need to code something like this and to format your links with tracking link which will be used as counter.

P.S.> Yes, I am from montenegro, but I dotn write montenegrian here, as nobody understands it Smiley

cheers
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
chio

Offline Offline

Posts: 1619



WWW
« Reply #6 on: March 11, 2010, 08:24:44 AM »

I think a solution is in jQuery + a little php script. (Dont know exactly how, but I am sure)

Add a onClick behavior to every <a href in the content of your template
with onClick you call a script like "/redirect.php?url=http://www.."
The script adds/counts the clicks and then redirects.
be shure to use 301 (permanent) for redirect.

Logged

Pages: [1] Go Up Print 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!