Solved

Track Every Click during Shopping Visit

Posted on 2004-10-12
7
164 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
ID: 12294913
"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
ID: 12295128
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
ID: 12298833
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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
LVL 21

Expert Comment

by:surajguptha
ID: 12304883
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
ID: 12304897
Should all hyperlinks within the same website tracked or links that lead to other websites also?
0
 

Author Comment

by:DougCoulter
ID: 12304960
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
ID: 13121354
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
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…

776 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