This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// In a browswer window with URL about:blank | |
// Open the JS console and paste this code | |
window.adobeDataLayer = []; | |
adobeDataLayer.push({ | |
x: 1 | |
}); | |
adobeDataLayer.push({ | |
event: "test", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// In a browswer window with URL about:blank | |
// Open the JS console and paste this code | |
window.adobeDataLayer = []; | |
adobeDataLayer.push({ | |
x: 1 | |
}); | |
adobeDataLayer.push({ | |
event: "test", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// In a browswer window with URL about:blank | |
// Open the JS console and paste this code | |
window.adobeDataLayer = []; | |
adobeDataLayer.push({ | |
x: 1 | |
}); | |
adobeDataLayer.push({ | |
event: "test", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// In a browswer window with URL about:blank | |
// Open the JS console and paste this code | |
window.adobeDataLayer = []; | |
adobeDataLayer.push({ | |
event: "test", | |
x: 1 | |
}); | |
adobeDataLayer.push({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// In a browswer window with URL about:blank | |
// Open the JS console and paste this code | |
window.adobeDataLayer = []; | |
adobeDataLayer.push(function (dl) { | |
dl.addEventListener("test", function() { | |
console.log(dl.getState()); | |
}); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// In a browswer window with URL about:blank | |
// Open the JS console and paste this code | |
window.adobeDataLayer = []; | |
adobeDataLayer.push({ | |
event: "test-x", | |
x: 1 | |
}); | |
adobeDataLayer.push({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The following function generates an event handler that returns the eventInfo.path, and allows to filter events by properties. | |
function getEventPathHandler(callback, filter) { | |
return function (eventData) { | |
if (eventData.hasOwnProperty("eventInfo") && eventData.eventInfo.hasOwnProperty("path")) { | |
const eventObject = this.getState(eventData.eventInfo.path); | |
if (eventObject != null) { | |
for (const property in filter) { | |
if (!eventObject.hasOwnProperty(property) || (filter[property] !== null && filter[property] !== eventObject[property])) { | |
return; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"jcr:primaryType": "nt:unstructured", | |
"com.adobe.aem.wcm.site.manager.config.SiteConfig": { | |
"jcr:primaryType": "nt:unstructured", | |
"themePackageName": "SITENAME-theme" | |
}, | |
"com.adobe.cq.wcm.core.components.config.HtmlPageItemsConfig": { | |
"jcr:primaryType": "nt:unstructured", | |
"prefixPath": "/content/SITENAME.theme/_default", | |
"css": { |
OlderNewer