Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 862 Bytes

README.md

File metadata and controls

42 lines (28 loc) · 862 Bytes

Origami: Google Analytics Plugin

This plugin automatically injects Google Analytics code into any HTML template served from Origami.

Installation

yarn add origami-plugin-google-analytics

Usage

In your .origami file, add it to the plugins: .origami

{
    ...
    "plugins": {
        "google-analytics": {
            "trackingID": "UA-123456-7"
        }
    }
    ...
}

Limitations

Currently, any HTML page served from server.static() or any streams (res.send()) will not include the injected code.

Moving forward / TODO

  • Add testing

Issues

If you find a bug, please file an issue on the issue tracker on GitHub.

Contributions

All pull requests and contributions are most welcome. Let's make the internet better!