Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Track Every Click during Shopping Visit

Posted on 2004-10-12
7
165 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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
where is team.js? 3 30
How can I make a javascript to show drop down 4 22
Find closest specified item from present item - Javascript 5 33
Binding a Grid in Javascript 5 42
In this article, we'll look how to sort an Array in JavaScript, including the more advanced techniques of sorting a collection of records either ascending or descending on two or more fields. Basic Sorting of Arrays First, let's look at the …
In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
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…

791 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