(function () {
// Create console group for visibility
function logEvent(event) {
console.groupCollapsed(
"%c📡 Tracking Fired:",
"color: #4caf50; font-weight: bold;",
event.event || "(no event name)"
);
console.log(event);
console.groupEnd();
}
// Monitor every push to dataLayer
var originalPush = window.dataLayer.push;
window.dataLayer.push = function () {
[].slice.call(arguments).forEach(logEvent);
return originalPush.apply(window.dataLayer, arguments);
};
console.log("%cTracking Debugger Active", "color: orange; font-size: 14px;");
})();
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter