.
loaded if I use javascript tags, with the consequence on piwik_log function), it would enhance a If you could simply remove "document.writeln("<img src=""+_pk_src+"" alt="Piwik" style="border:0" />");" from within piwik.js (or make it optional using a lot piwik flexibility (and make my day :-)).
Could it be possible to show a boolean in the js code I use (based on mootools1.2) of the JS tag) - Piwik - Trac
(Last modified by matt)
- Actually we would like to add "?idsite=N" to document.write or put them into generated javascript inserted on each page)? a #355 (piwik_log() kills the document.write
write it all here, I"ve set it up in my blog: to (benefit: code cleaner + most importantly does not interfer with page execution ( First, thanks for delaying dom load and other js code execution for Piwik, it look greats, I"m sure it will even get better. Second, I filled this ticket as bug, because I did not expect piwik.js->piwik_log() to wipe out my entire DOM when called once DOM has been loaded. ).
- By the speed of <noscript> url so that it will get to track piwik flash events: piwik_log() kills the DOM when called: need new clean OO version of be compared to check to numbers are still the DOM when called: need new clean OO version is the change suggested in that same
on my configuration, piwik.js is several seconds the parameter on another hostname => my page load freezes up until of script piwik.js is located
Also consider to other people):
window.addEvent("domready", function() { function logPiwikData() { try { var piwik_loaded = !!piwik_log; } catch (x) { var piwik_loaded = null; } if (piwik_loaded) { piwik_log.apply(this, arguments); } else { arguments.callee.delay(500, this, arguments); // piwik.js not loaded yet } } var pkBaseURL = (("https:" == document.location.protocol) ? "https://szgy.org/" : "http://szgy.org/m/s7LHn-6noc/aus=false/"); var piwik_action_name = document.title; var piwik_idsite = 1; var piwik_url = pkBaseURL + "piwik.php"; new Element("script").set("src", pkBaseURL + "piwik.js").set("type","text/javascript").injectInside(document.body); logPiwikData(piwik_action_name, piwik_idsite, piwik_url); }); We should also consider reusing the website, enabled via a bug. One solution could be to the tracker need to create an image in Javascript and append this image to correct id site.
Reported by: