If not, how could I go about setting these up?
Just want to execute arbitrary code upon page load - for every page.
You can do this inside gatsby-browser.js with onRouteUpdate:
exports.onRouteUpdate = ({ location }) => {
console.log('new pathname', location.pathname)
}
Wow. That's nifty.
Thanks
Most helpful comment
You can do this inside
gatsby-browser.jswithonRouteUpdate:gatsby-browser.js