Bamerza
Bamerza

Reputation: 1375

Is there a good solution to DOM Event Logging?

I need to create an analytics solution for a client. They have a large number of DOM manipulations through JQuery/Ajax. Besides making a call to a function for each DOM manipulation, is there any other efficient way to log DOM Events?

I need to log each DOM manipulation so that we can run analytics on that data. There are many instances where the site will display different data to the user but does not go out to the server, instead it is served up by manipulating the DOM.

Logging each DOM manipulation seems to be a costly (in terms of server processor) solution.

Upvotes: 0

Views: 360

Answers (3)

fmsf
fmsf

Reputation: 37137

You can use this to debug chain logs. It's still work in progress though function calls are still being added, the main ones are already there.

http://www.jquerylog.com

Upvotes: 0

Nick Berardi
Nick Berardi

Reputation: 54854

jQuery doesn't have any logging built in. But you may be able to get away with using this:

http://ajaxian.com/archives/jquery-logging

And modifying your jquery.js file to log specific jQuery methods whenever they occur. It is not a perfect solution, but should help you track down the major problems or at least point you in the right direction.

Upvotes: 1

cgp
cgp

Reputation: 41381

I'm confused by the mixing of "logging DOM Events" and "making a function call for each DOM manipulation". It would seem they were two separate things.

  • I retrieve some HTML to manipulate the DOM via an AJAX function call....
  • I log the manipulation conceivably somewhere? Why would we log the manipulation?

Upvotes: 0

Related Questions