Add Code in Global Project/Global Experience JavaScript

Include code on your website pages by adding it to the "Global Project JavaScript" area in your "Project Settings" (you can also use the Global Experience JavaScript section accessible from the Visual Editor):

Your "Scroll to Bottom" goal will then be available for all your experiments.

Make sure you include the tracking code on the page where you want to trigger a goal with JavaScript. Otherwise, the code won't run.