Extends and enhances the tracking functions to intercept the events payload and print them to the console.