for Code Quality

A lot lot lot of work you have to do to improve this script ...

At least organize better the folder structure and files. Also, the tracker.js file shouldn't have code for other things that are not tracking the user behaviour. Console logs, more than 200 lines of comments, and other scripts that change target website select boxes??? I'm not putting this on a production server...

tips4design

Author response

Hello penaf,

I agree with you, the code structure and organization is a bit messy and is something I work on improving in the next version.

The tracker.js file also contains a bit of code required for the playback because playing back actions inside an iframe is limited by the browsers CORS policy and same-domain access for the content window of the iframe. The script does not change anything on your site for your users, it only tracks. The only changes that happen are when you view the site inside the userTrack dashboard and more mostly changes required for playing back a recording (eg: triggering a hover event is not possible, so some changes to the CSS files have to be made before playing back the recording).

The code is not minified and includes comments and logs for debugging. If you add this file in a production environment you should add it as with any other JS file (pass it through a minifier first). If you use Clouflare or similar the file will automatically be minified and all the comments removed.

Make sure to check the checkbox to be notified when the next version will be released (currently being submitted for Envato approval). The new update drastically improves the heatmap interface, improves dashboard performance and is the first step towards refactoring the entire codebase which is a bit outdated.

Thank you for your feedback!

Regards,

Cristy

by
by
by
by
by
by