Notes and anecdotes

Techstuff rambling

Finding Javascript memory leaks with Chrome Developer tools

Check out http://discover-devtools.codeschool.com/chapters/7/ for an interactive video on this topic.

Track custom events with google analytics

Requirements: You have an existing google analytics account You have a webpage to track events with How: Edit: If you’re on ES6 with webpack or similar, checkout this Github Gist instead. 1. You include google analytics in your page (function(i,s,o,g,r,a,m){i[‘GoogleAnalyticsObject’]=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,’script’,’//www.google-analytics.com/analytics.js’,’ga’); // Replace UA-XXXXXXX-X with your google analytics user key ga(‘create’, ‘UA-XXXXXXX-X’, ‘ntnu.no’);…

Continue Reading

Chrome-addon: statistics

Hvor mange timer bruker du på hvilke nettsider? Fordeler og ulemper – Begrenset nytteverdi – Ikke noe nytt: Time tracker, Time Counter + Samtidig: Noe å evaluere opp mot + Lære Google chrome API.