Hey all,
I am trying to track the links that are clicked on a particular web
page.
Like a typical senario will be:
Track (Count) how many times the main links Home,Help,About ,Login etc
are clicked.
At the bottom line i am planning to track(count) all the links <a
href-"">
how many times each one is clicked. My guess is javascript and cookies
would be helpful.
Let me know your valuble idea or thoughts on this implementation.
Thx
Prince 3 1817
Prince of Code wrote:
Hey all,
I am trying to track the links that are clicked on a particular web
page.
Like a typical senario will be:
Track (Count) how many times the main links Home,Help,About ,Login etc
are clicked.
At the bottom line i am planning to track(count) all the links <a
href-"">
how many times each one is clicked. My guess is javascript and cookies
would be helpful.
Let me know your valuble idea or thoughts on this implementation.
Thx
Prince
Are you tracking per session, per ip, or other?
You could store in a session if you only wanted to keep the stats for
the live of that users visit, otherwise you will need to have some kind
of unique id for that user and store stats in a database.
If you had a user with a username/password, you could track in a
database which sections they access, or you could have standard
..htaccess type password and then use interrogate standard Apache logs
based on the REMOTE_USER field.
I'm not really sure of your full plan here. Maybe you could elaborate
on this.
On Wed, 04 Apr 2007 15:07:16 +0100, Tyno Gendo wrote:
Prince of Code wrote:
>> I am trying to track the links that are clicked on a particular web page. Like a typical senario will be: Track (Count) how many times the main links Home,Help,About ,Login etc are clicked. At the bottom line i am planning to track(count) all the links <a href-""> how many times each one is clicked. My guess is javascript and cookies would be helpful. Let me know your valuble idea or thoughts on this implementation.
Are you tracking per session, per ip, or other?
You could store in a session if you only wanted to keep the stats for
the live of that users visit, otherwise you will need to have some kind
of unique id for that user and store stats in a database.
If you had a user with a username/password, you could track in a
database which sections they access, or you could have standard
.htaccess type password and then use interrogate standard Apache logs
based on the REMOTE_USER field.
One trick I use -- especially for creating _some_ stats for clients who
chose a web host without any stats ability and for ~userid accounts is
to place a _uniquely named_ totally transparent GIF on each page --
where the GIF is located on _my_ web host. At the EOM, I give those
clients the page-by-page fetch stats as the counts appear in _my_ stats
for each of the GIF's. Somewhat tedious and crude - for sure - but it
beats nothing at all.
HTH
Jonesy
--
Marvin L Jones | jonz | W3DHJ | linux
38.24N 104.55W | @ config.com | Jonesy | OS/2
*** Killfiling google posts: <http://jonz.net/ng.htm>
On Apr 3, 11:32 pm, "Prince of Code" <princeofc...@g mail.comwrote:
Hey all,
I am trying to track the links that are clicked on a particular web
page.
Like a typical senario will be:
Track (Count) how many times the main links Home,Help,About ,Login etc
are clicked.
At the bottom line i am planning to track(count) all the links <a
href-"">
how many times each one is clicked. My guess is javascript and cookies
would be helpful.
Let me know your valuble idea or thoughts on this implementation.
Thx
Prince
Are you counting clicks, or pageloads? If you're counting clicks
you'll definitely have to use javascript (either swap out an image or
make an ajax call). Pageloads is easily done server side.
Aerik This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mat |
last post by:
How can I detect when a link has been clicked but the new page is
still in the process of loading? The document.location.href property
still displays the current location (understandably) not the one
that's about to load.
I have a page that reloads every 30 seconds in order to access live
data. If a user clicks on a link just prior to the page reloading the
reload takes precedence over the link click and this is annoying for
the users....
|
by: Robert Oschler |
last post by:
This is my current strategy for tracking hyperlink clicking by a site
visitor (Internet Explorer example):
Using Javascript I:
Attach an event to the document "onclick" handler.
When a click occurs, the Javascript "onclick" event hander I assigned,
checks to see if the event srcElement (or its parent in the case of a "font"
element) is a hyperlink (tagName = "A" or "a").
If so, I build a URL with the search arguments set to the...
|
by: Dennis M. Marks |
last post by:
I know that ad companies can track sites that contain their ads that
you have visited. This is used to tailor the ads that you see. Does
anyone know where I can find detailed information on how that is done.
This is just for my own interest.
--
Dennis M. Marks
http://www.dcs-chico.com/~denmarks/
Replace domain.invalid with dcsi.net
|
by: Peter Jenkins |
last post by:
The client for which I do this site www.safenz.org.nz wants stats
tracking/a visitor counter, like the one that is there at the moment
(at the bottom of the home page). However I would like one that
1) uses either a link or a small, discreet icon, rather than the butt-ugly
counter that's there currently. I dont want an actual counter visible
on the page if possible
2) uses valid code - the counter code is the only thing on the page
that...
|
by: Newbie |
last post by:
Is it possible to set up an event handler or something else
so that when *any* link on the page is clicked it 'fires-up',
executes some JS and then continues to process the link
that was clicked?
(Without having JS or 'onClick' added to each & every link?)
I've looked everywhere but can't find out how,
or if it's even possible via Javascript...
Regards.
| |
by: Ben Amada |
last post by:
Hi ...
I have an HTML page containing a bunch of <alinks. Some of the links
redirect the visitor to a page at a different website in a new browser
window (target=_blank) and other links are "mailto" links.
What I want to do is record a little information when they click on a link
(mainly which link they are clicking on). I can put together a server side
webpage that can receive this information and store it in a DB. I'm just
not...
|
by: mohanagopal |
last post by:
Hi..
Sorry for my english..
The links values are dynmically loaded from database.. i dont know which links value will appear.. If i know the link value then only i move to the corresponding page.. So i want to know which link is clicked in the html page.. based on it the reference page is open.. Because i dynamically load links value from the database.. Database is updatd daily..
Thanks in Advance.....
|
by: Terry |
last post by:
Hi folks.
I was thinking about rolling my own anlaytics service for sites that I
am working on.
I had the idea of using javacript to find all the links on a page and
then attach handlers to them that would have code that would visit
another site that has a database to keep track of hits and duration of
stay at a particular page.
I was wondering if it is possible to visit a site in the background so
|
by: newbiegalore |
last post by:
Hello everyone :-) ,
Thanks to the gentle people on this group
for helping me out with previous issues. :-D This time round I am
facing what I perceive as a simple problem, which I have not found a
simple solution for (obviously!).
The problem: I need to pick up the URL in the address bar of a browser
when a link is clicked
What I have done: I have used,
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |