The easiest way
- Setup a GTM account https://tagmanager.google.com/#/home
- Install the GTM plugin for wordpress: https://wordpress.org/plugins/duracelltomi-google-tag-manager/
- Use this movie to add google analytics tag in GTM : https://www.google.com/search?q=how+to+connect+google+tag+manager+to+google+analytics&oq=how+to+connect+google+tag+manag&aqs=chrome.0.0j69i57j0l6.26674j0j7&sourceid=chrome&ie=UTF-8#kpvalbx=_VF7KXrDsM4iXlwSVianYBA40
- To Avoid duplication of events – dont forget to remove GA tracking code: from wordpress–> admin page–> tools –> marketing –> traffic –> google analytics –> remove your UA code.
- For a good toturial on video tracking – https://www.getelevar.com/how-to/implement-video-tracking-with-google-tag-manager/, this blog also covers hot to add custom metrics and calculated metric in google analytics.
- Video tracking and viewing in google analytics- https://neilpatel.com/blog/google-tag-manager-for-videos/