ember-cli-cookieconsent

ember-cli addon for CookieConsent

Usage no npm install needed!

<script type="module">
  import emberCliCookieconsent from 'https://cdn.skypack.dev/ember-cli-cookieconsent';
</script>

README

ember-cli-cookieconsent

ember-cli addon for CookieConsent

Compatibility

  • Ember.js v3.12 or above
  • Ember CLI v2.13 or above
  • Node.js v10 or above

Installation

ember install ember-cli-cookieconsent

Usage

After you install the add-on, just add your CookieConsent configuration to config/environment.js.

let ENV = {
  // ...
 
  cookieconsent: {
    auto: true,      // automatically show cookie consent; default is true

    options: {
                     // CookieConsent configuration goes here
    }
  }

}

The add-on will show the cookie consent dialog to all visitors.

You can use the online CookieConsent editor to generate your configuration.

If there is no cookieconsent property in config/environment.js, then nothing will show.

Contributing

See the Contributing guide for details.

License

This project is licensed under the Apache-2.0.