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