-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
piwik.js enhancements #739
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
looks good, I just don't think we can set a milestone for removing the deprecated legact tracking: we can't force users to re-tag their websites (think how many thousands websites are concerned). a great thing that you could do, would be to write a blog post summarizing how we built this cool new functionnality: aggregating user feature requests, bug reports, analyzing how competition works, multiple code reviews, how did you test the code on multiple browsers, writing javascript unit tests, packaging (YUI), etc. What do you think? |
More ideas (mentioned elsewhere):
To avoid distorted stats, provide optional support for:
|
(In [3172]) refs #739 - drop IE5 support (arguments.callee removed in ES5 spec but at present, no browser appears to implement strict mode) |
See http://forum.piwik.org/index.php?showtopic=16661 for Xaver's async mods. |
(In [3284]) refs #739 - add DEBUG markers so that the unit test scaffolding can be removed from the production script |
Note; Compressing piwik.js via yuicompressor currently results in a 9079 bytes long file (using the sed instructions in the README). For comparison, compressing via uglifyjs (which requires nodejs) results in a shorter file, only 8660 bytes long. |
(In [3285]) refs #739 - clarify that these are test hooks ... they were never practical in production due to name mangling by yuicompressor |
Currently, the Bing / Google cache fixups are done in piwik.js. This is better than before, however it will result in inconsistent results when the Tracking API is used, as it will not go through piwik.js and therefore Bing/Google cache will not be tracked the same. |
(In [3374]) fixes #1842, refs #739 - implement asynchronous tracking (thanks Xaver); see updated documentation, http://piwik.org/doc/javascript-tracking/ |
merging suggestions from comments into main ticket description; adding a couple for completeness |
(In [3686]) refs #739, refs 409 - updated to pass jslint 2011-01-06; includes the prototype first-party cookie implementation (not up-to-date with recent discussions with matt) |
Going to sleep on this. Too tired to decide whether this would be a feature or considered a security risk?
|
(In [3783]) refs #409 - first party cookies
refs #739 - piwik.js improvements
refs #752 - track middle mouse button clicks (via mousedown+mouseup pseudo-click handler); defaults to tracking true "clicks"
refs #1984 - custom variables vs custom data @todo These are just stubs.
|
Reopening, as I have questions / clarifications
|
(In [3788]) fixes #739 - addEventListeners() on mouseup and mousedown; good catch, Matt!
refs #2041 - setHeartBeatTimer - uses setTimeout, so it happens only once (vs setInterval is recurring); only happens on the landing page; intended to be used to improve bounce rate report; changed it to send ping=1 in the request |
(In [3792]) refs #739 - updated to jslint 2011-01-21 which has coding style checks added (e.g., indentation) |
(In [3793]) refs #739 - use JSON reference implementation given that we included both stringify() and json_parse(); some minor mods for greater browser portability Also:
|
(In [3795]) refs #739 - add Jash - JavaScript shell (GPL) to tests/javascript |
(In [3796]) refs #739 - prevent multiple instances of Jash; use the self-hosted copy of Jash.css; include missing icon |
With the JavaScript tracking API in #355 completed, we can turn our attention to some internals:
optional file:// and framebustersend heart beat (or ping) when view duration reached on a page (e.g., 30 seconds) to differentiate from a traditional bounceOn the horizon:
set a milestone for removing the deprecated legacy tracking interface (piwik_log and piwik_track)ditto for IE5 support (e.g., arguments.callee)Deferred:
Wontfix:
The text was updated successfully, but these errors were encountered: