Unable to access kWidget while using Google Tag Manager to send Analytics Data

We are using kaltura-player-js 0.25.1-pwa-16.0 player and we are tracking player events using Google Tag Mager in Google Analytics as mentioned in this blog.

This was working fine since 18th May but I am not sure due to what updates in Kaltura player APIs now I am unable to find the kWidget at all on my site and due to that my entire analytics tracking has stopped working.

Can you please help me find how I can get “player id” and can access kWidget to perform actions on “addReadyCallback”.

Also please let me know if there is any other way to track all these events in Analytics using Google Tag Manager, I know the inbuilt plugin one but I want to do it using Google Tag Manager.

Any help will be appreciated.