Event Tracking – Just Links or All Elements?
-
Per Google Analytics, there are 2 different triggers for event tracking:
1. Just Links: You should use Just Links when the target is any type of anchor tag (e.g. Link).
2. All Elements: You should use All Elements when the click target is any HTML element, such as <div>, <button>, or <img> tags.A site I’m working on has inline CSS (div tags) that wrap PDF download links – and the Yoast Plugin, although configured to track PDFs as events, isn’t tracking any of the PDF links where the link is wrapped in a div tag. Is there an easy solution to this via the Yoast Plugin (custom code I can use). Otherwise, I’m looking at either using Google Tag manager and hand coding all instances – or the developer re-writing the CSS to remove any instance of inline CSS.
https://wordpress.org/plugins/google-analytics-for-wordpress/
The topic ‘Event Tracking – Just Links or All Elements?’ is closed to new replies.