Détail du package

@inventage/matomo-opt-out

inventage132MIT1.3.0

A web component to let visitors opt-out of Matomo tracking

web-components, lit-element, lit-html, matomo

readme

\<matomo-opt-out>

A web component to let visitors opt-out of Matomo tracking.

made with open-wc Build Published on npm

Dependencies

Your Matomo installation will have to have the Ajax Opt Out plugin enabled.

Usage

import '@inventage/matomo-opt-out';
<matomo-opt-out matomo-url="https://analytics.your-domain.com"></matomo-opt-out>

Note on browser compatibility & transformation

Currently, the recommended way to publish a web component using open-wc is to publish the ES6/7 source code as is. Since your application knows best about which browsers to support and how to transform the source code (if at all) for those browsers, you will have to take care of any transformations yourself.

Properties

Property Attribute Type Default
isBusy boolean false
isTracked boolean false
matomoUrl matomo-url string
optedInLabel opted-in-label string "You are not opted out. Uncheck this box to opt-out."
optedOutLabel opted-out-label string "You are currently opted out. Check this box to opt-in."

Development

  • Create a copy of local.config-example.js and name it local.config.js
  • Add the URL to your Matomo installation
  • Run $ npm start
  • Navigate to http://localhost:8000/demo/

changelog

Changelog

All notable changes to this project will be documented in this file.

The format bases on Keep a Changelog, and this project adheres to Semantic Versioning.

Unreleased

Added

Changed

  • Updated dependencies to their latest versions.
  • Updated rollup from 2.6.x to 2.7.x.
  • Updated Node version to 12.16.2.

Deprecated

Removed

  • Removed deprecated @open-wc/prettier-config, using Prettier directly.

Fixed

Security

1.1.0 - 2020-04-20

Added

Changed

  • Updated rollup build config to the latest open-wc version which uses rollup.js 2.x

1.0.2 - 2020-04-15

Added

  • Added example build configuration with support down to IE 11

Fixed

  • Fixed prettier config file name

1.0.1 - 2020-04-08

Added

  • NPM version badge
  • Small package.json improvements

1.0.0 - 2020-04-08

Added

  • Initial release with a documentation and examples.