next.js google script

JavaScript
// https://github.com/zeit/next.js/tree/canary/examples/with-google-analytics
Source

Also in JavaScript: