Skip to main content
100%

Fatboy: Endless Wall listener

✓ Published0🌍 Public
Aantichaos
Last edited Oct 11, 2015
Created on Oct 11, 2015

This example tracks clicks on post images in an endless-scrolling blog feed and sends the interaction to a data layer. The code listens for click events on `a.link-post img` elements, then extracts the post’s publication date, image URL, link href, and title from the parent attributes and the image’s `alt` text. It pushes these fields as an `EWclick` event into `dataLayer`, enabling analytics tools to record each click with its associated metadata. The implementation relies on jQuery for event binding and attribute access, with no visual rendering or charting libraries involved.

AI-generated description

Similar vizzes