Some measure and smoothscroll issues

Hi everyone!

I just got started with Unboucne and I love it. The page is coming along nicely.

I do wonder what I should measure on my page that could be of interesting value. Analytics measures most things, but should I measure the scroll-depth, click events and other kinds of things? What do you guys measure?

I also saw in another thread that smooth scroll was suggested and I used this script:

lp.jQuery(function($) {

    // The speed of the scroll in milliseconds
    var speed = 1000;
  
    // Find links that are #anchors and scroll to them
    $('a[href^=#]')
      .not('.lp-pom-form .lp-pom-button')
      .unbind('click.smoothScroll')
      .bind('click.smoothScroll', function(event) {
        event.preventDefault();
        $('html, body').animate({ scrollTop: $( $(this).attr('href') ).offset().top }, speed);
      });
  });
</script>

It doesn’t work, what am I doing wrong?

Thanks!