uiowa / brand-icon-browser

0 stars 1 forks source link

Added container divs around download buttons for event tracking #74

Closed quamsta closed 2 years ago

quamsta commented 2 years ago

Previously, GA4 events were not being tracked for individual icon downloads due to GA4 not counting image files as file_download events.

VueJS can't do @click events easily on anchor tags (preventDefault is required in order to add functions to anchor tags and breaks the links), so this PR adds containers around each download button and tracks @click events on the containers instead of on the anchor itself.