Skip to main content

How do i track view count of different div blocks on single page while scrolling without clicking them.

General • Asked by Malav Desai

I have many cards (div blocks) on my single page application. I want to track view counts when user scroll through this page. Means whenever one card visible on screen or in screen viewport area while scrolling just increment view count for that perticular card (div blocks). Its like Facebook tracking pixel thing but i want ot create custom and different tracking pixel for my cards which track view counts when div is visible.
I am using Ruby on Rails and Angularjs.
Thank you.


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 24,647+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.