How are you including your clientlib? cq-layer-activated is an event in the editor not in your page so you need to add the category cq.authoring.editor.sites.page.hookOtherwise this works for me:(function ($, ns, channel, window, undefined) { "use strict"; channel.on('cq-layer-activated', func...