I have the below in the footer of a Pivot Report Drill down. The code runs once upon the first drill down, but when i return to the Pivot and drill down again into another area, the code executes twice, repeating again and it executes 3 time, then 4 times etc, etc.
Looking for help on understanding why i'm observing this behaviour.. and how to prevent it.
<script>
document.addEventListener('DataPageReady', function(event) {
alert("hello");
});
</script>