Skip to content

origami-cms/plugin-google-analytics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

Google Analytics plugin for Origami

Resources

Stars

Watchers

Forks

Packages

No packages published