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', function (event) {
console.log('cq-layer-activated', event); });}(jQuery, Granite.author,
jQuery(document), this));