title: Where to put Router.events related code in Next.js
body: <p>I am just wondering where I can put Router.events related code in Next.js? Apparently, I can not put it in a specific component, since it needs to be used across the application.</p>
  
  <p>Thank you.</p>