How to Track Engagement with Embedded YouTube or Vimeo Videos

For a YouTube video;
Give the embedded video iframe the class of “bwai-youtube”.

For a Vimeo video;
Give the embedded video iframe the class of “bwai-vimeo”.