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 information I wish
to record.
I find a specific IMG element on the page and set it's SRC property to the
URL I built.
If the hyperlink opens a new window using the "_blank" target, this works
flawlessly. If however a new window is not opened, the transaction is lost.
It's as if the IMG element SRC property setting never actually happens.
Is there a way to make this work? Or do I have to create tracking codes for
each hyperlink and change all the URL's to go to a pre-emptive document that
records the click, before showing the desired web page.
thx
Robert. 1 2550
"Lasse Reichstein Nielsen" <lr*@hotpop.com> wrote in message
news:k7**********@hotpop.com... "Robert Oschler" <no_replies@fake_email_address.invalid> writes:
I have some links that lead to external sites. I like tracking them so
I can see what my visitors are interested in, and therefore provide them
more content in those areas in the future. Some of us would call that "snooping on my browsing habits" and would do our best to foil you scheme (or just avoid your page entirely). I trust it you have a "privacy policy" that tells people that you log their browsing?
I don't see how server scripting + URL arguments would work without an intermediary page for off-site links.
Not for off-site links, no. You have to go through your own links. I didn't think you would try to log off-site links.
Or am I misreading something?
Nope.
If I have to use the URL + "search argument" method, wouldn't I have to create an intermediary page to intercept those links and record the
tracking info, rather than the direct links I have now?
For pages in your domain, if they are processed on the server, you don't need a client-side redirect. You can send the new page directly, and just log the extra information.
/L -- Lasse Reichstein Nielsen - lr*@hotpop.com Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html> 'Faith without judgement merely degrades the spirit divine.'
========================
Lasse,
For pages in your domain, if they are processed on the server, you don't need a client-side redirect. You can send the new page directly, and just log the extra information.
Oh yes! I wasn't thinking there, thanks.
--
Robert Oschler This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Alf P. Steinbach |
last post by:
So, I got the itch to write something more...
I apologize for not doing more on the attempted "Correct C++ Tutorial"
earlier, but there were reasons.
This is an UNFINISHED and RAW document,...
|
by: Jon Rea |
last post by:
I hav been looking for the last 2 hours on how to do this without much luck.
Im going to give a simplifed model of the problem i have.
I want a collection class that can holds a series or...
|
by: Joey |
last post by:
I have a web app with many users and their associated values (hashed
passwords, first name, last name, etc...) stored in a Microsoft SQL
Server 2000 database. My app uses stored procedures and...
|
by: Imre Palik |
last post by:
Hi,
I am trying to create a framework, that automatically generates a base
class for the visitor pattern:
template <typename param, typename ret = void>
struct visitor
{
typedef ret...
|
by: FluffyCat |
last post by:
New on November 28, 2005 for www.FluffyCat.com PHP 5 Design Pattern
Examples - the Visitor Pattern.
In the Visitor pattern, one class calls a function in another class
and passes an instance of...
|
by: Merlin |
last post by:
Probably there is no right or wrong answer to this but I thought to ask
to put my mind at rest. Ok lets say you have a object hierarchy (eg.
the Glyph in Lexi from GOF book) and you want to use the...
|
by: Mike Kansky |
last post by:
i have a following tag in all of the HTML pages of my site:
<img src="http://domain.com/image.aspx">
In image.aspx i just send an image to the browser using simple...
|
by: brett |
last post by:
How can I get the IP address of a visitor to my site in ASP.NET 2.0?
Please include the full namespace.
Thanks,
Brett
|
by: aaragon |
last post by:
Hello everyone,
I've been trying to work with the visitor design pattern, and it works
fine except for the following.
Let's suppose that we have a fixed hierarchy of classes (many of them)...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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,...
|
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,...
|
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...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
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...
| |