如何在重定向到SSO之前执行一些JS代码

Hello,

I have my Discourse platform with SSO configured and working.

How is it possible to execute some client-side JS code when the user is clicking on the Login button before he/she gets redirected.

I would like to do that to send a Google Analytics event.

Thanks.

1 个赞