Google Analytics Event for a embedded YouTube video

How do you set up the code to create a Google Analytics even for a embedded YouTube video? I havve been working from the following:

http://www.lunametrics.com/blog/2015/05/11/updated-youtube-tracking-google-analytics-gtm/

But I do not know how to insert it into the html code for WordPress.

Thank you for your help,

Regards,

Matt