Solved

Track Every Click during Shopping Visit

Posted on 2004-10-12
7
162 Views
Last Modified: 2006-11-17
My customer suspects someone is tampering with his ecommerce site
and wants to be able to track every click made to gather more information.
We know via WebTrends and other methods that there are lots of visitors
but not sales and all else looks good. I have placed countless test orders....

Soooo, I was thinking of maybe using onclick to trigger some type of data capture:

Is it possible to systematically update the site to include this kind of tracking?
(i.e. search-n-replace or something other than manual updates - lots of links!)

When you click, does onclick have access to the destination url?

Also, can onclick be used to issue a database write to a clicks table?

Thanks!
Doug
0
Comment
Question by:DougCoulter
7 Comments
 
LVL 30

Accepted Solution

by:
third earned 250 total points
Comment Utility
"When you click, does onclick have access to the destination url?"

yes. it is

<a href="theurl.html" onclick="alert(this.href);return false;">link</a>


"Also, can onclick be used to issue a database write to a clicks table?"

you can use a hidden iframe on your page and pass the destination url to that page then have that framed page process the passed url to your database.
0
 
LVL 21

Expert Comment

by:surajguptha
Comment Utility
I suggest that you can add a function call in each page_load of the forms available. This method can be made to store the information of the request object like IP address, browser type. You can also capture each click (every postback rather) that way. And we can use the same method to store the info to the database for further processing and reference.

If you want to capture only the kind of people. You can add a method in the global.asax session_start method and capture one time information about the visitors. This way you cannot capture each click.


It would be better if you could provide what kind of information you want to capture. Is it something like everytime any click is made you want to capture the event.

Hope this helped.
0
 

Author Comment

by:DougCoulter
Comment Utility
We want to capture the URLs with a date/time stamp for each session.

That way, if we see the shoppers are disappearing at a certain page or scenario
we have clues about technical problems or orders being hijacked.

I do collect initial info using the global.asax session_start method, and we have
confirmed that the visitors are getting there, now we need to go deeper and
find out what happens once they arrive.

Ideally, for each session, a click-by-click description of that shopper.
Some pages have dozens of links, so we want to know not only that they visited
that page, but which link they clicked to go on.

I hope I am explaining this well - does that make sense?
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 21

Expert Comment

by:surajguptha
Comment Utility
Are all the pages aspx pages? What i would like to know is, will all clicks lead to pages that will undergo server processing?
0
 
LVL 21

Expert Comment

by:surajguptha
Comment Utility
Should all hyperlinks within the same website tracked or links that lead to other websites also?
0
 

Author Comment

by:DougCoulter
Comment Utility
The site is using classic ASP, not ASP.NET
We would like all links within this domain to be tracked
(if we can capture the url they exit with, that's a bonus)
0
 
LVL 25

Expert Comment

by:James Rodgers
Comment Utility
No comment has been added to this question in more than 21 days, so it is now classified as abandoned..
I will leave the following recommendation for this question in the Cleanup topic area:

Accept : third {12294913}

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

Jester_48
EE Cleanup Volunteer
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now