I am looking for a way to automatically load the next article once a reader has scrolled to the bottom of the page. Something similar to what this wordpress plugin is doing. So I understand that the functionality need to do three things:
- Detect that the user has scrolled to the bottom of the page, and then load the next page underneath it, without breaking the theme's structure.
- When the user has scrolled on to the next article, the URL and title on the browser should change to reflect that the user is now reading a new article.
- The new page view should be trackable by google analytics. This should also create a separate history entry on the user's browser. Any social media share after the scroll should reflect the second article and not the first.
I understand there may be a way to achieve this using views infinite scroll. But that won't be able to achieve conditions two and three.