Using analyze to track custom elements

I’m trying to find resources on using Webflow Analyze to track custom elements. Right now Analyze mainly seems to be tracking anything with a link OR anything built using webflow components,

Specifically I’m trying to achieve two things:

  1. Track things like embedded hubspot form button clicks (or any embedded iframe)
  2. Custom interactive elements such as buttons (those made without using the built in webflow buttons)

Has anyone done anything similar and if so how was it set up?