Sunday, June 5, 2016

tracking page loads on this blog

The blogger.com stats do not seem to make any sense lately, so I am attempting to so some tracking of my own. I uploaded a transparent one pixel image on one of my servers. To force the browsers to reload my transparent pixel I added this snippet right in the template after the <head> tag.

<script type="text/javascript">
  var tracker = new Image();
  tracker.src = "http://lunch-break.ro/000000-0.png?data=" + Date.now();
</script>

Seems to be working. Maybe I'll even discover that the information in the "Stats" section is correct.

No comments:

Post a Comment