a metalsmith plugin to add google analytics to your html site
MIT License
A Metalsmith plugin to add the google analytics code to all html files
$ npm install --save metalsmith-google-analytics
var Metalsmith = require('metalsmith')
var googleAnalytics = require('metalsmith-google-analytics')
Metalsmith(__dirname)
// Build your full site here...
.use(googleAnalytics('API-KEY'))
.build()
asyncScript
(optional)( default: true )