Tag: goal
-
Track Video plays for HTML5 with Piwik
Nicht nur in Flowplayer lässt sich Piwik integrieren, mit HTML5 geht das auch: <!– Piwik –> <script type=”text/javascript”> var pkBaseURL = ((“https:” == document.location.protocol) ? “https://andreas.neumeier.org/piwik/” : “http://andreas.neumeier.org/piwik/”); document.write(unescape(“%3Cscript src=’” + pkBaseURL + “piwik.js’ type=’text/javascript’%3E%3C/script%3E”)); </script> <script type=”text/javascript”> function trackVideo(goal) { try { var piwik = Piwik.getTracker(pkBaseURL + “piwik.php”, 1); console.log(“got piwik”); piwik.trackGoal(goal); console.log(“piwik logged…