Solved

Some measure and smoothscroll issues

  • 21 October 2019
  • 1 reply
  • 17 views

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!

icon

Best answer by Dannyxie1 9 March 2020, 21:06

View original

1 reply

Hey there Jeroenkw,

Welcome to Unbounce! I’m delighted to hear that you’re enjoying the Unbounce platform!!

Happy to lend a hand here. So, normally when setting up a conversion goal one of the most important elements that Marketers and Unbounce users track are "Leads’. This means that whenever someone submits the form on your page it’s generally a good idea to count that as your conversion goal! However, there’s a couple of other things that you can measure as well if you’re not using a form on your landing page such as “Button Clicks”, “Link Clicks”, and “Phone Calls”. You can learn more about setting up a conversion goal here: https://documentation.unbounce.com/hc/en-us/articles/203879180-Setting-Conversion-Goals. If you’re interested in doing some advanced tracking than you can integrate with Google Analytics which would give you some additional insight into how your visitors are interacting with your landing page. You can check out this article here to learn more about integrating with Google Analytics: https://documentation.unbounce.com/hc/en-us/articles/203509974-Integrating-with-Google-Analytics

You also had another question about implementing the Smooth Scroll feature. I believe the script that you have above is an older script and we do have an updated version that I’ll love to share with you:

We also have a short article about adding a smooth scroll that you could check out here: https://documentation.unbounce.com/hc/en-us/articles/360022719471-Adding-Smooth-Scrolling-Links-and-Buttons-for-Anchor-Links.

Feel free to let us know if this helps get you started and point you in the right direction! If you have any additional questions or if there’s a specific page that you want us to look at to see if you have everything set up correctly, feel free to shoot us an email at Support@Unbounce.com. 🙂

Reply