googleanalytics / autotrack

Automatic and enhanced Google Analytics tracking for common user interactions on the web.
Other
4.93k stars 563 forks source link

maxScrollTracker for horizontal scrolling and elements instead of window #199

Closed bpyrate closed 7 years ago

bpyrate commented 7 years ago

Hi folks,

  1. the maxScrollTracker should also be able to track horizontal scrolling

  2. the maxScrollTracker should also be able to track the scrolling of a specific element (e.g. a div with overflow: scroll that is the parent of a loooong section)

Thanks!

philipwalton commented 7 years ago

Thanks for the suggestions, but it's unlikely I'll include these features into the maxScrollTracker plugin. Autotrack plugins try to offer things that apply to most websites, and horizontal scrolling and sub-document scrolling aren't really features that most site authors would use.

bpyrate commented 7 years ago

I see your point and you are right that most site authors are not using non-traditional user experience. But this is exactly the point where standard tools like Analytics are reaching their boundaries and you need something special.

Tools like autotrack should solve most of the thinkable usecases not only most of the already used-usecases ;-) Your tool is already great but maybe it is not too complicated to implement a horizontal scroll and a element selector... I would love this. Thanks!

philipwalton commented 7 years ago

I have a lot of things I want to work on and only so much time in the day :) so I try to focus on what will have the greatest impact for the greatest number of people.

That being said, I think there's a lot of infrastructure already there in autotrack that would make it relatively easy to build this yourself on top of maxScrollTracker. That's the primary reason we open source the code rather than keeping it internal.