snowplow-javascript-tracker icon indicating copy to clipboard operation
snowplow-javascript-tracker copied to clipboard

Allow click tracking by class name

Open paulboocock opened this issue 6 years ago • 0 comments

Suggestion: Much like Link Click tracking, will track elements on a page, can we add functionality to track clicks on elements that have a particular class name?

What would this functionality look like? What attributes would we want to utilise on the element that has been clicked that could be generic enough to send in a standard event type? For example, an always has a href attribute so tracking the targetUrl makes sense. In a generic version of this, what additional data points would be useful?

One idea is to add a data-snowplow attribute that can have a custom string in it, allowing this data to be tracked with the element clicks.

Opening this for discussion...

paulboocock avatar Mar 06 '20 16:03 paulboocock