While we've got a few preconfigured triggers for you to pick from, you can also create your own trigger actions.

To do this, just create a new trigger with the action of "custom trigger", and use the moduleOpened callback in the events object to listen to all module open events.

We'll send you the ID of the module that was opened, for you to do as you please. Here's a small example that just prints the ID of the module that was opened, to an object on that page and also to the browsers console.

window._elev.events = {
moduleOpened: function(id) {
document.getElementById("title").innerHTML = "ID: " + id;
console.log("moduleOpened", id);
},
};

See here for a demo