This plugin automatically injects Google Analytics code into any HTML template served from Origami.
yarn add origami-plugin-google-analytics
In your .origami
file, add it to the plugins:
.origami
{
...
"plugins": {
"google-analytics": {
"trackingID": "UA-123456-7"
}
}
...
}
Currently, any HTML page served from server.static()
or any streams (res.send()
) will not include the injected code.
- Add testing
If you find a bug, please file an issue on the issue tracker on GitHub.
All pull requests and contributions are most welcome. Let's make the internet better!