Video Tracking?

How do I add function (ex. onclick or onplay) to videos so that it sends an event to my 3rd party analytics provider (lead forensics) that someone has watched it?

In Wordpress I just added href and script to header that they provided.

Hi Joe,

You might be able to use the videoPlayer.onEnded() event handler on your video player that is triggered when the video reaches its duration and then use trackEvent() to send out your custom event to your external analytics tool.

To learn more about sending custom events, check out this article:
https://support.wix.com/en/article/corvid-tutorial-sending-tracking-and-analytics-events

I’ve also added a few other similar posts you can use a reference point:

Hope this helps!

Best regards,