jwplayer / jw-showcase

DEPRECATED: JW Showcase has been deprecated and is no longer maintained. Please use the JW OTT Web App Instead: https://github.com/jwplayer/ott-web-app
https://www.jwplayer.com
Apache License 2.0
78 stars 35 forks source link

Event tracking? #201

Closed jguerine closed 6 years ago

jguerine commented 6 years ago

Hello, Are there any events that could be used for some customized tracking, or should we just code our own?

Thanks !

pajter commented 6 years ago

Hi,

Unfortunately we do not currently support any custom events system.

Best

Pieter

jguerine commented 6 years ago

Hello @pajter ,

So does that mean that it's not possible to add any custom code allowing to do that? I've been working on some tracking, and it does work for the first page. But then it doesnt really work while navigating through the platform. I've tried working on event propagation, but not a single class / item seems to allow me to attach a click event.

So, does that confirm what you were saying yesterday, that it's not possible AT ALL to add custom clicktracking? Will it evolve?

Thanks

pajter commented 6 years ago

Hi @jguerine,

If you're building Showcase from source, there's always a possibility to add custom tracking code. A good place to start would be the router. It's implemented per module. Here's an example for the dashboard module/page.

However, if you're just using the prebuilt version, there's only so much you can do to. It's possible in theory to add click event listeners to buttons, but this would be quite cumbersome to implement and not foolproof at all.

So no, we don't have an easy way or configuration option to integrate custom clicktracking. There are also currently no plans to add this.

Pieter

jguerine commented 6 years ago

Thanks for the explaination. We found a workaround with a dev

pajter commented 6 years ago

Great!

jguerine commented 6 years ago

Hey, quick question : so I am guessing that regarding the tracking of the plays/pause etc from the actual player, it's also something that may be custom on our side?

Thanks