Track Wix Video views on Google Analytics

How to have google analytics track video play actions on video embedded through Wix Video? Seems like GA4’s enhanced measurement doesn’t automatically track these video views.

Any advice is appreciated!

The exact code to track a event such as a video play can depend based on the element you use to embed the video onto your page, but generally you can track events using trackEvent() from the Wix Window Frontend API.

This method allows you to track both standard and custom events set in GA4. These can be tied to events handlers for various elements using Velo.

This is very helpful! Thank you! Is there a generic solution for videos uploaded to the Wix Video Library through YouTube link and then embedded using one of the Wix Video template?

Since Wix Video is a app (rather than a native wix editor element), you are limited in the types of events you can track via the Velo API.

Fortunately, Wix Video provides built in Analytics reportings for data such as views.

If you would like to track the event on your own you can use event handlers associated to a video being played with the VideoBox or VideoPlayer elements.

1 Like

Thank you so much! Really appreciate it!

1 Like