- Add a the content of the gist above in a file named gatsby-ssr.js in the root of your gatsby project
- replace yourdomain.com with your actual domain
code from the app file use an event listener on pushState for navingation is already hadled https://raw.githubusercontent.com/simpleanalytics/cdn/master/external.js