metalsmith-google-analytics
A Metalsmith plugin to add the google analytics code to all html files
Installation
$ npm install --save metalsmith-google-analytics
Example
var Metalsmith = var googleAnalytics = // Build your full site here...
Options
googleAnalytics(apiKey [,asyncScript])
asyncScript
(optional)
( default: true )
- specify if you want to load the synchronous or asynchronous script (doesn't support ie9)