A simple JS that shows all events being fired by the Tessen library (all Segment analytics.track AND analytics.page events)
Although running this code could be done by copying and pasting it into the Chrome console or even by turning it into a plugin, I've decided to use the plugin called Temepermonkey that allows us to run any JS code we decide to load
NOTE: The code will only run in the https://staging-one.newrelic.com/
- Install Temeprmonkey chrome extension
- Once installed pin its icon to the browser top bar it so that you can turn it on an off as you like
- Click on the Tampermonkey icon in the browser and from the menu select Create new script
- Copy and paste the whole JS code found in the nr-segment-amplitude-debugger.js @ master branch instead of the code that you see in the Tampermonkey editor
- Click on File > Save
- Navigate to https://staging-one.newrelic.com/ and you should see a small pink reckangle appearing in the right hand side