Webhook for tracking

I’m trying to send information to my server about which videos a user is watching. I’m considering using webhooks for this and would like to know if it’s possible to pass variables such as:

  • The ID of the video being watched
  • A unique identifier for the user, which could be a value from a cookie I set, unless FacePop already generates a unique ID.

Any advice would be greatly appreciated!

Hi Zypkin,

Some of these parameters cannot be passed without custom code unfortunately.

Are you familiar with JavaScript? FacePop sends many events, one of them is FacePop:Watched which you can use then to build & send tracking info.

Here is an example:

window.addEventListener('FacePop:Watched', () => {

    // this is where you find your facepop id
    const facepopId = Answerly.$$.FacePop;

    // this is where you can enter your custom user id
    const userId = '_your_user_id_';
    
    // send data to your server
    fetch(...);

});

Sure, I’m very familiar with JS.
Thank you for sharing this.
Where can I find a complete list of events?

@Fatos can you point me in the right direction? :slight_smile: