Inject Google Analytics tracking code in HTML pages.
npm install inject-gaInject Google Analytics tracking code in HTML pages.
Installation:
``sh`
npm install inject-ga
Usage:
`sh`
inject-ga input.html -c 'UA-66481277-1' [-o output.html] [-h]-h
Pass the flag if you want the code to be injected inside the
tag.
If no output target is passed it will default to stdout.Input:
`html
am
`Output:
`html
am
`Tests:
`sh
npm test
``